CfdOF Fatal error: Unable to find mesh in directory ../meshCase
Moderator: oliveroxtoby
Forum rules
and Helpful information for the FEM forum
and Helpful information for the FEM forum
CfdOF Fatal error: Unable to find mesh in directory ../meshCase
Hi there
Officially hit the brick wall. Searched this forum and the old inter web , nothing seems to be working. Even asked a teenager ! no joy !
The problem is, when running the solver i get " Fatal error: Unable to find mesh in directory ../meshCase"
So I put the mesh there myself! all meshes , in all the folders ! even tried linking through free cad preference to any folder I could thing of connected with open foam and freecad,
tried resizing the mesh and parameters
Still " Fatal error: Unable to find mesh in directory ../meshCase" .
installed no problems, dependencies all met , Open foam working in terminal no problem Paraview all good Cfmesh Hisa all installed no problem ( Im pretty sure , I cant see it otherwise however Im a bit suspect that the tutorials havent loaded ,, but I dont know )
So here are the details
OS: Ubuntu 20.04.3 LTS (ubuntu:GNOME/ubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24291 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.19.2)
Hash: 7b5e18a0759de778b74d3a5c17eba9cb815035ac
Python version: 3.8.8
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/United States (en_US)
Free cad preferences; Checking dependencies...
No missing dependencies detected
Openfoam install directory /opt/openfoam9
Paraview executable path /opt/paraviewopenfoam56/bin/paraview
Default output directory /tmp/meshCase
proccedure , run mesher , write mesh case run mesher 0.0: Preparing meshing ...
0.0: Exporting mesh refinement data ...
0.1: Exporting the part surfaces ...
0.2: Mesh case written successfully
0.0: Running gmsh ...
0.0: Mesher started
1.1: Meshing completed
0.0: Running gmsh ...
0.0: Mesher started
1.1: Meshing completed
Reading mesh ...
Triangulated representation of the surface mesh is shown -
Please view in Paraview for accurate display.
write cfdsolver 0.0: Checking dependencies...
0.0: Case writer called
0.0: Matching boundary conditions ...
0.2: Case written successfully
run solver
and a new problem Great never seen this one before ! 0.0: Checking dependencies...
0.0: Case writer called
0.0: Matching boundary conditions ...
0.2: Case written successfully
0.1: Solver started
0.7: OpenFOAM IO error: Unable to set reference cell for field p file: /tmp/meshCase/case/system/fvSolution/potentialFlow from line 36 to line 39.
0.7: Simulation exited with error
tried again using static pressure , and 0.5kg/s flow rate
0.0: Checking dependencies...
0.0: Case writer called
0.0: Matching boundary conditions ...
0.2: Case written successfully
0.1: Solver started
0.5: Fatal error: Unable to find mesh in directory ../meshCase
0.5: Simulation exited with error
any Ideas , The most probable cause is the user ( me ) not know what he is doing, cause I dont ! .. So if some kind soul could pick up a frying pan and steer me in the right direction I would be ever so grateful
Kind regards in advance
Stephen
Officially hit the brick wall. Searched this forum and the old inter web , nothing seems to be working. Even asked a teenager ! no joy !
The problem is, when running the solver i get " Fatal error: Unable to find mesh in directory ../meshCase"
So I put the mesh there myself! all meshes , in all the folders ! even tried linking through free cad preference to any folder I could thing of connected with open foam and freecad,
tried resizing the mesh and parameters
Still " Fatal error: Unable to find mesh in directory ../meshCase" .
installed no problems, dependencies all met , Open foam working in terminal no problem Paraview all good Cfmesh Hisa all installed no problem ( Im pretty sure , I cant see it otherwise however Im a bit suspect that the tutorials havent loaded ,, but I dont know )
So here are the details
OS: Ubuntu 20.04.3 LTS (ubuntu:GNOME/ubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24291 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.19.2)
Hash: 7b5e18a0759de778b74d3a5c17eba9cb815035ac
Python version: 3.8.8
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/United States (en_US)
Free cad preferences; Checking dependencies...
No missing dependencies detected
Openfoam install directory /opt/openfoam9
Paraview executable path /opt/paraviewopenfoam56/bin/paraview
Default output directory /tmp/meshCase
proccedure , run mesher , write mesh case run mesher 0.0: Preparing meshing ...
0.0: Exporting mesh refinement data ...
0.1: Exporting the part surfaces ...
0.2: Mesh case written successfully
0.0: Running gmsh ...
0.0: Mesher started
1.1: Meshing completed
0.0: Running gmsh ...
0.0: Mesher started
1.1: Meshing completed
Reading mesh ...
Triangulated representation of the surface mesh is shown -
Please view in Paraview for accurate display.
write cfdsolver 0.0: Checking dependencies...
0.0: Case writer called
0.0: Matching boundary conditions ...
0.2: Case written successfully
run solver
and a new problem Great never seen this one before ! 0.0: Checking dependencies...
0.0: Case writer called
0.0: Matching boundary conditions ...
0.2: Case written successfully
0.1: Solver started
0.7: OpenFOAM IO error: Unable to set reference cell for field p file: /tmp/meshCase/case/system/fvSolution/potentialFlow from line 36 to line 39.
0.7: Simulation exited with error
tried again using static pressure , and 0.5kg/s flow rate
0.0: Checking dependencies...
0.0: Case writer called
0.0: Matching boundary conditions ...
0.2: Case written successfully
0.1: Solver started
0.5: Fatal error: Unable to find mesh in directory ../meshCase
0.5: Simulation exited with error
any Ideas , The most probable cause is the user ( me ) not know what he is doing, cause I dont ! .. So if some kind soul could pick up a frying pan and steer me in the right direction I would be ever so grateful
Kind regards in advance
Stephen
- Attachments
-
- cylinder.FCStd
- (12.93 KiB) Downloaded 66 times
Re: CfdOF Fatal error: Unable to find mesh in directory ../meshCase
Hi Stephen,
you are at a Linux system, - i'm pretty sure you don't have a meshCase there, the path must be somthing like /home/yourhomedirname/
the error message shows what you need to know...
you are at a Linux system, - i'm pretty sure you don't have a meshCase there, the path must be somthing like /home/yourhomedirname/
Gruß Herbert
- oliveroxtoby
- Posts: 840
- Joined: Fri Dec 23, 2016 9:43 am
- Location: South Africa
Re: CfdOF Fatal error: Unable to find mesh in directory ../meshCase
the error message shows what you need to know...
you are at a Linux system, - i'm pretty sure you don't have a meshCase there, the path must be something like /home/yourhomedirname/
[/quote]
Thank you, As I pointed out , Sorry if I wasn't clear ! I physically placed the mesh in the directory.
I can also see the mesh in Paraview Here are screenshots , Maybe the output path is wrong?
Thanks in advance
Stephen
- Attachments
-
- Screenshot from 2021-11-06 22-26-38.png (154.99 KiB) Viewed 10093 times
-
- Screenshot from 2021-11-06 22-29-36.png (184.73 KiB) Viewed 10093 times
- oliveroxtoby
- Posts: 840
- Joined: Fri Dec 23, 2016 9:43 am
- Location: South Africa
Re: CfdOF Fatal error: Unable to find mesh in directory ../meshCase
I'm not sure what you mean by "physically placed the mesh in the directory", but you should not have to do any manual relocation of any files. Also, your default output directory of /tmp/meshCase could be causing some confusion. You would usually set this to /tmp, and then CfdOF will create /tmp/meshCase when you do "Write mesh case". "Run mesher" will then create the actual mesh (in the meshCase/constant/polyMesh folder). When you execute "Write case" it will create a folder /tmp/case. On "Run solver", it will look one folder up for the "meshCase" directory (hence the relative path).
Be aware that if you restart your computer between running the mesher and the solver, the /tmp folder will have been cleared and you will have to re-do the write mesh case / run mesher steps. To be sure, re-run these anyway and make sure all the folders exist where expected. Nothing has to be moved around.
Re: CfdOF Fatal error: Unable to find mesh in directory ../meshCase
hi there
Thank you for the reply
I suppose my stupidity will help someone else so Ill post as much info as I can. Sorry if its too much?
What I meant by physically placing the model into the directory was ..I meshed the original used openFoam , which works well on this machine, converted the mesh then placed it into meshCase
that didnt work
I will try again today
Just now I ran a simple cylinder case , I deleted ALL meshcase files from tmp directory
Ran the solver , it has written the mesh files to meshCase , all looks good ... as far as I can see
but now I get this error message
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
Create mesh for time = 0
09:18:01 Reading velocity field U
09:18:01 Constructing pressure field p
09:18:01 Constructing velocity potential field Phi
No MRF models present
Calculating potential flow
GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
09:18:01 GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
Continuity error = 0
09:18:01 Interpolated velocity error = 0
Calculating approximate pressure field
09:18:01 #0 Foam::error::printStack(Foam::Ostream&) at ??:?
09:18:01 #1 Foam::sigFpe::sigHandler(int) at ??:?
09:18:01 #2 ? in "/lib/x86_64-linux-gnu/libc.so.6"
09:18:01 #3 ? in "/opt/openfoam9/platforms/linux64GccDPInt32Opt/bin/potentialFoam"
09:18:01 #4 ? in "/opt/openfoam9/platforms/linux64GccDPInt32Opt/bin/potentialFoam"
09:18:01 #5 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#6 ? in "/opt/openfoam9/platforms/linux64GccDPInt32Opt/bin/potentialFoam"
09:18:02 ./Allrun: line 4: 326303 Floating point exception(core dumped) "$@" > >(tee -a log."$sol") 2> >(tee -a log."$sol" >&2)
now remember openFoam itself works fine on this machine. I dont know why or what this error message is referring to
Thanks for the help
kind regards in advance
Stephen
Thank you for the reply
I suppose my stupidity will help someone else so Ill post as much info as I can. Sorry if its too much?
What I meant by physically placing the model into the directory was ..I meshed the original used openFoam , which works well on this machine, converted the mesh then placed it into meshCase
that didnt work
I will try again today
Just now I ran a simple cylinder case , I deleted ALL meshcase files from tmp directory
Ran the solver , it has written the mesh files to meshCase , all looks good ... as far as I can see
but now I get this error message
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
Create mesh for time = 0
09:18:01 Reading velocity field U
09:18:01 Constructing pressure field p
09:18:01 Constructing velocity potential field Phi
No MRF models present
Calculating potential flow
GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
09:18:01 GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
Continuity error = 0
09:18:01 Interpolated velocity error = 0
Calculating approximate pressure field
09:18:01 #0 Foam::error::printStack(Foam::Ostream&) at ??:?
09:18:01 #1 Foam::sigFpe::sigHandler(int) at ??:?
09:18:01 #2 ? in "/lib/x86_64-linux-gnu/libc.so.6"
09:18:01 #3 ? in "/opt/openfoam9/platforms/linux64GccDPInt32Opt/bin/potentialFoam"
09:18:01 #4 ? in "/opt/openfoam9/platforms/linux64GccDPInt32Opt/bin/potentialFoam"
09:18:01 #5 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#6 ? in "/opt/openfoam9/platforms/linux64GccDPInt32Opt/bin/potentialFoam"
09:18:02 ./Allrun: line 4: 326303 Floating point exception(core dumped) "$@" > >(tee -a log."$sol") 2> >(tee -a log."$sol" >&2)
now remember openFoam itself works fine on this machine. I dont know why or what this error message is referring to
Thanks for the help
kind regards in advance
Stephen
- Attachments
-
- Screenshot from 2021-11-07 09-30-01.png (65.23 KiB) Viewed 10006 times
-
- Screenshot from 2021-11-07 09-15-36.png (163.4 KiB) Viewed 10006 times
Re: CfdOF Fatal error: Unable to find mesh in directory ../meshCase
Sorry to "add" to the above post , I thought it best to keep this bit separate
right, it seems to me that the control dic etc are not being written to
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers {}
// ************************************************************************* //
and
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
ddtSchemes {}
gradSchemes {}
divSchemes {}
laplacianSchemes {}
interpolationSchemes {}
snGradSchemes{}
and I cant see P or U so the problem so far is that it is not writing the dictionaries ... I think
update, Im STILL getting 10:22:34 Part to mesh:
Name: Cylinder, Label: Cylinder, ShapeType: Solid
10:22:54 CharacteristicLengthMax: 1.0
10:22:54 Exporting mesh refinement data ...
10:22:54 Matching boundary patches
10:22:54 Matching mesh refinements
10:22:54 ElementDimension: 3D
10:22:54 Exporting the part surfaces ...
10:22:54 Populating mesh dictionaries in folder /tmp/meshCase
10:22:54 Successfully wrote meshCase to folder /tmp/meshCase
10:22:54 Wrote mesh case to /tmp/meshCase
10:24:12 Solver run command: bash -c cd "/tmp/case" && ./Allrun
10:24:12 bash -c cd "/tmp/case" && ./Allrun
10:24:12 Raw command: ['bash', '-c', 'cd "/tmp/case" && ./Allrun']
10:24:12 Fatal error: Unable to find mesh in directory ../meshCase Ive tried everything I know
coffee time
ok , its not writing the dictionary card correctly , when I try and use openFoam which I know works and I use for simple tasks. I get;
@laptop:~/OpenFOAM/s-9/run/case$ blockMesh
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 9
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
Build : 9-a0f1846504f2
Exec : blockMesh
Date : Nov 07 2021
Time : 15:51:03
Host : "laptop"
PID : 350669
I/O : uncollated
Case : /home/s/OpenFOAM/s-9/run/case
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
Deleting polyMesh directory
"/home/s/OpenFOAM/s-9/run/case/constant/polyMesh"
Reading "blockMeshDict"
Creating block mesh from
"system/blockMeshDict"
Creating block edges
No non-planar block faces defined
Creating topology blocks
Creating topology patches
Creating block mesh topology
--> FOAM Warning :
From function Foam::polyMesh::polyMesh(const Foam::IOobject&, Foam::pointField&&, const cellShapeList&, const faceListList&, const wordList&, const Foam::PtrList<Foam::dictionary>&, const Foam::word&, const Foam::word&, bool)
in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 873
Found 6 undefined faces in mesh; adding to default patch.
Check topology
Basic statistics
Number of internal faces : 0
Number of boundary faces : 6
Number of defined boundary faces : 6
Number of undefined boundary faces : 0
Checking patch -> block consistency
Creating block offsets
Creating merge list .
Creating polyMesh from blockMesh
Creating patches
Creating cells
Creating points with scale 1
Block 0 cell size :
i : 0.001
j : 0.00099791682 .. 0.00099791682
k : 0.001 .. 0.001
There are no merge patch pairs edges
Writing polyMesh
----------------
Mesh Information
----------------
boundingBox: (-0.007 -0.0069854177 -0.005) (0.007 0.0069854177 0.015)
nPoints: 4725
nCells: 3920
nFaces: 12516
nInternalFaces: 11004
----------------
Patches
----------------
patch 0 (start: 11004 size: 1512) name: defaultFaces
End
s@laptop:~/OpenFOAM/s-9/run/case$ simpleFoam
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 9
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
Build : 9-a0f1846504f2
Exec : simpleFoam
Date : Nov 07 2021
Time : 15:51:11
Host : "laptop"
PID : 350670
I/O : uncollated
Case : /home/s/OpenFOAM/s-9/run/case
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 found
p: tolerance 0.0001
U: tolerance 0.0001
"(k|epsilon|omega|f|v2|nuTilda)": tolerance 0.0001
Reading field p
--> FOAM FATAL IO ERROR:
inconsistent patch and patchField types for
patch type empty and patchField type zeroGradient
file: /home/s/OpenFOAM/s-9/run/case/0/p/boundaryField/defaultFaces from line 45 to line 45.
From function static Foam::tmp<Foam::fvPatchField<Type> > Foam::fvPatchField<Type>::New(const Foam::fvPatch&, const Foam::DimensionedField<Type, Foam::volMesh>&, const Foam::dictionary&) [with Type = double]
in file /home/ubuntu/OpenFOAM/OpenFOAM-9/src/finiteVolume/lnInclude/fvPatchFieldNew.C at line 154.
FOAM exiting
s@laptop:~/OpenFOAM/s-9/run/case$
im not sure if its an input from me , a setting ? or a bug ...
Stephen ....
right, it seems to me that the control dic etc are not being written to
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers {}
// ************************************************************************* //
and
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
ddtSchemes {}
gradSchemes {}
divSchemes {}
laplacianSchemes {}
interpolationSchemes {}
snGradSchemes{}
and I cant see P or U so the problem so far is that it is not writing the dictionaries ... I think
update, Im STILL getting 10:22:34 Part to mesh:
Name: Cylinder, Label: Cylinder, ShapeType: Solid
10:22:54 CharacteristicLengthMax: 1.0
10:22:54 Exporting mesh refinement data ...
10:22:54 Matching boundary patches
10:22:54 Matching mesh refinements
10:22:54 ElementDimension: 3D
10:22:54 Exporting the part surfaces ...
10:22:54 Populating mesh dictionaries in folder /tmp/meshCase
10:22:54 Successfully wrote meshCase to folder /tmp/meshCase
10:22:54 Wrote mesh case to /tmp/meshCase
10:24:12 Solver run command: bash -c cd "/tmp/case" && ./Allrun
10:24:12 bash -c cd "/tmp/case" && ./Allrun
10:24:12 Raw command: ['bash', '-c', 'cd "/tmp/case" && ./Allrun']
10:24:12 Fatal error: Unable to find mesh in directory ../meshCase Ive tried everything I know
coffee time
ok , its not writing the dictionary card correctly , when I try and use openFoam which I know works and I use for simple tasks. I get;
@laptop:~/OpenFOAM/s-9/run/case$ blockMesh
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 9
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
Build : 9-a0f1846504f2
Exec : blockMesh
Date : Nov 07 2021
Time : 15:51:03
Host : "laptop"
PID : 350669
I/O : uncollated
Case : /home/s/OpenFOAM/s-9/run/case
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
Deleting polyMesh directory
"/home/s/OpenFOAM/s-9/run/case/constant/polyMesh"
Reading "blockMeshDict"
Creating block mesh from
"system/blockMeshDict"
Creating block edges
No non-planar block faces defined
Creating topology blocks
Creating topology patches
Creating block mesh topology
--> FOAM Warning :
From function Foam::polyMesh::polyMesh(const Foam::IOobject&, Foam::pointField&&, const cellShapeList&, const faceListList&, const wordList&, const Foam::PtrList<Foam::dictionary>&, const Foam::word&, const Foam::word&, bool)
in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 873
Found 6 undefined faces in mesh; adding to default patch.
Check topology
Basic statistics
Number of internal faces : 0
Number of boundary faces : 6
Number of defined boundary faces : 6
Number of undefined boundary faces : 0
Checking patch -> block consistency
Creating block offsets
Creating merge list .
Creating polyMesh from blockMesh
Creating patches
Creating cells
Creating points with scale 1
Block 0 cell size :
i : 0.001
j : 0.00099791682 .. 0.00099791682
k : 0.001 .. 0.001
There are no merge patch pairs edges
Writing polyMesh
----------------
Mesh Information
----------------
boundingBox: (-0.007 -0.0069854177 -0.005) (0.007 0.0069854177 0.015)
nPoints: 4725
nCells: 3920
nFaces: 12516
nInternalFaces: 11004
----------------
Patches
----------------
patch 0 (start: 11004 size: 1512) name: defaultFaces
End
s@laptop:~/OpenFOAM/s-9/run/case$ simpleFoam
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 9
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
Build : 9-a0f1846504f2
Exec : simpleFoam
Date : Nov 07 2021
Time : 15:51:11
Host : "laptop"
PID : 350670
I/O : uncollated
Case : /home/s/OpenFOAM/s-9/run/case
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 found
p: tolerance 0.0001
U: tolerance 0.0001
"(k|epsilon|omega|f|v2|nuTilda)": tolerance 0.0001
Reading field p
--> FOAM FATAL IO ERROR:
inconsistent patch and patchField types for
patch type empty and patchField type zeroGradient
file: /home/s/OpenFOAM/s-9/run/case/0/p/boundaryField/defaultFaces from line 45 to line 45.
From function static Foam::tmp<Foam::fvPatchField<Type> > Foam::fvPatchField<Type>::New(const Foam::fvPatch&, const Foam::DimensionedField<Type, Foam::volMesh>&, const Foam::dictionary&) [with Type = double]
in file /home/ubuntu/OpenFOAM/OpenFOAM-9/src/finiteVolume/lnInclude/fvPatchFieldNew.C at line 154.
FOAM exiting
s@laptop:~/OpenFOAM/s-9/run/case$
im not sure if its an input from me , a setting ? or a bug ...
Stephen ....
- oliveroxtoby
- Posts: 840
- Joined: Fri Dec 23, 2016 9:43 am
- Location: South Africa
Re: CfdOF Fatal error: Unable to find mesh in directory ../meshCase
OpenFOAM seems to have this problem calculating the pressure field using potential flow when both inlet and outlet are pressure boundaries. You can just change the initialisation method for pressure to a uniform value instead of potential flow. Please also make sure you have updated your workbench - there was a bug fix a couple of days ago.Stephen3 wrote: ↑Sun Nov 07, 2021 12:55 am Just now I ran a simple cylinder case , I deleted ALL meshcase files from tmp directory
Ran the solver , it has written the mesh files to meshCase , all looks good ... as far as I can see
but now I get this error message
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
Create mesh for time = 0
09:18:01 Reading velocity field U
09:18:01 Constructing pressure field p
09:18:01 Constructing velocity potential field Phi
No MRF models present
Calculating potential flow
GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
09:18:01 GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
Continuity error = 0
09:18:01 Interpolated velocity error = 0
Calculating approximate pressure field
09:18:01 #0 Foam::error::printStack(Foam::Ostream&) at ??:?
09:18:01 #1 Foam::sigFpe::sigHandler(int) at ??:?
09:18:01 #2 ? in "/lib/x86_64-linux-gnu/libc.so.6"
09:18:01 #3 ? in "/opt/openfoam9/platforms/linux64GccDPInt32Opt/bin/potentialFoam"
09:18:01 #4 ? in "/opt/openfoam9/platforms/linux64GccDPInt32Opt/bin/potentialFoam"
09:18:01 #5 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#6 ? in "/opt/openfoam9/platforms/linux64GccDPInt32Opt/bin/potentialFoam"
09:18:02 ./Allrun: line 4: 326303 Floating point exception(core dumped) "$@" > >(tee -a log."$sol") 2> >(tee -a log."$sol" >&2)
now remember openFoam itself works fine on this machine. I dont know why or what this error message is referring to
Re: CfdOF Fatal error: Unable to find mesh in directory ../meshCase
09:18:02 ./Allrun: line 4: 326303 Floating point exception(core dumped) "$@" > >(tee -a log."$sol") 2> >(tee -a log."$sol" >&2)
now remember openFoam itself works fine on this machine. I dont know why or what this error message is referring to
[/quote]
OpenFOAM seems to have this problem calculating the pressure field using potential flow when both inlet and outlet are pressure boundaries. You can just change the initialisation method for pressure to a uniform value instead of potential flow. Please also make sure you have updated your workbench - there was a bug fix a couple of days ago.
[/quote]
See the attachment below !
Solver
input case ; "case "
Parallel; false
parallel core; 1
preferences as posted in screenshots above.
HOWEVER, the workflow is important , make sure the tree view are visible "toggle visibility" then
1. draw
2. set up variables ..make sure all the boxes ticked ! ( try pressure to a uniform value , that worked for me ! !)
3. add conditions inlet , outlet , boundary
4. Mesh
5. write mesh case
6. write case
7 run solver
seemed to work for me !
However , I did this with a new drawing and it worked fine ... Im not sure why the original drawing didnt work ... something wrong with the mesh? conditions?
Thanks for all the help
Stephen
now remember openFoam itself works fine on this machine. I dont know why or what this error message is referring to
[/quote]
OpenFOAM seems to have this problem calculating the pressure field using potential flow when both inlet and outlet are pressure boundaries. You can just change the initialisation method for pressure to a uniform value instead of potential flow. Please also make sure you have updated your workbench - there was a bug fix a couple of days ago.
[/quote]
See the attachment below !
Solver
input case ; "case "
Parallel; false
parallel core; 1
preferences as posted in screenshots above.
HOWEVER, the workflow is important , make sure the tree view are visible "toggle visibility" then
1. draw
2. set up variables ..make sure all the boxes ticked ! ( try pressure to a uniform value , that worked for me ! !)
3. add conditions inlet , outlet , boundary
4. Mesh
5. write mesh case
6. write case
7 run solver
seemed to work for me !
However , I did this with a new drawing and it worked fine ... Im not sure why the original drawing didnt work ... something wrong with the mesh? conditions?
Thanks for all the help
Stephen
- Attachments
-
- Screenshot from 2021-11-07 18-06-19.png (166.34 KiB) Viewed 9871 times