|
[Sponsors] |
Differences simpleFoam vs. pimpleFoam / RASModel.H vs turbulenceModel.H |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 8, 2012, 19:32 |
Differences simpleFoam vs. pimpleFoam / RASModel.H vs turbulenceModel.H
|
#1 |
New Member
Join Date: Jun 2012
Posts: 25
Rep Power: 13 |
hi
I am trying to get a turbulence model (for heat flux) running that was implemented in simplefoam the following way:
But for pimpleFoam it does not work (I applied the above steps on pimpleFoam). Simplefoam uses RASModel.H whereas pimpleFoam uses turbulenceModel.H. What is the difference? Without replacing Code:
include "turbulenceModel.H" Code:
include "RASModel.H" Code:
/home/uli/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/nearWallDist.H: In function 'int main(int, char**)': /home/uli/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/nearWallDist.H:44:1: error: 'namespace' definition is not allowed here In file included from pimpleFoamT_YSC.C:75:0: TEqn.H:50:77: error: 'nearWallDist' was not declared in this scope So I replaced turbulenceModel.H by RASModel.H and it compiled without error message, but running a case I get: Code:
Starting time loop Courant Number mean: 0.0219895 max: 0.686747 Time = 0.002059 DILUPBiCG: Solving for Ux, Initial residual = 1, Final residual = 8.15401e-07, No Iterations 4 DILUPBiCG: Solving for Uy, Initial residual = 1, Final residual = 5.46016e-07, No Iterations 4 --> FOAM FATAL ERROR: hanging pointer, cannot dereference From function PtrList::operator[] const in file /home/uli/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/PtrListI.H at line 134. FOAM aborting #0 Foam::error::printStack(Foam::Ostream&) in "/home/uli/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #1 Foam::error::abort() in "/home/uli/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #2 at pimpleFoamT_YSC.C:0 #3 in "/home/uli/OpenFOAM/uli-2.1.1/platforms/linux64GccDPOpt/bin/pimpleFoamT_YSC" #4 __libc_start_main in "/lib64/libc.so.6" #5 at /usr/src/packages/BUILD/glibc-2.11.3/csu/../sysdeps/x86_64/elf/start.S:116 I use RAS and normally pisoFoam but since the model was implemented in simpleFoam I thought it might be easier to use pimpleFoam for this case. Uli |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
pimpleFoam vs simpleFoam vs pisoFoam vs icoFoam? | phsieh2005 | OpenFOAM Running, Solving & CFD | 45 | March 22, 2021 09:14 |
Laminar simpleFoam and inviscid simpleFoam | herenger | OpenFOAM Running, Solving & CFD | 7 | July 11, 2013 06:27 |
Trying to run a benchmark case with simpleFoam | spsb | OpenFOAM | 3 | February 24, 2012 09:07 |
Differences between simpleFoam an turbFoam | francois | OpenFOAM Running, Solving & CFD | 3 | November 15, 2005 14:03 |