parametric ecuation f(x) in intervals definition
parametric ecuation f(x) in intervals definition
(OP)
Hello everybody.
Since 3 days I am traying something as ''easy'' as drawing a line that follow a given ecuation. Every body tells me taht with catia it should be easy and quick, but I think it is imposible.
the function of my line is:
f(x) = 0 , -100<x<-50
f(x) = h/2 * (cos (2*pi*x/l)+1) , -50<x<50
f(x) = 0 , 50<x<100
where h and l area parametres in have already introduced and x should be values (betwen -100 and 100) and f(x) is the y coordenate.
So far i have created my parametres and I tried to create laws, (fog) which i was able to introduce parametres. The problem is that the law gives to x only values betwen 0 and 1 and I do not know how to tell to the program, please, calculate values of y, taken for x values between -100 and 100!!!
Anybody has any idea? Would be very nice to get a clue how to do this!!
Thanks!
Sara.
Since 3 days I am traying something as ''easy'' as drawing a line that follow a given ecuation. Every body tells me taht with catia it should be easy and quick, but I think it is imposible.
the function of my line is:
f(x) = 0 , -100<x<-50
f(x) = h/2 * (cos (2*pi*x/l)+1) , -50<x<50
f(x) = 0 , 50<x<100
where h and l area parametres in have already introduced and x should be values (betwen -100 and 100) and f(x) is the y coordenate.
So far i have created my parametres and I tried to create laws, (fog) which i was able to introduce parametres. The problem is that the law gives to x only values betwen 0 and 1 and I do not know how to tell to the program, please, calculate values of y, taken for x values between -100 and 100!!!
Anybody has any idea? Would be very nice to get a clue how to do this!!
Thanks!
Sara.





RE: parametric ecuation f(x) in intervals definition
if -100<x<-50
{
y = 0
}
if -50<x<50
{
y = h/2 * (cos (2*pi*x/l)+1)
}
if 50<x<100
{
y = 0
}
Considering yout -100 to 100 issue, I would actually introduce two new parameters, say A and B, that I create a curve with and also use those parameters in the law statements. ( if A<x<-50 and if 50<x<B)
Use parallel curve and chose the line and the law option to create the wanted curve
RE: parametric ecuation f(x) in intervals definition
I have tried what you told me. but the law editor does not let me to write ''-50<x<50'' gives me error once and again.
After trying everything and reading in the forum, I choosed the option of creating my curve in excel and with a macro export all the points to catia, and then create a spline that joint those points.
It works, but for me is not the perfect solution, since i would like to have a total parametric model in catia. I still think that it is not possible :(
RE: parametric ecuation f(x) in intervals definition
RE: parametric ecuation f(x) in intervals definition
RE: parametric ecuation f(x) in intervals definition
once you have this equation defined in CATIA, what will you use it for?
what are typical values for H and L ?
RE: parametric ecuation f(x) in intervals definition
RE: parametric ecuation f(x) in intervals definition
RE: parametric ecuation f(x) in intervals definition
Yes, this is exactly what happens to me.
The reason for this is that CATIA considers that the values of x are going from 0 to 1 and gives values to the parametre x and calculates y.
there is no way to tell that x goes from a number to antoher. it is allways 0 to 1!
But anyway, I like your way to define the flate lines.
@ Jackk and Azrael, typical values for l=100 and =20mm