|July 17, 2015, 07:33||
How to get the local coordinate Z via UDF or other way in Fluent
Join Date: Jul 2015
Location: Portugal, Lisbon
Posts: 1Rep Power: 0
I am trying to simulate the wind flow over a terrain where I need to define the turbulent viscosity via UDF as function of height above the ground.
The problem is that the following UDF give the absolute coordinate z (over the plan z=0) rather than local coordinate (over the ground surface):
#define L -86
#define Ustar 0.4
real mu_t, z;
I don't know how I can get the height of the terrain (h) for each iteration at the same x and y position that a given cell centroid along the domain given by C_CENTROID(x,c,t). With that I would intend subtract h from z to get the local coordinate z.
This could not the unique way to get local coordinate z, but I don't know another one.
I would appreciate any suggestion to solve this problem.
|Thread||Thread Starter||Forum||Replies||Last Post|
|A Problem of Fluent Interpreted UDF: parse error||knight||Fluent UDF and Scheme Programming||12||March 5, 2016 02:26|
|UDF doesn't work how I need it to - problems with the coordinate system in Fluent||SarahG||Fluent UDF and Scheme Programming||10||January 25, 2015 17:51|
|WILLING TO PAY/ FREELANCER REQUIRED / small UDF coding force loads over body / 6DOF||acasas||CFD Freelancers||1||January 23, 2015 08:26|
|fluent UDF external library lapack problem||Rick||FLUENT||0||May 7, 2008 10:16|
|UDF problem caused by various version of Fluent||Yurong||FLUENT||3||January 15, 2006 11:57|