CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Fluent UDF and Scheme Programming (
-   -   udf problem (urgent) (

marttini April 12, 2009 12:05

udf problem (urgent)
I am working on a vof case in which i have a tank filled with water up to 50%. i want to define a function to put a sinusoidal velocity for the first 30 seconds. I have tryed with the function showed bellow, but it does not work. I have two question:
Is this the correct way to get variable time?
Do you have to define in your source code, x_velocity if you know that it already exist for fluent program?

real current_time;
real x_velocity;

thanks in advance

All times are GMT -4. The time now is 07:56.