|
[Sponsors] |
How can I transfer the code of SprayFoam to mathematical equation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 12, 2016, 16:05 |
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 |
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! |
|
December 13, 2016, 15:50 |
|
#2 |
New Member
Shuai Yuan
Join Date: Nov 2016
Posts: 29
Rep Power: 9 |
Anyone can help me?
|
|
August 10, 2017, 02:08 |
|
#3 |
Member
Neilson Whit
Join Date: Aug 2011
Posts: 74
Rep Power: 14 |
If you want to find the particle equations you should dig into src/lagrangian ....
|
|
March 7, 2018, 05:45 |
|
#4 |
New Member
Suchit
Join Date: Jul 2015
Location: India
Posts: 5
Rep Power: 10 |
Hello Shuai,
Did you find what you are looking for?? I am also experiencing same difficulty. Thank you |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |