CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

How to make CavitatingFoam non-isothermal

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 2, 2022, 15:09
Post How to make CavitatingFoam non-isothermal
  #1
New Member
 
Join Date: Jan 2022
Posts: 20
Rep Power: 5
JD_PM is on a distinguished road
I want to understand how to make the CavitatingFoam solver (code here: https://cpp.openfoam.org/dev/cavitat...8C_source.html) non-isothermal.

To do so, I am comparing it to a similar solver that actually implements non-isothermal conditions: CompressibleInterFoam (code here: https://cpp.openfoam.org/dev/compres...8C_source.html).

By comparison, I see that the key has to be in how the pressure-velocity PIMPLE corrector loop is written for CompressibleInterFoam i.e. the key has to be in the following piece of code

// --- Pressure-velocity PIMPLE corrector loop
while (pimple.loop())
{
if (pimple.firstPimpleIter() || moveMeshOuterCorrectors)
{
// Store divU from the previous mesh so that it can be mapped
// and used in correctPhi to ensure the corrected phi has the
// same divergence
tmp<volScalarField> divU;

if (correctPhi)
{
// Construct and register divU for mapping
divU = new volScalarField
(
"divU0",
fvc::div(fvc::absolute(phi, U))
);
}

fvModels.preUpdateMesh();

mesh.update();

if (mesh.changing())
{
gh = (g & mesh.C()) - ghRef;
ghf = (g & mesh.Cf()) - ghRef;

MRF.update();

if (correctPhi)
{
#include "correctPhi.H"
}

mixture.correct();

if (checkMeshCourantNo)
{
#include "meshCourantNo.H"
}
}

divU.clear();
}

fvModels.correct();

#include "alphaControls.H"
#include "compressibleAlphaEqnSubCycle.H"

turbulence.correctPhasePhi();

#include "UEqn.H"
#include "TEqn.H"


Might you please hint me where should I focus on studying (moveMeshOuterCorrectors, ...?) in order to understand how to modify CavitatingFoam solver code in order to make it non-isothermal?


Thank you!
JD_PM 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
[waves2Foam] Waves2Foam Related Topics ngj OpenFOAM Community Contributions 660 August 20, 2018 13:39
about CGNS nba1942 Pointwise & Gridgen 0 May 21, 2015 22:31
isothermal medium myaccount Main CFD Forum 0 January 22, 2014 06:42
[swak4Foam] Installing swak4Foam to OpenFOAM in mac Kaquesang OpenFOAM Community Contributions 22 January 21, 2013 12:51
how to make a series of plane with equidistance in postprossing of result sunxihui FLUENT 0 January 13, 2013 10:50


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