UDF for viscous resistance for porous media with time variable
Hello,
i am a new ansys fluent user, but i am now very urgent to demonstrate a flow in porous material. i have a viscous resistance of 5e12 + 2e12 t + 4e9 t^2 (given). but i have no idea to write a UDF to enter this kind of viscous resistance (with time variable), the place i enter the parameter can only allow me to put in a single constant value. May i ask the easy tutorial for writing the UDF for viscous resistance of 5e12 + 2e12 t + 4e9 t^2? or some nice guys can even write it to me? Thank You so much. I have tried to write this, but error: line 9:invalid type for binary expression: int * pointer to structure. Quote:
|
Hi,
t is not time here! this is thread index. so replace this: Code:
#include "udf.h" |
Quote:
|
All times are GMT -4. The time now is 02:43. |