|February 27, 2011, 16:23||
DEFINE_SOURCE to redifine momentum and energy equations.
Join Date: Feb 2011
Posts: 6Rep Power: 6
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|
|Calculation of the Governing Equations||Mihail||CFX||7||September 7, 2014 06:27|
|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|
|Derivation of momentum and energy equations||Spiros Siouris||Main CFD Forum||1||April 14, 2008 05:39|