|
[Sponsors] |
November 27, 2010, 05:05 |
ReactingFoam and LES
|
#1 |
Senior Member
Seyyed Ali H.M.
Join Date: Nov 2009
Location: Utah
Posts: 107
Rep Power: 17 |
Hello Everyone, What's the plan?
I wish you had a good thanksgibing. recently I'm trying to run a case with reactingFoam using LES turbulence model. I set up my case, changing the Turbulence model to LES and changing some of fields ( like alphaSGS and muSGS) but when I run the case I get this error in the first place: Code:
--> FOAM FATAL ERROR: request for volScalarField h from objectRegistry region0 failed available objects of type volScalarField are 19 ( psi N2 C3H8 kappa rho CO2 k O2 psi_0 delta alpha p T alphaSgs H2O geometricDelta mu hs muSgs ) From function objectRegistry::lookupObject<Type>(const word&) const in file /home/nini/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 139. FOAM aborting #0 Foam::error::printStack(Foam::Ostream&) in "/home/sahm/OpenFOAM/OpenFOAM-1.7.0/lib/linux64GccDPOpt/libOpenFOAM.so" #1 Foam::error::abort() in "/home/sahm/OpenFOAM/OpenFOAM-1.7.0/lib/linux64GccDPOpt/libOpenFOAM.so" #2 Foam::Ostream& Foam::operator<< <Foam::error>(Foam::Ostream&, Foam::errorManip<Foam::error>) in "/home/sahm/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linux64GccDPOpt/reactingFoam" #3 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const& Foam::objectRegistry::lookupObject<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> >(Foam::word const&) const in "/home/sahm/OpenFOAM/OpenFOAM-1.7.0/lib/linux64GccDPOpt/libcompressibleRASModels.so" #4 Foam::compressible::LESModels::alphaSgsJayatillekeWallFunctionFvPatchScalarField::evaluate(Foam::Pstream::commsTypes) in "/home/sahm/OpenFOAM/OpenFOAM-1.7.0/lib/linux64GccDPOpt/libcompressibleLESModels.so" #5 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::evaluate() in "/home/sahm/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linux64GccDPOpt/reactingFoam" #6 Foam::compressible::LESModels::oneEqEddy::updateSubGridScaleFields() in "/home/sahm/OpenFOAM/OpenFOAM-1.7.0/lib/linux64GccDPOpt/libcompressibleLESModels.so" #7 Foam::compressible::LESModels::oneEqEddy::oneEqEddy(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::basicThermo const&) in "/home/sahm/OpenFOAM/OpenFOAM-1.7.0/lib/linux64GccDPOpt/libcompressibleLESModels.so" #8 Foam::compressible::LESModel::adddictionaryConstructorToTable<Foam::compressible::LESModels::oneEqEddy>::New(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::basicThermo const&) in "/home/sahm/OpenFOAM/OpenFOAM-1.7.0/lib/linux64GccDPOpt/libcompressibleLESModels.so" #9 Foam::compressible::LESModel::New(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::basicThermo const&) in "/home/sahm/OpenFOAM/OpenFOAM-1.7.0/lib/linux64GccDPOpt/libcompressibleLESModels.so" #10 Foam::compressible::turbulenceModel::addturbulenceModelConstructorToTable<Foam::compressible::LESModel>::NewturbulenceModel(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::basicThermo const&) in "/home/sahm/OpenFOAM/OpenFOAM-1.7.0/lib/linux64GccDPOpt/libcompressibleLESModels.so" #11 Foam::compressible::turbulenceModel::New(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::basicThermo const&) in "/home/sahm/OpenFOAM/OpenFOAM-1.7.0/lib/linux64GccDPOpt/libcompressibleTurbulenceModel.so" #12 main in "/home/sahm/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linux64GccDPOpt/reactingFoam" #13 __libc_start_main in "/lib64/libc.so.6" #14 Foam::regIOobject::writeObject(Foam::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType) const in "/home/sahm/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linux64GccDPOpt/reactingFoam"
__________________
SAHM |
|
November 29, 2010, 04:06 |
|
#2 | |
New Member
L.Tuominen
Join Date: Jul 2010
Posts: 8
Rep Power: 16 |
Quote:
I had the same problem some time ago in OF 1.7.1. I changed in file "OpenFOAM-1.7.x/src/turbulenceModels/compressible/LES/derivedFvPatchFields/wallFunctions/alphaSgsWallFunctions/alphaSgsJayatillekeWallFunction/alphaSgsJayatillekeWallFunctionFvPatchScalarField. C" line 212 to patch().lookupPatchField<volScalarField, scalar>("hs"); And after that compiled OF again. |
||
February 1, 2011, 03:44 |
|
#3 | |
Member
|
Quote:
I really need to run my case with reactingFoam using LES. could you please describe me which filed I should change? did you have any tutorial about using reactingFoam with LES? |
||
May 6, 2014, 14:49 |
Switch from RAS to LES using reactingFoam
|
#4 |
Member
James
Join Date: Jul 2013
Posts: 38
Rep Power: 13 |
Hi Yashar,
Did you ever solve this problem? I am currently trying to switch from RAS to LES using reactingFoam and am getting the following error message: "request for volScalarField mut from objectRegistry region0 failed available objects of type volScalarField are " I guess it's something to do with the setup of the 0 folder. What files do you need to change when switching from RAS to LES? I look forward to hearing from you. James |
|
May 6, 2014, 15:13 |
|
#5 |
Senior Member
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 16 |
Greetings James
As I know yashar is no longer working on O.F. However, for your case you need to have muSgs and alphaSgs files instead of mut and alphat. Also k in LES is completely different with RAS. For setting the abovementioned files, just take a look at firefoam and pisoFoam and rhoPimpleFoam tutorials. Hope this helps you Regards Bobi |
|
December 16, 2017, 21:35 |
|
#6 |
Member
|
if somebody else face the same problem, here is the solution:
You need to change your alphaSgs file, e.g: boundaryField { wall { // type alphaSgsJayatillekeWallFunction; type alphaSgsWallFunction; hs h; value uniform 0; } ................ Good luck. Reza |
|
Tags |
les, reactingfoam, thermophysicalproperties, tutorial |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
LES of a jet | tsjb00 | OpenFOAM Running, Solving & CFD | 0 | March 29, 2006 21:03 |