|
[Sponsors] | |||||
Comparing CavitatingFoaM and InterPhaseChangeFoaM solvers (code) |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
New Member
Join Date: Jan 2022
Posts: 20
Rep Power: 5 ![]() |
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
|
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Julio Pieri
Join Date: Sep 2017
Posts: 118
Rep Power: 10 ![]() |
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. |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |