November 30, 2014, 06:27
|
calculating cell edge length in 2D and call UDM into other udf code
|
#1
|
New Member
Join Date: Jan 2014
Posts: 5
Rep Power: 13
|
Hi
I have two questions about UDF coding.
As said in the title, I wonder how can I calculate the length of one side of mesh(almost quadrilateral) in 2D no matter which of length is vertical or horizontal. The calculated cell length data could be saved by using C_UDMI.
Then, I want to use UDM data(mesh edge length) in other udf code(in my case, DEFINE_SOURCE). If I save the mesh edge length data in User Memory 0, can I just call C_UDMI(c,t,0)??
|
|
|