CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   modify gravity (http://www.cfd-online.com/Forums/fluent-udf/115537-modify-gravity.html)

Tamsu April 2, 2013 02:11

modify gravity
 
I want to define x component of gravity as a sinusoidal function of time, how to do it?
Any UDF? what is Journal file and how do i use it here?
Or is there any way by which I can modify body force term in N-S equations?

gearboy April 2, 2013 02:25

Quote:

Originally Posted by Tamsu (Post 417739)
I want to define x component of gravity as a sinusoidal function of time, how to do it?
Any UDF? what is Journal file and how do i use it here?
Or is there any way by which I can modify body force term in N-S equations?

You can use DEFINE_SOURCE to add your gravity momentum source(N/m3) into x momentum equation.

Tamsu April 2, 2013 02:38

[QUOTE=gearboy;417743]You can use DEFINE_SOURCE to add your gravity momentum source(N/m3) into x momentum equation.

Thanx a lot, got it. used CURRENT_TIME as time variable. UDF Manual also helped.

nspal1312 November 5, 2014 06:27

I am facing same problem...
Can u tell me steps to follow?
Plz mail me udf for this
nirajpaliwal1312@gmail.com

pakk November 5, 2014 06:40

Quote:

Originally Posted by nspal1312 (Post 517445)
I am facing same problem...
Can u tell me steps to follow?

You can use DEFINE_SOURCE to add your gravity momentum source(N/m3) into x momentum equation.
Use CURRENT_TIME as time variable. UDF Manual can also help.
Quote:

Plz mail me udf for this
nirajpaliwal1312@gmail.com
This will of course never happen. You can get help on writing your udf here, but I don't think a stranger will do all the work for you and mail it to you. I'd be surprised if these requests on message boards ever work.

stuart23 November 6, 2014 07:36

Quote:

Originally Posted by pakk (Post 517450)
This will of course never happen. You can get help on writing your udf here, but I don't think a stranger will do all the work for you and mail it to you. I'd be surprised if these requests on message boards ever work.

Quote Of The Day :D


All times are GMT -4. The time now is 11:00.