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

simpleFoam crash fast!

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 10, 2013, 02:16
Default simpleFoam crash fast!
  #1
Senior Member
 
izna O'connor
Join Date: Jun 2013
Posts: 143
Rep Power: 12
izna is on a distinguished road
Hi..

after meshing my case successfully, I run simpleFoam, to obtain the following error.

can anyone tell me what should i do?


Quote:
> FOAM Warning :
From function Field<Type>::Field(const word& keyword, const dictionary&, const label)
in file /home/opencfd/OpenFOAM/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude/Field.C at line 262
Reading "/home/izna/Desktop/Askervein/0/U.boundaryField.inlet" from line 35 to line 43
expected keyword 'uniform' or 'nonuniform', assuming deprecated Field format from Foam version 2.0.
#0 Foam::error:rintStack(Foam::Ostream&) in "/opt/openfoam220/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#1 Foam::sigFpe::sigHandler(int) in "/opt/openfoam220/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#2 Uninterpreted:
#3 log in "/lib/i386-linux-gnu/libm.so.6"
#4 Foam::incompressible::atmBoundaryLayerInletVelocit yFvPatchVectorField::atmBoundaryLayerInletVelocity FvPatchVectorField(Foam::fvPatch const&, Foam:imensionedField<Foam::Vector<double>, Foam::volMesh> const&, Foam::dictionary const&) in "/opt/openfoam220/platforms/linuxGccDPOpt/lib/libincompressibleRASModels.so"
#5 Foam::fvPatchField<Foam::Vector<double> >::adddictionaryConstructorToTable<Foam::incompres sible::atmBoundaryLayerInletVelocityFvPatchVectorF ield>::New(Foam::fvPatch const&, Foam:imensionedField<Foam::Vector<double>, Foam::volMesh> const&, Foam::dictionary const&) in "/opt/openfoam220/platforms/linuxGccDPOpt/lib/libincompressibleRASModels.so"
#6 Foam::fvPatchField<Foam::Vector<double> >::New(Foam::fvPatch const&, Foam:imensionedField<Foam::Vector<double>, Foam::volMesh> const&, Foam::dictionary const&) in "/opt/openfoam220/platforms/linuxGccDPOpt/bin/simpleFoam"
#7 Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::readField( Foam:imensionedField<Foam::Vector<double>, Foam::volMesh> const&, Foam::dictionary const&) in "/opt/openfoam220/platforms/linuxGccDPOpt/bin/simpleFoam"
#8 Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::readFields(Foam::dictionary const&) in "/opt/openfoam220/platforms/linuxGccDPOpt/bin/simpleFoam"
#9 Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::readFields() in "/opt/openfoam220/platforms/linuxGccDPOpt/bin/simpleFoam"
#10 Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::GeometricField(Foam::IOobject const&, Foam::fvMesh const&) in "/opt/openfoam220/platforms/linuxGccDPOpt/bin/simpleFoam"
#11
in "/opt/openfoam220/platforms/linuxGccDPOpt/bin/simpleFoam"
#12 __libc_start_main in "/lib/i386-linux-gnu/libc.so.6"
#13
in "/opt/openfoam220/platforms/linuxGccDPOpt/bin/simpleFoam"
Floating point exception (core dumped)


Last edited by izna; August 10, 2013 at 03:18.
izna is offline   Reply With Quote

Old   August 10, 2013, 12:21
Default
  #2
Member
 
Patrick Wollny
Join Date: Apr 2010
Posts: 58
Rep Power: 16
Pat84 is on a distinguished road
Looks like you forgot the word "uniform" for your velocity inlet boundary condition
Pat84 is offline   Reply With Quote

Old   August 12, 2013, 00:46
Default
  #3
Senior Member
 
izna O'connor
Join Date: Jun 2013
Posts: 143
Rep Power: 12
izna is on a distinguished road
hi

this is my file for U.. I have not forgotten the word uniform..

Quote:
#include "include/initialConditions"

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

internalField uniform $flowVelocity;

boundaryField
{
#include "include/ABLConditions"

outlet
{
type zeroGradient;
}

inlet
{
type atmBoundaryLayerInletVelocity;
Uref $Uref;
Href $Href;
n $windDirection;
z $zDirection;
z0 $z0;
value $internalField;
zGround $zGround;
kappa 0.4;
}


terrain_patch0
{
type uniformFixedValue;
value uniform (0 0 0);
}

ground
{
type fixedValue;
value uniform (0 0 0);
}

top
{
type atmBoundaryLayerInletVelocity;
Uref $Uref;
Href $Href;
n $windDirection;
z $zDirection;
z0 $z0;
value $internalField;
zGround $zGround;
kappa 0.4;
}

#include "include/sideAndTopPatches"
}
izna is offline   Reply With Quote

Old   August 12, 2013, 01:56
Default
  #4
Super Moderator
 
-mAx-'s Avatar
 
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41
-mAx- will become famous soon enough
all your "$"-parameters are not set.
I assume you should run a script which replaces all the $-parameters with right value
__________________
In memory of my friend Hervé: CFD engineer & freerider
-mAx- is offline   Reply With Quote

Old   August 12, 2013, 03:02
Default
  #5
Senior Member
 
izna O'connor
Join Date: Jun 2013
Posts: 143
Rep Power: 12
izna is on a distinguished road
dear Max,

can you please elaborate...

where to define those parameters? i mean which folders?
izna is offline   Reply With Quote

Old   August 12, 2013, 03:18
Default
  #6
Super Moderator
 
-mAx-'s Avatar
 
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41
-mAx- will become famous soon enough
I am not experienced with atmBoundaryLayerInletVelocity, but for sure the third line of your U file should look like "internalField uniform (0 0 0);"
where (0 0 0) is the velocity vector for domain initialization.
But you have "internalField uniform $flowVelocity;"
$flowVelocity is a parameter for a script, which should automatically set the velocity vector (understand replace $flowVelocity with the right vector).
So either you get this script, and you run it, or you replace all the "$-parameters" with their right values.
The script is not a part of OF.
__________________
In memory of my friend Hervé: CFD engineer & freerider
-mAx- is offline   Reply With Quote

Old   August 13, 2013, 03:52
Default
  #7
Senior Member
 
izna O'connor
Join Date: Jun 2013
Posts: 143
Rep Power: 12
izna is on a distinguished road
hi thanks for the reply dear max

can you tell me what does the followingh error means? I get this when i run ./Allrun

Quote:
running 500,000 cells mesh
Traceback (most recent call last):
File "./runAskervein.py", line 26, in <module>
from PyFoam.RunDictionary.SolutionDirectory import SolutionDirectory
ImportError: No module named PyFoam.RunDictionary.SolutionDirectory
running 5,000,000 cells
Traceback (most recent call last):
File "./runAskervein.py", line 26, in <module>
from PyFoam.RunDictionary.SolutionDirectory import SolutionDirectory
ImportError: No module named PyFoam.RunDictionary.SolutionDirectory
izna is offline   Reply With Quote

Old   August 13, 2013, 03:57
Default
  #8
Super Moderator
 
-mAx-'s Avatar
 
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41
-mAx- will become famous soon enough
edit "Allrun" file and check what it is supposed to do.
__________________
In memory of my friend Hervé: CFD engineer & freerider
-mAx- is offline   Reply With Quote

Old   August 13, 2013, 04:03
Default
  #9
Senior Member
 
izna O'connor
Join Date: Jun 2013
Posts: 143
Rep Power: 12
izna is on a distinguished road
Quote:
echo running 500,000 cells mesh
./runAskervein.py . Askervein_SHM_200 598167.367 6339602.511 10000 10000 30 200 1000 120
echo running 5,000,000 cells
./runAskervein.py . Askervein_SHM_75 598167.367 6339602.511 10000 10000 30 75 1000 120
it is supposed to do the above..
izna is offline   Reply With Quote

Old   August 13, 2013, 04:09
Default
  #10
Senior Member
 
izna O'connor
Join Date: Jun 2013
Posts: 143
Rep Power: 12
izna is on a distinguished road
i got that case from the net and each i am geting the same error..
izna is offline   Reply With Quote

Old   August 13, 2013, 04:12
Default
  #11
Super Moderator
 
-mAx-'s Avatar
 
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41
-mAx- will become famous soon enough
check this script runAskervein.py
__________________
In memory of my friend Hervé: CFD engineer & freerider
-mAx- is offline   Reply With Quote

Old   August 13, 2013, 04:14
Default
  #12
Member
 
Patrick Wollny
Join Date: Apr 2010
Posts: 58
Rep Power: 16
Pat84 is on a distinguished road
Have you installed pyFoam?
Pat84 is offline   Reply With Quote

Old   August 13, 2013, 05:00
Default
  #13
Senior Member
 
izna O'connor
Join Date: Jun 2013
Posts: 143
Rep Power: 12
izna is on a distinguished road
On installing the pyFOam and again running ./Allrun.. i obtain the foll error..

Quote:
Traceback (most recent call last):
File "./runAskervein.py", line 114, in <module>
template = TemplateFile(bmName+".template")
File "/usr/local/lib/python2.7/dist-packages/PyFoam/Basics/TemplateFile.py", line 381, in __init__
escape=None
File "/usr/local/lib/python2.7/dist-packages/PyFoam/ThirdParty/pyratemp.py", line 1190, in __init__
parsetree = p.parse(tmpl)
File "/usr/local/lib/python2.7/dist-packages/PyFoam/ThirdParty/pyratemp.py", line 547, in parse
return self._parse(template)
File "/usr/local/lib/python2.7/dist-packages/PyFoam/ThirdParty/pyratemp.py", line 755, in _parse
self._parse_sub(parsetree, template[curr:], fpos)
File "/usr/local/lib/python2.7/dist-packages/PyFoam/ThirdParty/pyratemp.py", line 578, in _parse_sub
self._testexpr(match.group("sub"), fpos+start)
File "/usr/local/lib/python2.7/dist-packages/PyFoam/ThirdParty/pyratemp.py", line 560, in _testexpr
raise TemplateSyntaxError(err, self._errpos(fpos))
PyFoam.ThirdParty.pyratemp.TemplateSyntaxError: line 2, col 1: invalid syntax (, line 1)
running 5,000,000 cells
Traceback (most recent call last):
File "./runAskervein.py", line 114, in <module>
template = TemplateFile(bmName+".template")
File "/usr/local/lib/python2.7/dist-packages/PyFoam/Basics/TemplateFile.py", line 381, in __init__
escape=None
File "/usr/local/lib/python2.7/dist-packages/PyFoam/ThirdParty/pyratemp.py", line 1190, in __init__
parsetree = p.parse(tmpl)
File "/usr/local/lib/python2.7/dist-packages/PyFoam/ThirdParty/pyratemp.py", line 547, in parse
return self._parse(template)
File "/usr/local/lib/python2.7/dist-packages/PyFoam/ThirdParty/pyratemp.py", line 755, in _parse
self._parse_sub(parsetree, template[curr:], fpos)
File "/usr/local/lib/python2.7/dist-packages/PyFoam/ThirdParty/pyratemp.py", line 578, in _parse_sub
self._testexpr(match.group("sub"), fpos+start)
File "/usr/local/lib/python2.7/dist-packages/PyFoam/ThirdParty/pyratemp.py", line 560, in _testexpr
raise TemplateSyntaxError(err, self._errpos(fpos))
PyFoam.ThirdParty.pyratemp.TemplateSyntaxError: line 2, col 1: invalid syntax (, line 1)


Last edited by izna; August 13, 2013 at 06:24.
izna is offline   Reply With Quote

Old   August 13, 2013, 05:10
Default
  #14
Senior Member
 
izna O'connor
Join Date: Jun 2013
Posts: 143
Rep Power: 12
izna is on a distinguished road
Quote:
Originally Posted by -mAx- View Post
check this script runAskervein.py

Max when i do the command its says:
Quote:
runAskervein.py: command not found
EVen after i installed the pyFoam it says same things.
izna is offline   Reply With Quote

Old   August 13, 2013, 06:59
Default
  #15
Super Moderator
 
-mAx-'s Avatar
 
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41
-mAx- will become famous soon enough
with check I meant edit the file and check what it is executing...
For running it, you have to know which arguments etc... you have to enter.
But I don't know exactly what does this script and I suggest you to ignore it and go back to basics: set your BC properly and run simpleFoam.
__________________
In memory of my friend Hervé: CFD engineer & freerider
-mAx- is offline   Reply With Quote

Old   August 20, 2013, 05:51
Default simpleFoam error due to atmBoundaryLayerInletVelocity
  #16
Senior Member
 
izna O'connor
Join Date: Jun 2013
Posts: 143
Rep Power: 12
izna is on a distinguished road
Each time same error.. I need help badly
Quote:
Create time

Create mesh for time = 0

Reading field p

Reading field U

--> FOAM Warning :
From function Field<Type>::Field(const word& keyword, const dictionary&, const label)
in file /home/opencfd/OpenFOAM/OpenFOAM-2.2.1/src/OpenFOAM/lnInclude/Field.C at line 262
Reading "/home/izna/Desktop/AskerveinM/0/U.boundaryField.inlet" from line 35 to line 16
expected keyword 'uniform' or 'nonuniform', assuming deprecated Field format from Foam version 2.0.
#0 Foam::error:rintStack(Foam::Ostream&) in "/opt/openfoam221/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#1 Foam::sigFpe::sigHandler(int) in "/opt/openfoam221/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#2 Uninterpreted:
#3 log in "/lib/i386-linux-gnu/libm.so.6"
#4 Foam::incompressible::atmBoundaryLayerInletVelocit yFvPatchVectorField::atmBoundaryLayerInletVelocity FvPatchVectorField(Foam::fvPatch const&, Foam:imensionedField<Foam::Vector<double>, Foam::volMesh> const&, Foam::dictionary const&) in "/opt/openfoam221/platforms/linuxGccDPOpt/lib/libincompressibleRASModels.so"
#5 Foam::fvPatchField<Foam::Vector<double> >::adddictionaryConstructorToTable<Foam::incompres sible::atmBoundaryLayerInletVelocityFvPatchVectorF ield>::New(Foam::fvPatch const&, Foam:imensionedField<Foam::Vector<double>, Foam::volMesh> const&, Foam::dictionary const&) in "/opt/openfoam221/platforms/linuxGccDPOpt/lib/libincompressibleRASModels.so"
#6 Foam::fvPatchField<Foam::Vector<double> >::New(Foam::fvPatch const&, Foam:imensionedField<Foam::Vector<double>, Foam::volMesh> const&, Foam::dictionary const&) in "/opt/openfoam221/platforms/linuxGccDPOpt/bin/simpleFoam"
#7 Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::readField( Foam:imensionedField<Foam::Vector<double>, Foam::volMesh> const&, Foam::dictionary const&) in "/opt/openfoam221/platforms/linuxGccDPOpt/bin/simpleFoam"
#8 Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::readFields(Foam::dictionary const&) in "/opt/openfoam221/platforms/linuxGccDPOpt/bin/simpleFoam"
#9 Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::readFields() in "/opt/openfoam221/platforms/linuxGccDPOpt/bin/simpleFoam"
#10 Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::GeometricField(Foam::IOobject const&, Foam::fvMesh const&) in "/opt/openfoam221/platforms/linuxGccDPOpt/bin/simpleFoam"
#11
in "/opt/openfoam221/platforms/linuxGccDPOpt/bin/simpleFoam"
#12 __libc_start_main in "/lib/i386-linux-gnu/libc.so.6"
#13
in "/opt/openfoam221/platforms/linuxGccDPOpt/bin/simpleFoam"
Floating point exception (core dumped)

izna is offline   Reply With Quote

Old   August 20, 2013, 06:12
Default
  #17
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21
Bernhard is on a distinguished road
Quote:
Originally Posted by -mAx- View Post
$flowVelocity is a parameter for a script, which should automatically set the velocity vector (understand replace $flowVelocity with the right vector).
So either you get this script, and you run it, or you replace all the "$-parameters" with their right values.
The script is not a part of OF.
This is not correct as
Code:
#include "include/initialConditions"
would probably contain
Code:
flowVelocity (10 0 0);
this should work fine.
Bernhard is offline   Reply With Quote

Old   August 20, 2013, 06:26
Default
  #18
Super Moderator
 
-mAx-'s Avatar
 
Maxime Perelli
Join Date: Mar 2009
Location: Switzerland
Posts: 3,297
Rep Power: 41
-mAx- will become famous soon enough
Quote:
Originally Posted by Bernhard View Post
This is not correct as
Code:
#include "include/initialConditions"
would probably contain
Code:
flowVelocity (10 0 0);
this should work fine.
But all the $-parameters should remain in the U-file, or they will be replaced with their rihgt values?
I never used "include/initialConditions
__________________
In memory of my friend Hervé: CFD engineer & freerider
-mAx- is offline   Reply With Quote

Old   August 20, 2013, 06:29
Default
  #19
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21
Bernhard is on a distinguished road
The correct values will be used. Pretty handy if you need variables at multiple places. You can include any file that you wish. For example, sometimes I include the blockMeshDict in the setFieldsDict, works perfectly fine.

Especially in OF 2.2, there are some advanced possibilities, see: http://www.openfoam.org/version2.2.0/pre-processing.php
Bernhard is offline   Reply With Quote

Old   August 20, 2013, 06:37
Default
  #20
Senior Member
 
izna O'connor
Join Date: Jun 2013
Posts: 143
Rep Power: 12
izna is on a distinguished road
Hi Bernard Below is my ABL file.. I have configured everyhting step by step and all my $ have been already initialised.. still i get error..

Quote:
#include "include/initialConditions"

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

internalField uniform $flowVelocity;

boundaryField
{
#include "include/ABLConditions"

outlet
{
type zeroGradient;
}

inlet
{
type atmBoundaryLayerInletVelocity;
Uref $Uref;
Href $Href;
n $windDirection;
z $zDirection;
z0 $z0;
value $internalField;
zGround $zGround;
//kappa 0.4;
}


terrain_patch0
{
type fixedValue;
value uniform (0 0 0);
}

ground
{
type fixedValue;
value uniform (0 0 0);
}

top
{
type atmBoundaryLayerInletVelocity;
Uref $Uref;
Href $Href;
n $windDirection;
z $zDirection;
z0 $z0;
value $internalField;
zGround $zGround;
//kappa 0.4;
}

#include "include/sideAndTopPatches"
}
izna 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
interFoam vs. simpleFoam channel flow comparison DanM OpenFOAM Running, Solving & CFD 12 January 31, 2020 15:26
Laminar simpleFoam and inviscid simpleFoam herenger OpenFOAM Running, Solving & CFD 7 July 11, 2013 06:27
Trying to run a benchmark case with simpleFoam spsb OpenFOAM 3 February 24, 2012 09:07
simpleFoam crash -> How to solve tH3f0rC3 OpenFOAM 4 May 12, 2011 07:07
Naca0012 k-e mpirun gives fpe whereas simpleFoam not Pierpaolo OpenFOAM 1 May 8, 2010 03:08


All times are GMT -4. The time now is 07:33.