CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Error message when using buoyantSimpleFoam (https://www.cfd-online.com/Forums/openfoam/89137-error-message-when-using-buoyantsimplefoam.html)

almir June 6, 2011 05:53

Error message when using buoyantSimpleFoam
 
hi,

i have a big problem when i try to use the function buoyantSimpleFoam.
OpenFoam brings me always this error message:

almir@ubuntu:~/OpenFOAM/Netz/mittel$ buoyantSimpleFoam
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.7.x |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 1.7.x-3776603e4c6c
Exec : buoyantSimpleFoam
Date : Jun 01 2011
Time : 18:31:04
Host : ubuntu
PID : 2165
Case : /home/almir/OpenFOAM/Netz/mittel
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

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

Create mesh for time = 0


Reading g


--> FOAM FATAL IO ERROR:
cannot open file

file: /home/almir/OpenFOAM/Netz/mittel/constant/g at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 61.

FOAM exiting

almir@ubuntu:~/OpenFOAM/Netz/mittel$



I dont understand that, when i go into the constant-folder there is no file called "g".
In my case i have about 300 patches, maybe the high number of patches is the problem. I have unit some of the patches in the boundary conditions (in the 0-folder) with the function
boundaryField
{

"patch[1-358]+"
{
type fixedValue;
value uniform 303.75; // 30.6 degC
}
maybe this is the problem??

but i also have made a simple example with an easy geometry with only 9 patches and i get same error message.

can somebody help me?

greets

almir

Andreas_F June 6, 2011 09:47

The error message is telling you that the g file does not exist. Try putting it in the constant directory.

almir June 7, 2011 05:52

hi Andreas,

thank you! you have solved my problem.:)

almir June 8, 2011 07:02

hi,

now OpenFoam brings me a new ErrorMessage:


almir@ubuntu:~/OpenFOAM/zylinder$ buoyantSimpleFoam
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.7.x |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 1.7.x-3776603e4c6c
Exec : buoyantSimpleFoam
Date : Jun 08 2011
Time : 12:34:57
Host : ubuntu
PID : 4727
Case : /home/almir/OpenFOAM/zylinder
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

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

Create mesh for time = 0


Reading g
Reading thermophysical properties

Selecting thermodynamics package hPsiThermo<pureMixture<constTransport<specieThermo <hConstThermo<perfectGas>>>>>
Reading field U

Reading/calculating face flux field phi

Creating turbulence model

Selecting RAS turbulence model kOmegaSST


--> FOAM FATAL ERROR:
Invalid wall function specification
Patch type for patch patch1 must be wall
Current patch type is patch



From function kqRWallFunctionFvPatchField::checkType()
in file derivedFvPatchFields/wallFunctions/kqRWallFunctions/kqRWallFunction/kqRWallFunctionFvPatchField.C at line 47.

FOAM aborting

#0 Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam171/lib/linux64GccDPOpt/libOpenFOAM.so"
#1 Foam::error::abort() in "/opt/openfoam171/lib/linux64GccDPOpt/libOpenFOAM.so"
#2 Foam::fvPatchField<double>::adddictionaryConstruct orToTable<Foam::compressible::RASModels::kqRWallFu nctionFvPatchField<double> >::New(Foam::fvPatch const&, Foam::DimensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) in "/opt/openfoam171/lib/linux64GccDPOpt/libcompressibleRASModels.so"
#3 Foam::fvPatchField<double>::New(Foam::fvPatch const&, Foam::DimensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) in "/opt/openfoam171/applications/bin/linux64GccDPOpt/buoyantSimpleFoam"
#4 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::GeometricB oundaryField(Foam::fvBoundaryMesh const&, Foam::DimensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) in "/opt/openfoam171/applications/bin/linux64GccDPOpt/buoyantSimpleFoam"
#5 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::readField(Foam::dictionary const&) in "/opt/openfoam171/applications/bin/linux64GccDPOpt/buoyantSimpleFoam"
#6 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::readField(Foam::Istream&) in "/opt/openfoam171/applications/bin/linux64GccDPOpt/buoyantSimpleFoam"
#7 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricField(Foam::IOobject const&, Foam::fvMesh const&) in "/opt/openfoam171/applications/bin/linux64GccDPOpt/buoyantSimpleFoam"
#8 Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > Foam::compressible::autoCreateWallFunctionField<do uble, Foam::compressible::RASModels::kqRWallFunctionFvPa tchField<double> >(Foam::word const&, Foam::fvMesh const&) in "/opt/openfoam171/lib/linux64GccDPOpt/libcompressibleRASModels.so"
#9 Foam::compressible::autoCreateK(Foam::word const&, Foam::fvMesh const&) in "/opt/openfoam171/lib/linux64GccDPOpt/libcompressibleRASModels.so"
#10 Foam::compressible::RASModels::kOmegaSST::kOmegaSS T(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 "/opt/openfoam171/lib/linux64GccDPOpt/libcompressibleRASModels.so"
#11 Foam::compressible::RASModel::adddictionaryConstru ctorToTable<Foam::compressible::RASModels::kOmegaS ST>::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 "/opt/openfoam171/lib/linux64GccDPOpt/libcompressibleRASModels.so"
#12 Foam::compressible::RASModel::New(Foam::GeometricF ield<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 "/opt/openfoam171/lib/linux64GccDPOpt/libcompressibleRASModels.so"
#13
in "/opt/openfoam171/applications/bin/linux64GccDPOpt/buoyantSimpleFoam"
#14 __libc_start_main in "/lib/libc.so.6"
#15
in "/opt/openfoam171/applications/bin/linux64GccDPOpt/buoyantSimpleFoam"
Abgebrochen
almir@ubuntu:~/OpenFOAM/zylinder$




I think my problem is that i have used for meshing Netgen 4.9.13. this was working quite good, and also the export to OpenFoam Format. But in the constant-folder my boundary-file is looking like that:

9
(
patch1
{
type patch;
physicalType patch;
nFaces 126;
startFace 7486;
}
patch2
{
type patch;
physicalType patch;
nFaces 132;
startFace 7612;
}

and i wont to use the tutorial-files from buoyantCavity for my research, and i have edited them with the patches i have from Netgen. For example i have edited alphat-file like that:

FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object alphat;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [1 -1 -1 0 0 0 0];

internalField uniform 0;

boundaryField
{
"patch[4-9]+"
{
type alphatWallFunction;
Prt 0.85;
value uniform 0;
}

"patch[1-3]+"
{
type alphatWallFunction;
Prt 0.85;
value uniform 0;
}
}



So my question is how i have to edit the files in the 0-folder (alphat, epsilon, k, mut...)? Or do i have to edit the boundary-file?


greets


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