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

about fvSolution settings for interPhaseChangeFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 11, 2011, 19:54
Default about fvSolution settings for interPhaseChangeFoam
  #1
New Member
 
Chih-Che Chueh
Join Date: Jul 2011
Posts: 2
Rep Power: 0
chueh is on a distinguished road
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? Thanks!




Sincerely,

Chih-Che
chueh is offline   Reply With Quote

Old   July 13, 2011, 04:20
Default
  #2
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
akidess will become famous soon enough
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
akidess is offline   Reply With Quote

Old   July 13, 2011, 10:24
Default
  #3
New Member
 
Chih-Che Chueh
Join Date: Jul 2011
Posts: 2
Rep Power: 0
chueh is on a distinguished road
Hi Anton, Thanks for your reply. The problem that I was facing is now resolved. Chih-Che
chueh is offline   Reply With Quote

Old   March 1, 2012, 19:31
Default Singhal models
  #4
Member
 
vahid
Join Date: Feb 2012
Location: Mashhad-Iran
Posts: 80
Rep Power: 13
vahid.najafi is an unknown quantity at this point
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???
Attached Files
File Type: zip SinghalinterPhaseChangeFoam.zip (22.2 KB, 6 views)
vahid.najafi is offline   Reply With Quote

Old   June 6, 2012, 09:49
Default adding k_:
  #5
Member
 
vahid
Join Date: Feb 2012
Location: Mashhad-Iran
Posts: 80
Rep Power: 13
vahid.najafi is an unknown quantity at this point
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…
vahid.najafi is offline   Reply With Quote

Reply


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
BC settings to expand pressure on atmosphere - simpleFoam / totalPressure sErik OpenFOAM Running, Solving & CFD 1 June 15, 2011 02:49
Best settings for solar car external flow problems kdrbrk Main CFD Forum 0 July 16, 2010 02:18
General help for fvSchemes and fvSolution settings harly OpenFOAM Running, Solving & CFD 4 September 7, 2009 10:31
Default settings for 3D boundary layer-Gambit 2.2 Ramine FLUENT 1 July 31, 2006 12:36
help on memory settings in TASCflow Dr C.Bhasker CFX 1 September 5, 2001 05:57


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