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

backwardFacingStep2D error

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By saeed jamshidi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 6, 2023, 03:39
Default backwardFacingStep2D error
  #1
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 218
Rep Power: 9
saeed jamshidi is on a distinguished road
hi,
i have a problem when i want to run simpleFoam for backwardFacingStep2D in openFoam after the below procedures. would you please guide me at this matter (error at loading file ''p'' appeared)?


myopenfoam@DESKTOP-TK3D7CI:~$ cd ~
myopenfoam@DESKTOP-TK3D7CI:~$ mkdir -p OpenFOAM-sims/tutorials
myopenfoam@DESKTOP-TK3D7CI:~$ cp -r $FOAM_TUTORIALS/incompressible OpenFOAM-sims/tutorials
myopenfoam@DESKTOP-TK3D7CI:~$ cd OpenFOAM-sims/tutorials/incompressible/simpleFoam/backwardFacingStep2D
myopenfoam@DESKTOP-TK3D7CI:~/OpenFOAM-sims/tutorials/incompressible/simpleFoam/backwardFacingStep2D$ blockMesh > log.blockMesh
myopenfoam@DESKTOP-TK3D7CI:~/OpenFOAM-sims/tutorials/incompressible/simpleFoam/backwardFacingStep2D$ simpleFoam > log.simpleFoam


--> FOAM FATAL ERROR: (openfoam-2112 patch=220610)
cannot find file "/home/myopenfoam/OpenFOAM-sims/tutorials/incompressible/simpleFoam/backwardFacingStep2D/0/p"

From virtual Foam::autoPtr<Foam::ISstream> Foam::fileOperations::uncollatedFileOperation::rea dStream(Foam::regIOobject&, const Foam::fileName&, const Foam::word&, bool) const
in file global/fileOperations/uncollatedFileOperation/uncollatedFileOperation.C at line 542.

FOAM exiting

myopenfoam@DESKTOP-TK3D7CI:~/OpenFOAM-sims/tutorials/incompressible/simpleFoam/backwardFacingStep2D$ simpleFoam
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2112 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : _6e1fca0e-20220610 OPENFOAM=2112 patch=220610 version=2112
Arch : "LSB;label=32;scalar=64"
Exec : simpleFoam
Date : Aug 06 2023
Time : 09:46:34
Host : DESKTOP-TK3D7CI
PID : 4958
I/O : uncollated
Case : /home/myopenfoam/OpenFOAM-sims/tutorials/incompressible/simpleFoam/backwardFacingStep2D
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20)
allowSystemOperations : Allowing user-supplied system call operations

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

Create mesh for time = 0


SIMPLE: convergence criteria
field p tolerance 0.0001
field U tolerance 1e-06
field "(k|epsilon|omega|f|v2)" tolerance 1e-05

Reading field p



--> FOAM FATAL ERROR: (openfoam-2112 patch=220610)
cannot find file "/home/myopenfoam/OpenFOAM-sims/tutorials/incompressible/simpleFoam/backwardFacingStep2D/0/p"

From virtual Foam::autoPtr<Foam::ISstream> Foam::fileOperations::uncollatedFileOperation::rea dStream(Foam::regIOobject&, const Foam::fileName&, const Foam::word&, bool) const
in file global/fileOperations/uncollatedFileOperation/uncollatedFileOperation.C at line 542.

FOAM exiting

myopenfoam@DESKTOP-TK3D7CI:~/OpenFOAM-sims/tutorials/incompressible/simpleFoam/backwardFacingStep2D$
saeed jamshidi is offline   Reply With Quote

Old   August 6, 2023, 05:55
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,358
Rep Power: 32
Yann will become famous soon enoughYann will become famous soon enough
Hello,

The error message is pretty straightforward:

Quote:
Originally Posted by saeed jamshidi View Post
--> FOAM FATAL ERROR: (openfoam-2112 patch=220610)
cannot find file "/home/myopenfoam/OpenFOAM-sims/tutorials/incompressible/simpleFoam/backwardFacingStep2D/0/p"
The solver cannot start because it cannot find a 0 directory containing a p file (the file containing the boundary conditions and initialization for pressure).
If you look at your case directory, you will see you have a 0.orig directory instead. You need to copy this directory to create a 0 directory before running your case. Something like:

Code:
cp -r 0.orig 0
Most of the tutorials have an Allrun script in order to run the tutorial. If you look at the one for backwardFacingStep2D, you will see a restore0Dir command before running blockMesh and simpleFoam. restore0Dir does exactly this: copy 0.orig into 0.

Cheers,
Yann
Yann is offline   Reply With Quote

Old   August 6, 2023, 07:23
Default
  #3
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 218
Rep Power: 9
saeed jamshidi is on a distinguished road
thank you dear Yann. that was helpful.
Yann likes this.
saeed jamshidi is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 10:00
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 20:43
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 19:00
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 10:17
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


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