CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Fluent UDF and Scheme Programming

DEFINE_SOURCE to redifine momentum and energy equations.

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 27, 2011, 16:23
Default DEFINE_SOURCE to redifine momentum and energy equations.
  #1
New Member
 
Adam
Join Date: Feb 2011
Posts: 6
Rep Power: 6
adamo is on a distinguished road
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.
adamo is offline   Reply With Quote

Reply

Tags
udf source energy

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
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


All times are GMT -4. The time now is 03:41.