|
[Sponsors] |
Adding volumetric body force term to compressibleInterFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 4, 2016, 14: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: 12 |
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); } |
|
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 15:33 |
force and rigid body | armin najarian | CFX | 1 | August 20, 2015 13:46 |
how to add body force by udf? | wolfish | Fluent UDF and Scheme Programming | 0 | March 28, 2012 09:52 |
body force term | Goutam | OpenFOAM Programming & Development | 0 | February 1, 2012 09:13 |
SIMPLE force term isnbt converging what have I missed | brooksmoses | OpenFOAM Running, Solving & CFD | 2 | July 17, 2006 20:25 |