|
[Sponsors] |
Bug about MULES::implicitSolve for interPhaseChangeFoam in OF-1.6 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 2, 2009, 02:49 |
Bug about MULES::implicitSolve for interPhaseChangeFoam in OF-1.6
|
#1 |
Senior Member
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17 |
These days, many frields meet the same problem how to set the alpha1 for interPhaseChangeFoam in system/fvSolution in OF-1.6. I believe there is a bug in MULES::implicitSolve.
The dambreak case for interPhaseChangeFoam in OF-1.5 (http://www.cfd-online.com/Forums/ope...rial-15-a.html) is updated for OF-1.6, it is OK when MULES::implicitSolve() in alphaEqn.H is revised as MULES::explicitSolve(). However, for the interPhaseChangeFoam with MULES::implicitSolve(), the errors occur (attached as follows). What a pity, I have NOT found where and what the bug. The dambreak case is attached. Hope it helps to move things on. Best regards, Chiven Code:
alpha1 { MULESImplicit { maxIter 1000; nLimiterIter 10; maxUnboundedness 1; CoCoeff 0.2; solver { solver PBiCG; preconditioner DILU; tolerance 1e-10; relTol 0; } } } HTML Code:
Create time Create mesh for time = 0 Reading g Reading field p Reading field alpha1 Reading field U Reading/calculating face flux field phi Creating phaseChangeTwoPhaseMixture Selecting phaseChange model Kunz Selecting incompressible transport model Newtonian Selecting incompressible transport model Newtonian Selecting turbulence model type LESModel Selecting LES turbulence model laminar --> FOAM Warning : From function cubeRootVolDelta::calcDelta() in file cubeRootVolDelta/cubeRootVolDelta.C at line 53 Case is 2D, LES is not strictly applicable time step continuity errors : sum local = 0, global = 0, cumulative = 0 DICPCG: Solving for pcorr, Initial residual = 0, Final residual = 0, No Iterations 0 time step continuity errors : sum local = 0, global = 0, cumulative = 0 Courant Number mean: 0 max: 0 Starting time loop Courant Number mean: 0 max: 0 deltaT = 2.39981e-05 Time = 2.39981e-05 Attempt to return dictionary entry as a primitive file: /work/g2/e090012/dambreak/system/fvSolution::solver from line 59 to line 62. From function ITstream& primitiveEntry::stream() const in file db/dictionary/dictionaryEntry/dictionaryEntry.C at line 83. FOAM aborting #0 _ZN4Foam5error10printStackERNS_7OstreamE-0x1466af0 in "/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linuxIA64GccDPOpt/libOpenFOAM.so" #1 _ZN4Foam7IOerror5abortEv-0x1989560 in "/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linuxIA64GccDPOpt/libOpenFOAM.so" #2 _ZNK4Foam15dictionaryEntry6streamEv-0x1921900 in "/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linuxIA64GccDPOpt/libOpenFOAM.so" #3 _ZNK4Foam10dictionary6lookupERKNS_4wordEbb-0x19476e0 in "/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/lib/linuxIA64GccDPOpt/libOpenFOAM.so" #4 void Foam::MULES::implicitSolve<Foam::oneField, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> >(Foam::oneField const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh>&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, double, double) in "/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/applications/bin/linuxIA64GccDPOpt/interPhaseChangeFoam" #5 main in "/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/applications/bin/linuxIA64GccDPOpt/interPhaseChangeFoam" #6 __libc_start_main-0x1060880 in "/lib/tls/libc.so.6.1" #7 _start in "/home/g2/e090012/OpenFOAM/OpenFOAM-1.6/applications/bin/linuxIA64GccDPOpt/interPhaseChangeFoam" Abort |
|
December 2, 2009, 18:45 |
|
#2 |
Senior Member
Join Date: Mar 2009
Posts: 854
Rep Power: 22 |
I have corrected and simplified the solver selection for implicit MULES and pushed the change into our OpenFOAM-1.6.x git repository.
I will also put together a tutorial case for the interPhaseChangeFoam solver and push it is when ready. H |
|
December 4, 2009, 01:03 |
|
#3 |
Senior Member
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17 |
Hi, Henry, OpenFOAM-1.6.x seems OK, thanks.
Chiven |
|
December 18, 2009, 14:36 |
|
#4 |
Senior Member
Join Date: Mar 2009
Posts: 854
Rep Power: 22 |
We have just pushed a tutorial case for interPhaseChangeFoam into OpenFOAM-1.6.x:
OpenFOAM-1.6.x/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet H |
|
December 19, 2009, 23:13 |
|
#5 | |
Senior Member
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17 |
Hi, Henry, the OpenFOAM-1.6.x does have the new case of cavitatingBullet, and it run well. thank you.
However, another error attached is met when furtherly rebuild the OF using Allwmake. I am not sure whether it is a bug. Best regards, chiven Quote:
|
||
December 20, 2009, 04:09 |
|
#6 |
Senior Member
Join Date: Mar 2009
Posts: 854
Rep Power: 22 |
I added some new files which will need to be linked into the lnInclude directories. Try running wcleanLnIncludeAll before Allwmake.
H |
|
January 9, 2010, 00:50 |
|
#7 | |
Senior Member
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18 |
Quote:
|
||
January 9, 2010, 01:43 |
|
#8 |
Senior Member
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17 |
You can download the OpenFOM-1.6.x from internet using the git kit, which includes this case. Please see this web page:
http://www.opencfd.co.uk/openfoam/download.html Best regards, Chiven |
|
January 24, 2010, 10:24 |
|
#9 |
Senior Member
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18 |
Hi Chiven,
What about you to use the interPhaseChangeFoam solver in OpenFOAM-1.6.x ? I ever installed the OpenFOAM-1.6 in my OpenFOAM folder. After you told me OpenFOAM-1.6.x, I tried to also install it in my OpenFOAM folder according to the README file: git clone http://repo.or.cz/r/OpenFOAM-1.6.x.git cd OpenFOAM-1.6.x git pull But it seems not to be compiled, I try to run the cavitationbutter case by this solver, I found it seemed to transfer to use the old interPhaseChangeFoam solver in OpenFOAM-1.6 . Furthermore, I changed the MULESTemplate.C files of OpenFOAM-1.6, and use "wmake libso" to recompile it in the OpenFOAM/OpenFOAM-1.6/src/finiteVolum/ , however, it gave me the error information: ............ In file included from fvMatrices/solvers/MULES/MULES.H:130, from fvMatrices/solvers/MULES/MULES.C:27: fvMatrices/solvers/MULES/MULESTemplates.C:148:6: error: invalid preprocessing directive #const fvMatrices/solvers/MULES/MULESTemplates.C:263:14: error: invalid preprocessing directive #MULEScontrols make: *** [Make/linuxGccDPOpt/MULES.o] error 1 What are the matters, you think ? In addition, how to source the environment setting, you think? Still to add the line : . $HOME/OpenFOAM-1.6/etc to the end of .bashrc file? ? However, why not is: . $HOME/OpenFOAM-1.6.x/etc ?? Please help me out. Thank you very much. Regards, Sandy |
|
January 24, 2010, 20:00 |
|
#10 |
Senior Member
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17 |
Hi, Sandy, I reply your email.
regards, Chiven |
|
January 25, 2010, 02:12 |
|
#11 |
Senior Member
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18 |
Thanks, Chiven. I got it!
|
|
January 30, 2010, 04:18 |
|
#12 | |
Senior Member
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18 |
Quote:
About the Kunz's model, why the Cv and Cc are 900000 and 30000 respectively in many references? however, they are all 1000 in the cavitatingBullet case of interPhaseChangeFoam solver. Which parameter should I choose to set, you think? Sandy |
||
January 30, 2010, 04:25 |
|
#13 |
Senior Member
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18 |
||
January 31, 2010, 06:01 |
|
#14 |
Senior Member
Join Date: Mar 2009
Posts: 854
Rep Power: 22 |
The cavitatingBullet case is set to run the Schnerr-Sauer model with coefficients
SchnerrSauerCoeffs { n n [0 -3 0 0 0 0 0] 1.6e+09; dNuc dNuc [0 1 0 0 0 0 0] 2.0e-06; Cc Cc [0 0 0 0 0 0 0] 1; Cv Cv [0 0 0 0 0 0 0] 1; } If you would rather run it with the Kunz model feel free to do so and set the coefficients to anything that you feel is appropriate. H |
|
May 8, 2010, 03:10 |
|
#15 |
Member
Ovie Doro
Join Date: Jul 2009
Posts: 99
Rep Power: 17 |
Chiven,
Did you manage to implement MULES::ImplicitSolve for alpha1 in interFoam? I am particulary interested in how this affects the time step. Does it allow for LARGER values of delta t when you use ImplicitSolve for alpha1? Last edited by ovie; May 8, 2010 at 03:31. |
|
May 9, 2010, 20:43 |
|
#16 | |
Senior Member
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18 |
Quote:
Yes, I change the delta T, MaxCo and MaxDeltaT in the controlDict file, but the time step still keeps the same value. I don't know why? |
||
February 24, 2012, 03:17 |
mass dest and prod in kunz model
|
#17 |
Member
vahid
Join Date: Feb 2012
Location: Mashhad-Iran
Posts: 80
Rep Power: 13 |
Hello OpenFoam users ,
I'm studying on the Kunz model.we know in this model we have two term for mass dest and prod.(m+ and m-) What mean mDotAlphal() and mDotP() In interphasechangeFoam? What is the difference between these two? |
|
February 24, 2012, 03:38 |
|
#18 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
Hi Dear vahid
its not appropriate place for your question , its a post to report the bug However it is almost the same, just it is used pos (p) not p so then they can multiply mDotP() further in p in pEqn.H |
|
April 18, 2013, 23:56 |
Please help
|
#19 |
Senior Member
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18 |
Hi everybody, I totally can not get correct pressure in the stagnation point when I use the interPhaseChangeFoam of OF 2.1.0 and 2.1.1 to simulate a NACA foil. Who can help me out? Please.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
install OpenFoam 1.6 by building source: how? | niudie | OpenFOAM Installation | 13 | April 26, 2011 01:48 |
Serious bug in LES interface | fs82 | OpenFOAM Bugs | 21 | November 16, 2009 09:15 |
surfaceToPatch bug? | bruce | OpenFOAM Bugs | 4 | November 12, 2009 09:23 |
Bug reports | Mattijs Janssens (Mattijs) | OpenFOAM | 0 | January 10, 2005 11:05 |
Forum y2k Bug | Jonas Larsson | Main CFD Forum | 1 | January 5, 2000 11:22 |