CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

How can I transfer the code of SprayFoam to mathematical equation

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 12, 2016, 16:05
Default How can I transfer the code of SprayFoam to mathematical equation
  #1
New Member
 
Shuai Yuan
Join Date: Nov 2016
Posts: 26
Rep Power: 2
sy2516 is on a distinguished road
Hello everyone,

I am a newbie of OpenFOAM and I am studying SprayFOAM solver by myself. When I am reading the sparyfoam.c file. I found it included YEqn, EEqn, UEqn, pEqn and rhoEqn. I view the governing equations for gas phase is defined in these five header files. Can anyone help me to find where is the equation the sprayfoam solve for the particle? Is the code parcels.evolve() used to track each particles? What is the equation?

Another question is how can I translate the code to mathematical equations? Use the code below as an example.

fvm::ddt(rho, U) + fvm::div(phi, U)
+ MRF.DDt(rho, U)
+ turbulence->divDevRhoReff(U)
==
rho()*g
+ parcels.SU(U)
+ fvOptions(rho, U)

I understand that fvm::ddt(rho, U) represents the time derivative for rho*U, and fvm::div(phi, U) represents the divergence of rho*U*U. But I don't understand what are the rest part in the code. MRF is multiple reference frame but what is the equation here?

Thank you!
sy2516 is offline   Reply With Quote

Old   December 13, 2016, 15:50
Default
  #2
New Member
 
Shuai Yuan
Join Date: Nov 2016
Posts: 26
Rep Power: 2
sy2516 is on a distinguished road
Anyone can help me?
sy2516 is offline   Reply With Quote

Reply

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
effect of mass transfer on pressure equation in OpenFoam rapierrz OpenFOAM Running, Solving & CFD 0 October 10, 2015 12:54
Setting the height of the stream in the free channel kevinmccartin CFX 10 July 9, 2015 21:36
mass flow in is not equal to mass flow out saii CFX 2 September 18, 2009 08:07
Turbulent Heat Transfer Transport Equation Flo.duck Main CFD Forum 0 May 6, 2009 03:37
volumetric conservation equation in PHOENICS code mehdi Phoenics 4 July 31, 2000 14:41


All times are GMT -4. The time now is 07:28.