|
[Sponsors] |
Dam break tutorial - transportProperties issue |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 27, 2014, 07:53 |
Dam break tutorial - transportProperties issue
|
#1 |
New Member
Guillaume Ducrue
Join Date: Dec 2013
Posts: 9
Rep Power: 12 |
Dear Foamers,
I was doing the dam break tutorial when I met an issue at the interFoam running : Code:
Reading transportProperties --> FOAM FATAL IO ERROR: keyword phases is undefined in dictionary "xxxxx/run/damBreak/constant/transportProperties" file: xxxxx/run/damBreak/constant/transportProperties from line 20 to line 62. From function dictionary::lookupEntry(const word&, bool, bool) const in file db/dictionary/dictionary.C at line 437. FOAM exiting Here is my transportProperties, as it was in the original tutorial folder : Code:
FoamFile { version 2.0; format ascii; class dictionary; location "constant"; object transportProperties; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // phase1 // water { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1e-06; rho rho [ 1 -3 0 0 0 0 0 ] 1000; CrossPowerLawCoeffs { nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-06; nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06; m m [ 0 0 1 0 0 0 0 ] 1; n n [ 0 0 0 0 0 0 0 ] 0; } BirdCarreauCoeffs { nu0 nu0 [ 0 2 -1 0 0 0 0 ] 0.0142515; nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06; k k [ 0 0 1 0 0 0 0 ] 99.6; n n [ 0 0 0 0 0 0 0 ] 0.1003; } } phase2 // air { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1.48e-05; rho rho [ 1 -3 0 0 0 0 0 ] 1; CrossPowerLawCoeffs { nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-06; nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06; m m [ 0 0 1 0 0 0 0 ] 1; n n [ 0 0 0 0 0 0 0 ] 0; } BirdCarreauCoeffs { nu0 nu0 [ 0 2 -1 0 0 0 0 ] 0.0142515; nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06; k k [ 0 0 1 0 0 0 0 ] 99.6; n n [ 0 0 0 0 0 0 0 ] 0.1003; } } sigma sigma [ 1 0 -2 0 0 0 0 ] 0.07; Thanks. |
|
February 27, 2014, 08:13 |
tutorial files not up to date
|
#2 |
New Member
Guillaume Ducrue
Join Date: Dec 2013
Posts: 9
Rep Power: 12 |
Sorry for the disturbance,
I found the source of the problem. The files in my /home directory had not been updated when I upgraded OpenFOAM to 2.3.0. Thus, in my transportProperties file this line was missing at the beginning : Code:
phases (phase1 phase2); |
|
February 27, 2014, 08:14 |
|
#3 |
Senior Member
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19 |
Hi,
version 2.3 introduces a new convention to define the phases. You no longer call them phase1 and phase2, but you now can use their physical name (e.g. water, air...) and afterwards you define them: Code:
phases (water air); Pablo |
|
February 27, 2014, 09:02 |
|
#4 |
New Member
Guillaume Ducrue
Join Date: Dec 2013
Posts: 9
Rep Power: 12 |
Thank you Pablo !
It is easier that way. |
|
June 27, 2017, 12:52 |
damTempBreak
|
#5 |
New Member
Cláudio Corrêa
Join Date: Jun 2017
Location: Brazil
Posts: 14
Rep Power: 9 |
Dears,
I build new solver from interFoam inserting the temperatura equation I compiled no erros but when I ues tutorial case damBreak for validation the follow erros appears /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 4.1 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 4.1 Exec : interTempFoam Date : Jun 27 2017 Time : 12:49:11 Host : "claudio-300E4C" PID : 22926 Case : /home/claudiocorrea/OpenFOAM/claudiocorrea-4.1/run/damTempBreak nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 PIMPLE: Operating solver in PISO mode Reading field p_rgh Reading field T Reading field U Reading/calculating face flux field phi Reading transportProperties Selecting incompressible transport model Newtonian Selecting incompressible transport model Newtonian Selecting turbulence model type laminar Reading g Reading hRef Calculating field g.h No MRF models present No finite volume options present 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 #0 Foam::error:rintStack(Foam::Ostream&) at ??:? #1 Foam::sigSegv::sigHandler(int) at ??:? #2 ? in "/lib/x86_64-linux-gnu/libc.so.6" #3 Foam:bjectRegistry::modified() const at ??:? #4 Foam:bjectRegistry::modified() const at ??:? #5 Foam::Time::readModifiedObjects() at ??:? #6 Foam::Time::run() const at Time.C:? #7 ? at ??:? #8 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #9 ? at ??:? I introduce the required features for temperature in the tutorial. Can anybody help me? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Stability Issue with interDyMFoam / floatingObject tutorial | ccmccomb | OpenFOAM Running, Solving & CFD | 4 | April 27, 2023 05:13 |
Multi-Component mixture modeling issue | FlowMe | STAR-CCM+ | 10 | March 12, 2016 13:43 |
[Other] issue 1_running several mesh configurations for a cavity model (tutorial) | Luis Batista | OpenFOAM Meshing & Mesh Conversion | 2 | March 24, 2013 19:24 |
dam break problem | tharem | OpenFOAM | 11 | December 14, 2011 12:15 |
interDyMFoam mass conservation issues - dam break tutorial | kmooney | OpenFOAM | 5 | June 1, 2010 15:23 |