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

Comparing CavitatingFoaM​ and InterPhaseChangeFoaM solvers (code)

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

Like Tree2Likes
  • 1 Post By JD_PM
  • 1 Post By JulioPieri

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 28, 2022, 08:55
Default Comparing CavitatingFoaM​ and InterPhaseChangeFoaM solvers (code)
  #1
New Member
 
Join Date: Jan 2022
Posts: 20
Rep Power: 5
JD_PM is on a distinguished road
I am studying the differences between CavitatingFoaM​ and InterPhaseChangeFoaM.

The basics are clear: the former assumes compressible, isothermal flow and deals with a two phase, homogeneous mixture while the latter models incompressible, isothermal flow and deals with a two phase, immiscible flow.

I checked the code (for CavitatingFoaM​: https://www.openfoam.com/documentati...8C_source.html, for InterPhaseChangeFoaM: https://www.openfoam.com/documentati...8C_source.html) and only found the following remarkable difference:

In the Pressure-velocity PIMPLE corrector loop of InterPhaseChangeFoaM.C one finds

surfaceScalarField rhoPhi
(
IOobject
(
"rhoPhi",
runTime.timeName(),
mesh
),
mesh,
dimensionedScalar(dimMass/dimTime, Zero)
);

What does this piece of code really do? I found an old post (SurfaceScalarFields) regarding surfaceScalarField but did not really help me understand such piece.

Your replies will be highly appreciated
lxufeishi likes this.
JD_PM is offline   Reply With Quote

Old   February 4, 2022, 15:25
Default
  #2
Senior Member
 
Julio Pieri
Join Date: Sep 2017
Posts: 118
Rep Power: 10
JulioPieri is on a distinguished road
I'm not familiar with those solvers, but this particular piece of code is just initializing a surfaceScalarField called rhoPhi as zero and with units of [kg/s].

surfaceScalarFields are fields of scalar (rather than vectors) valid at the surfaces of cells, such as fluxes. rhoPhi could be rho*phi, i.e, mass flux on faces.
JD_PM likes this.
JulioPieri 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
Fully Coupled Solvers for OpenFOAM7+ (To be ported From FE4 code base) ELwardi OpenFOAM Programming & Development 4 January 7, 2024 04:54
No different caculation speed between serial and openMP code? AnhDL Main CFD Forum 4 May 16, 2020 05:17
The FOAM Documentation Project - SHUT-DOWN holger_marschall OpenFOAM 242 March 7, 2013 13:30
Design Integration with CFD? John C. Chien Main CFD Forum 19 May 17, 2001 16:56
What is the Better Way to Do CFD? John C. Chien Main CFD Forum 54 April 23, 2001 09:10


All times are GMT -4. The time now is 10:09.