CFD Online Logo CFD Online URL
Home > Forums > Fluent UDF and Scheme Programming

UDF for momentum source term

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   December 6, 2014, 07:24
Default UDF for momentum source term
New Member
Join Date: Nov 2013
Posts: 3
Rep Power: 4
Tanmay_Dutta is on a distinguished road
How can I write UDF for the source term (formulation given below) in the x-momentum equation of the solid phase in a Eularian multiphase flow in Fluent?

-e^150(ε-0.6)*∂ε/∂x + b[∂/∂x (∂u/∂x) + ∂/∂y {1/2(∂u/∂y+∂v/∂x)} + ∂/∂z {1/2(∂u/∂z+∂w/∂x)}]

In the above expression ε is the solid volume fraction, b is a constant.

The above term contains ∂ε/∂x which is unavailable as gradient vector macro in UDF manual. How to calculate this term in UDF? Also, I need to know about how to calculate terms like ∂/∂x(∂u/∂x) etc.

Please help.
Tanmay_Dutta is offline   Reply With Quote


euler euler solid-gas, momentum equation, udf

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
SparceImage v1.7.x Issue on MAC OS X rcarmi OpenFOAM Installation on Windows, Mac and other Unsupported Platforms 4 August 14, 2014 06:42
Problem compiling a custom Lagrangian library brbbhatti OpenFOAM Programming & Development 2 July 7, 2014 11:32
UDF Source Term Christian FLUENT 4 August 1, 2009 05:53
The source term of UDF summer FLUENT 0 August 24, 2006 17:44

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