dynamically changing parameter with space and time

Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

dynamically changing parameter with space and time

James
Hi FEATool team,

it is a nice function in FEATool to set up a dynamically changing parameter with space and time. For example, in a 2D domain, I can change a parameter value with space by:

1*(x>=0.9)*(x<1.0)*(y>=0.0)*(y<0.1)+
0*(x>=0.9)*(x<1.0)*(y>0.1)*(y<0.2)+
1*(x>=0.9)*(x<1.0)*(y>0.2)*(y<0.3)+
0*(x>=0.9)*(x<1.0)*(y>0.3)*(y<0.4)+
1*(x>=0.9)*(x<1.0)*(y>0.4)*(y<0.5)+
0*(x>=0.8)*(x<0.9)*(y>=0.0)*(y<0.1)+
.....
The problem is that  it is easy to set up a parameter value in 50 different areas by this method. But it will be hard to set up for 5000 positions (e.g. 70% of the value will be 1 and 30% of the value will be 0.2 under uniform distribution). Is there any methods to do it efficiently in FEATool?

Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: dynamically changing parameter with space and time

Precise Simulation
Administrator
Hmm, maybe you can use an expression of the form

    (mod(x,0.2)>0.1)&(mod(y,0.2)<0.1)

or, alternatively you probably have to define a custom Matlab function that is called to define your domain.