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

ReactingFoam and LES

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By babakflame

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 27, 2010, 04:05
Red face ReactingFoam and LES
  #1
Senior Member
 
sahm's Avatar
 
Seyyed Ali H.M.
Join Date: Nov 2009
Location: Utah
Posts: 107
Rep Power: 16
sahm is on a distinguished road
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"
I think the problem is due to my thermophysical model. I think the reactingFoam is looking for a field like h ( total enthalpy ) but It should be looking for hs. At this point I don't know where I should change this option to look for hs, or add this model as an option to compressible LES. Any body can help me with this?
__________________
SAHM
sahm is offline   Reply With Quote

Old   November 29, 2010, 03:06
Default
  #2
New Member
 
L.Tuominen
Join Date: Jul 2010
Posts: 8
Rep Power: 15
tuominen is on a distinguished road
Quote:
Originally Posted by sahm View Post
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"
I think the problem is due to my thermophysical model. I think the reactingFoam is looking for a field like h ( total enthalpy ) but It should be looking for hs. At this point I don't know where I should change this option to look for hs, or add this model as an option to compressible LES. Any body can help me with this?

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.
tuominen is offline   Reply With Quote

Old   February 1, 2011, 02:44
Default
  #3
Member
 
Yashar Afarin
Join Date: May 2010
Location: Toronto- Canada
Posts: 40
Rep Power: 15
yashar.afarin is on a distinguished road
Send a message via Skype™ to yashar.afarin
Quote:
Originally Posted by sahm View Post
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:
Hi Ali,

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?
yashar.afarin is offline   Reply With Quote

Old   May 6, 2014, 13:49
Default Switch from RAS to LES using reactingFoam
  #4
Member
 
James
Join Date: Jul 2013
Posts: 38
Rep Power: 12
ni-openfoam-user is on a distinguished road
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
ni-openfoam-user is offline   Reply With Quote

Old   May 6, 2014, 14:13
Default
  #5
Senior Member
 
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 15
babakflame is on a distinguished road
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
wenxu and mushtime like this.
babakflame is offline   Reply With Quote

Old   December 16, 2017, 20:35
Default
  #6
Member
 
Reza khodadadi
Join Date: Apr 2011
Location: https://t.me/pump_upp
Posts: 32
Rep Power: 15
reza_65 is on a distinguished road
Send a message via ICQ to reza_65 Send a message via AIM to reza_65 Send a message via Yahoo to reza_65
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
reza_65 is offline   Reply With Quote

Reply

Tags
les, reactingfoam, thermophysicalproperties, tutorial


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
LES of a jet tsjb00 OpenFOAM Running, Solving & CFD 0 March 29, 2006 20:03


All times are GMT -4. The time now is 16:56.