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

Error message when using buoyantSimpleFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 6, 2011, 05:53
Default Error message when using buoyantSimpleFoam
  #1
New Member
 
Join Date: May 2011
Location: Germany/Bosnia
Posts: 9
Rep Power: 14
almir is on a distinguished road
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
almir is offline   Reply With Quote

Old   June 6, 2011, 09:47
Default
  #2
New Member
 
Andreas_F
Join Date: Feb 2010
Posts: 3
Rep Power: 16
Andreas_F is on a distinguished road
The error message is telling you that the g file does not exist. Try putting it in the constant directory.
Andreas_F is offline   Reply With Quote

Old   June 7, 2011, 05:52
Default
  #3
New Member
 
Join Date: May 2011
Location: Germany/Bosnia
Posts: 9
Rep Power: 14
almir is on a distinguished road
hi Andreas,

thank you! you have solved my problem.

Last edited by almir; June 8, 2011 at 07:02.
almir is offline   Reply With Quote

Old   June 8, 2011, 07:02
Default
  #4
New Member
 
Join Date: May 2011
Location: Germany/Bosnia
Posts: 9
Rep Power: 14
almir is on a distinguished road
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:rintStack(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:imensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) in "/opt/openfoam171/lib/linux64GccDPOpt/libcompressibleRASModels.so"
#3 Foam::fvPatchField<double>::New(Foam::fvPatch const&, Foam:imensionedField<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:imensionedField<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
almir is offline   Reply With Quote

Reply


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
buoyantSimpleFoam velocity oszillation 1.6-ext preibie OpenFOAM Running, Solving & CFD 4 May 13, 2011 04:09
Running buoyantSimpleFoam with oodles data as initialisation samulu OpenFOAM 5 November 19, 2009 11:49
BuoyantSimpleFoam amitshah OpenFOAM Running, Solving & CFD 4 June 3, 2009 06:04
buoyantSimpleFoam Message error Khelian973 OpenFOAM Running, Solving & CFD 8 June 2, 2009 13:26
buoyantSimpleFoam error message Khelian973 OpenFOAM Running, Solving & CFD 4 April 16, 2009 04:45


All times are GMT -4. The time now is 13:34.