CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > 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 Search this Thread 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: 29
Rep Power: 9
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: 29
Rep Power: 9
sy2516 is on a distinguished road
Anyone can help me?
sy2516 is offline   Reply With Quote

Old   August 10, 2017, 02:08
Default
  #3
Member
 
Neilson Whit
Join Date: Aug 2011
Posts: 74
Rep Power: 14
wolfindark is on a distinguished road
If you want to find the particle equations you should dig into src/lagrangian ....
wolfindark is offline   Reply With Quote

Old   March 7, 2018, 05:45
Default
  #4
New Member
 
Suchit
Join Date: Jul 2015
Location: India
Posts: 5
Rep Power: 10
suchit3006 is on a distinguished road
Hello Shuai,
Did you find what you are looking for?? I am also experiencing same difficulty.


Thank you
suchit3006 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting the height of the stream in the free channel kevinmccartin CFX 12 October 13, 2022 22:43
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 06:21
effect of mass transfer on pressure equation in OpenFoam rapierrz OpenFOAM Running, Solving & CFD 0 October 10, 2015 13:54
Turbulent Heat Transfer Transport Equation Flo.duck Main CFD Forum 0 May 6, 2009 04:37
volumetric conservation equation in PHOENICS code mehdi Phoenics 4 July 31, 2000 15:41


All times are GMT -4. The time now is 10:19.