Hi Daniel,

Thank you so much for your reply. Actually, I need a 2D variable, the same mesh of x, y, in 3D mesh. The cell values of 3D mesh will depend on this 2D variable. How can I create a 2D variable from 3D mesh by catching the z-axial position, and expand 2D variable into 3D with regulations? Could you please give me some hints?

Best regards,
Kundar

----- Original Message ----- From: "Daniel Wheeler" <[email protected]>
To: "Multiple recipients of list" <[email protected]>
Sent: Wednesday, October 14, 2009 10:36 AM
Subject: Re: DistanceVariable



Hi Kun-Dar,

DistanceVariable  is fairly specialized class, basically, only to be
used when using the level set method and it only works in 2D. It is
the shortest distance to the nearest interface. DistanceVariable is
not required if you can write down your function based on spatial
position, then you should just be able to simply assign the value.

Cheers

2009/10/13 Kun-Dar Li <[email protected]>:
Hello all,

I'm trying to assign different values of variable in each mesh point in 3D
mesh, which is a function of interface distance (or Z axial). Can I use
DistanceVariable( ) in 3D mesh? Is that a value of the shortest distance
from the nearest interface? Thank you so much for any help or suggestion.

Kundar




--
Daniel Wheeler





Reply via email to