CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   consult some questions about the interPhaseChangeFoam (

super August 30, 2010 01:26

consult some questions about the interPhaseChangeFoam

I'm very interested in the cavitation flow around airfoil. Furthermore, I want to use the interPhaseChangeFoam solver in the directory of application. But I can't understand how to set the three files of 0、constant and system ? Could you give me some advice about it? Or some Tutorials about the cavitaion flow.
thank you very much!

sabin.ceuca September 1, 2010 11:46

Hi there you can find a tutorial for this solver here
chalmers is the right address for many solvers ;)
best regards

nimasam September 3, 2010 22:12

and what version of openFoam do you use ?
you can find a case study in openFoam 1.6.x and later

vahid.najafi March 1, 2012 20:34

Singhal models in myinterPhasechangeFoam
My purpose is adding Zwart and Singhal models to interPhaseChangeFoam solver.
I transform Saur model to Zwart model successfully but transforming Saur model to Singhal model is faild!!!
my error is :

phaseChangeTwoPhaseMixtures/phaseChangeTwoPhaseMixture/phaseChangeTwoPhaseMixture.C:48: error: no matching function for call to ‘Foam::dimensioned<double>::dimensioned()’

Can you help me???

nimasam March 2, 2012 02:55


there is no such function in OpenFOAM, maybe you want a dimensionedField or a dimensionedScalar or ......

vahid.najafi March 2, 2012 12:05

thanks for your idea,but i need more Explanation about it!!!:(

nimasam March 2, 2012 13:57

dear vahid
whats your variable type?

vahid.najafi June 6, 2012 23:48

please help me...
Hello dear foames,
I have an easy question, i wanna add the kinetic Turbulence energy (k) in model <<Sauer>> for solver <<interPhaseChangeFoam>>. For this purpose, after adding turbulence library in the option file, for introducing “k” in the Sauer model, this parameter is added as the follow

// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //

Foam::phaseChangeTwoPhaseMixtures::SchnerrSauer::r Rb
const volScalarField& limitedAlpha1
) const
return pow
*limitedAlpha1/(1.0 + alphaNuc() - limitedAlpha1),

when I execute wmake in terminal ,this error is appeared.

phaseChangeTwoPhaseMixtures/SchnerrSauer/SchnerrSauer.C:79: error: ‘k_’ was not declared in this scope
make: *** [Make/linux64GccDPOpt/SchnerrSauer.o] Error 1

could everyone to tell me the steps of how to add the kinetic energy in the Sauer model so that after any iteration, new updated value is entered to this model ?


nimasam June 7, 2012 15:03

where do you define K_ ?
it should be read from somewhere :D

abe April 8, 2013 07:25

I am using InterPhaseChange solver to simulate cavitation in OF2.1x
Although by old versions (i.e. OF1.5) I can get good results, with this new version results are not good at all. Dose anybody else get similar conflicts?


All times are GMT -4. The time now is 08:50.