|
[Sponsors] |
Adding volumetric body force term to compressibleInterFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 4, 2016, 15:05 |
Adding volumetric body force term to compressibleInterFoam
|
#1 |
New Member
Ali Charchi
Join Date: Oct 2013
Location: South Carolina, USA
Posts: 8
Rep Power: 13 |
I would like to add a volumetric body force term (F) to compressibleInterFoam. Is it done by just adding F to UEqn in UEqn.H file? Like this:
Code:
fvVectorMatrix UEqn ( fvm::ddt(rho, U) + fvm::div(rhoPhi, U) + turbulence->divDevRhoReff(U) - F ); UEqn.relax(); if (pimple.momentumPredictor()) { solve ( UEqn == fvc::reconstruct ( ( interface.surfaceTensionForce() - ghf*fvc::snGrad(rho) - fvc::snGrad(p_rgh) ) * mesh.magSf() ) ); K = 0.5*magSqr(U); } |
|
March 4, 2016, 15:07 |
|
#2 |
New Member
Ali Charchi
Join Date: Oct 2013
Location: South Carolina, USA
Posts: 8
Rep Power: 13 |
Of course, I have already defined and calculated F. The issue is just including it in momentum equation.
|
|
April 4, 2016, 21:12 |
|
#3 |
New Member
Join Date: Oct 2013
Posts: 1
Rep Power: 0 |
You should read this:
http://www.cfd-online.com/Forums/ope...ody-force.html http://www.cfd-online.com/Forums/ope...-pressure.html http://www.tfd.chalmers.se/~hani/kur...7/rhiechow.pdf https://openfoamwiki.net/index.php/B...sinesqPisoFoam http://openfoamwiki.net/index.php/BubbleFoam ... Hope this helps! Best, Pascal |
|
April 18, 2016, 12:40 |
|
#4 |
New Member
Ali Charchi
Join Date: Oct 2013
Location: South Carolina, USA
Posts: 8
Rep Power: 13 |
Thanks pascal! It helped me very much!
|
|
Tags |
compressibleinterfoam, volumetric body force |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF for defining a body force in Singel ROtating Reference Frame | teymourj | Fluent UDF and Scheme Programming | 9 | August 18, 2016 16:33 |
force and rigid body | armin najarian | CFX | 1 | August 20, 2015 14:46 |
how to add body force by udf? | wolfish | Fluent UDF and Scheme Programming | 0 | March 28, 2012 10:52 |
body force term | Goutam | OpenFOAM Programming & Development | 0 | February 1, 2012 10:13 |
SIMPLE force term isnbt converging what have I missed | brooksmoses | OpenFOAM Running, Solving & CFD | 2 | July 17, 2006 21:25 |