|
[Sponsors] |
October 13, 2018, 06:32 |
Body Forces in rhoCentralFoam
|
#1 |
New Member
Join Date: Jul 2017
Posts: 2
Rep Power: 0 |
Hi All,
I am looking to implement body forces at a source term in the rhoCentralFoam momentum calculation, to begin with just constant gravitational acceleration. In createfields.h, I have defined: Code:
volVectorField g ( IOobject ( "g", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), mesh, dimensionedVector("g", dimAcceleration, vector(0,-9.81,0)) ); volVectorField rhoG ( IOobject ( "rhoG", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), thermo.rho()*g ); Code:
// --- Solve momentum rhoG = rho * g; //not sure if I need the above ^ ??? solve(fvm::ddt(rhoU) + fvc::div(phiUp) - rhoG); Thanks Dave |
|
Tags |
body force, gravity, rhocentralfoam |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
forces on body in oscillatory flow | ashkan | OpenFOAM Running, Solving & CFD | 1 | April 13, 2018 08:15 |
Estimating drag and lift forces on rectangular solid body in Abaqus | ismailqeshta | Main CFD Forum | 0 | November 20, 2016 01:58 |
Ahmed body: questions about reference area and forces | sandyy235 | OpenFOAM | 4 | October 30, 2016 09:50 |
Body forces | Mawosouls | CFD Freelancers | 1 | July 22, 2016 13:13 |
Body Forces | Thomas P. Abraham | Main CFD Forum | 1 | April 21, 1999 22:24 |