CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Time based udf, step gust (https://www.cfd-online.com/Forums/fluent/36255-time-based-udf-step-gust.html)

CJ April 4, 2005 06:46

Time based udf, step gust
 
I am looking to create a time based udf. I understand I need to create a c-file, and have already successfully executed a velocity profile program into fluent, however creating a velocity change over time seems to be somewhat different. Also, is there a simple way of graphing the lift and drag results? Any help or example would be much appreciated. Also, is it possible to change the direction of flow in the same function, or would be easier to create two and run them together? Thanks for any help, CJ

swarup April 5, 2005 10:28

Re: Time based udf, step gust
 
try with a negative value for velocity to reverse flow direction or a reverse pressure drop.

swarup April 5, 2005 10:29

Re: Time based udf, step gust
 
velcity direction can also be specified. Swarup

ap April 9, 2005 07:59

Re: Time based udf, step gust
 
If you want to use a velocity profile in the form:

v = f(t)

you just have to get the current time (in seconds) with the macro CURRENT_TIME.

Best regards, ap


All times are GMT -4. The time now is 13:37.