CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   hi (https://www.cfd-online.com/Forums/openfoam/91860-hi.html)

javad814 August 24, 2011 18:20

hi
 
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


All times are GMT -4. The time now is 12:06.