about fvSolution settings for interPhaseChangeFoam
Hi,
I am facing an error when using interPhaseChangeFoam. The error message is presented as follows: --> FOAM FATAL IO ERROR: keyword maxIter is undefined in dictionary "/gwork/chueh/FOAM/release/VOF_XTC/staticContactAngle/test_temp/system/fvSolution::solvers::alpha1" file: /gwork/chueh/FOAM/release/VOF_XTC/staticContactAngle/test_temp/system/fvSolution::solvers::alpha1 from line 56 to line 65. From function dictionary::lookupEntry(const word&, bool, bool) const in file db/dictionary/dictionary.C at line 395. FOAM exiting But I don't figure out why the error still comes out because I have already added the alpha1's declaration into the "fvSolution" file as follows: alpha1 { MULESImplicit { maxIter 1000; nLimiterIter 10; maxUnboundedness 1; CoCoeff 0.2; solver { solver PBiCG; preconditioner DILU; tolerance 1e-10; relTol 0; } } } Does anyone know what went wrong with my fvSolution settings and help me out? :confused:Thanks! Sincerely, Chih-Che |
You specified maxIter in a subdictionary ("MULESImplicit"), but your solver is expecting the keywords in the alpha1 dictionary. Get rid of MULESImplicit and put all keywords in the alpha1 dictionary, and all should be well.
-Anton |
Hi Anton, Thanks for your reply. The problem that I was facing is now resolved. Chih-Che
|
Singhal models
1 Attachment(s)
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??? |
adding k_:
I want to add the kinetic energy Turbulence(k) in model <<sauer>> in solver <<interPhaseChangeFoam>>.
I added the following line in the<<options>>: -I$(LIB_SRC)/turbulenceModels/incompressible/RAS/RASModel \ Then with enter the <<k_>>in model <<sauer>>as following : // * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * // Foam::tmp<Foam::volScalarField> Foam: PhaseChangeTwoPhaseMixtures::SchnerrSauer::rRb ( const volScalarField& limitedAlpha1 ) const { return pow ( ((*4*constant::mathematical: pi*n_)/3)*k_ *limitedAlpha1/(1.0 + alphaNuc() - limitedAlpha1), 1.0/3.0 ); } when I Type wmake in terminal. I seen this message : phaseChangeTwoPhaseMixtures/SchnerrSauer/SchnerrSauer.C:79: error: ‘k_’ was not declared in this scope make: *** [Make/linux64GccDPOpt/SchnerrSauer.o] Error 1 please help me… |
All times are GMT -4. The time now is 23:52. |