|February 27, 2011, 15:23||
DEFINE_SOURCE to redifine momentum and energy equations.
Join Date: Feb 2011
Posts: 6Rep Power: 5
I would like to write UDF (Fluent 12.1) in which I can add j*B to momentum equations in order to simulate interior magnetic fields in my conducting fluid. I have read that I should use DEFINE_SOURCE macro in order to do this.
Flowing electric current through fluid creates magnetic field which have an impact on fluid and I want to simulate this by improving momentum and energy equations. Does anyone have any clues for me how to do it?
I suppose I have to loop over all cells and need current density from fluent in order to calculate B. , is that right?
I have not seen macro which can pass to me value of density of current in a cell.
I would appreciate any response.
|udf source energy|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Derivation of Momentum Equation in Integral Form||Demonwolf||Main CFD Forum||2||October 29, 2009 20:53|
|Maths problem when deriving conservation of energy equations.||Demonwolf||Main CFD Forum||1||June 15, 2009 14:21|
|Conjugated solver for momentum and energy equations system||makaveli_lcf||OpenFOAM Running, Solving & CFD||3||April 14, 2009 02:16|
|Calculation of the Governing Equations||Mihail||CFX||5||July 25, 2008 17:29|
|Derivation of momentum and energy equations||Spiros Siouris||Main CFD Forum||1||April 14, 2008 05:39|