CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   buoyantSimpleRadiationFoam - "Attempt to return primitive entry [...] mixture [...]" (https://www.cfd-online.com/Forums/openfoam/91860-buoyantsimpleradiationfoam-attempt-return-primitive-entry-mixture.html)

javad814 August 24, 2011 18:20

buoyantSimpleRadiationFoam - "Attempt to return primitive entry [...] mixture [...]"
 
hi friends
can anyone understand the fallowing error:
reza@reza-N43SN:~/hotradiationroom1$ buoyantSimpleRadiationFoam
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.0.0 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.0.0-d79727c3fca7
Exec : buoyantSimpleRadiationFoam
Date : Aug 25 2011
Time : 02:39:31
Host : reza-N43SN
PID : 3479
Case : /home/reza/hotradiationroom1
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


Reading g
Reading thermophysical properties

Selecting thermodynamics package hPsiThermo<pureMixture<constTransport<specieThermo <hConstThermo<perfectGas>>>>>


--> FOAM FATAL ERROR:
Attempt to return primitive entry ITstream : /home/reza/hotradiationroom1/constant/thermophysicalProperties::mixture, line 20, IOstream: Version 2.0, format ASCII, line 0, OPENED, GOOD
primitiveEntry 'mixture' comprises
on line 20 the word 'air'
on line 20 the label 1
on line 20 the doubleScalar 28.9
on line 20 the label 1000
on line 20 the label 0
on line 20 the doubleScalar 1.8e-05
on line 20 the doubleScalar 0.7
as a sub-dictionary

From function const dictionary& primitiveEntry::dict() const
in file db/dictionary/primitiveEntry/primitiveEntry.C at line 159.

FOAM aborting

#0 Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam200/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#1 Foam::error::abort() in "/opt/openfoam200/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#2 Foam::primitiveEntry::dict() const in "/opt/openfoam200/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#3 Foam::dictionary::subDict(Foam::word const&) const in "/opt/openfoam200/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#4 Foam::pureMixture<Foam::constTransport<Foam::speci eThermo<Foam::hConstThermo<Foam::perfectGas> > > >::pureMixture(Foam::dictionary const&, Foam::fvMesh const&) in "/opt/openfoam200/platforms/linuxGccDPOpt/lib/libbasicThermophysicalModels.so"
#5 Foam::hPsiThermo<Foam::pureMixture<Foam::constTran sport<Foam::specieThermo<Foam::hConstThermo<Foam:: perfectGas> > > > >::hPsiThermo(Foam::fvMesh const&) in "/opt/openfoam200/platforms/linuxGccDPOpt/lib/libbasicThermophysicalModels.so"
#6 Foam::basicPsiThermo::addfvMeshConstructorToTable< Foam::hPsiThermo<Foam::pureMixture<Foam::constTran sport<Foam::specieThermo<Foam::hConstThermo<Foam:: perfectGas> > > > > >::New(Foam::fvMesh const&) in "/opt/openfoam200/platforms/linuxGccDPOpt/lib/libbasicThermophysicalModels.so"
#7 Foam::basicPsiThermo::New(Foam::fvMesh const&) in "/opt/openfoam200/platforms/linuxGccDPOpt/lib/libbasicThermophysicalModels.so"
#8
in "/opt/openfoam200/platforms/linuxGccDPOpt/bin/buoyantSimpleRadiationFoam"
#9 __libc_start_main in "/lib/i386-linux-gnu/libc.so.6"
#10
in "/opt/openfoam200/platforms/linuxGccDPOpt/bin/buoyantSimpleRadiationFoam"
Aborted
reza@reza-N43SN:~/hotradiationroom1$

al_pr August 25, 2011 05:46

Hello,
I think the error is caused by your thermophysicalproperties file. The structure of this file has changed in OpenFOAM 2.0.0. Could you maybe post your thermophysicalproperties?

I hope this helps.

Regards,

Alex

javad814 August 29, 2011 17:03

hello
thanks
I will check it.
this is the file:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.7.0 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object thermophysicalProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

thermoType hPsiThermo<pureMixture<constTransport<specieThermo <hConstThermo<perfectGas>>>>>;

mixture air 1 28.9 1000 0 1.8e-05 0.7;

pRef 100000;


// ************************************************** *********************** //

suh August 30, 2011 01:29

Hi Javed,

You are using OF 2.0.0 but you are using the old OF 1.7.1 version file for thermoPhysical model. As an example below is file from OF 2.0.0


/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.0.0 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object thermophysicalProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
thermoType hPsiThermo<pureMixture<sutherlandTransport<specieT hermo<hConstThermo<perfectGas>>>>>;
mixture
{
specie
{
nMoles 1;
molWeight 28.9;
}
thermodynamics
{
Cp 1007;
Hf 0;
}
transport
{
As 1.4792e-06;
Ts 116;
}
}

// ******************************** //

Best luck

Regards
Suhas

javad814 September 9, 2011 16:47

thanks alot

gdum November 7, 2017 12:50

Hi there,

I received the following error.
Can somebody help me to fix it?

Best regards,

Guillaume

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 5.0-dbb428a3a855
Exec : simpleReactingParcelFoam
Date : Nov 07 2017
Time : 10:25:39
Host : "guillaume-VirtualBox"
PID : 17846
I/O : uncollated
Case : /home/guillaume/OpenFOAM/FM_in_duct
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


SIMPLE: convergence criteria
field p tolerance 0.001
field U tolerance 0.0001
field "(k|epsilon|air|H2O)" tolerance 0.0001


Reading g
Creating combustion model

Selecting combustion model noCombustion<rhoThermoCombustion>
Selecting thermodynamics package
{
type heRhoThermo;
mixture reactingMixture;
transport polynomial;
thermo hPolynomial;
energy sensibleEnthalpy;
equationOfState icoPolynomial;
specie specie;
}

Selecting chemistryReader foamChemistryReader
elements not defined in "/home/guillaume/OpenFOAM/FM_in_duct/constant/reactions"
Creating component thermo properties:
multi-component carrier - 2 species
liquids - 1 components
solids - 0 components

Reading field U

Reading/calculating face flux field phi

Creating turbulence model

Selecting turbulence model type RAS
Selecting RAS turbulence model realizableKE
RAS
{
turbulence on;
RASModel realizableKE;
printCoeffs on;
A0 4;
C2 1.9;
sigmak 1;
sigmaEps 1.2;
}

Creating multi-variate interpolation scheme

No MRF models present

Selecting radiationModel none

Constructing reacting cloud
Constructing particle forces
Selecting particle force sphereDrag
Selecting particle force gravity
Constructing cloud functions
none
Constructing particle injection models
Creating injector: model1
Selecting injection model coneInjection
Constructing 3-D injection
Selecting distribution model RosinRammler
Creating injector: dispersionModel


--> FOAM FATAL ERROR:
Attempt to return primitive entry ITstream : /home/guillaume/OpenFOAM/FM_in_duct/constant/reactingCloud1Properties.subModels.injectionModels .dispersionModel, line 122, IOstream: Version 2.0, format ASCII, line 0, OPENED, GOOD
primitiveEntry 'dispersionModel' comprises
on line 122 the word 'none'
as a sub-dictionary

From function virtual const Foam::dictionary& Foam::primitiveEntry::dict() const
in file db/dictionary/primitiveEntry/primitiveEntry.C at line 189.

FOAM aborting

#0 Foam::error::printStack(Foam::Ostream&) at ??:?
#1 Foam::error::abort() at ??:?
#2 Foam::primitiveEntry::dict() const at primitiveEntry.C:?
#3 ? in "/opt/openfoam5/platforms/linux64GccDPInt32Opt/bin/simpleReactingParcelFoam"
#4 ? in "/opt/openfoam5/platforms/linux64GccDPInt32Opt/bin/simpleReactingParcelFoam"
#5 ? in "/opt/openfoam5/platforms/linux64GccDPInt32Opt/bin/simpleReactingParcelFoam"
#6 ? in "/opt/openfoam5/platforms/linux64GccDPInt32Opt/bin/simpleReactingParcelFoam"
#7 ? in "/opt/openfoam5/platforms/linux64GccDPInt32Opt/bin/simpleReactingParcelFoam"
#8 ? in "/opt/openfoam5/platforms/linux64GccDPInt32Opt/bin/simpleReactingParcelFoam"
#9 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#10 ? in "/opt/openfoam5/platforms/linux64GccDPInt32Opt/bin/simpleReactingParcelFoam"
Aborted (core dumped)


All times are GMT -4. The time now is 04:37.