View Issue Details

IDProjectCategoryView StatusLast Update
0003994OpenFOAMBugpublic2023-07-10 18:42
Reporterjherb Assigned Tohenry  
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionno change required 
PlatformGNU/LinuxOSOtherOS Version(please specify)
Product Versiondev 
Summary0003994: foamRun looks for fvSolution in 0 folder
DescriptionRunning the motorBikeSteady tutorial results in this error in log.foamRun:

/*---------------------------------------------------------------------------*\
  ========= |
  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
   \\ / O peration | Website: https://openfoam.org
    \\ / A nd | Version: 11
     \\/ M anipulation |
\*---------------------------------------------------------------------------*/
Build : 11-03c1f40860d0
Exec : foamRun -parallel
Date : Jul 10 2023
Time : 18:02:08
Host : "xxx"
PID : 2359277
I/O : uncollated
Case : /xxx/sys/data/user/xxx/OpenFOAM/xxx-dev/run/motorBikeSteady
nProcs : 6
Slaves :
5
(
"xxx.2359278"
"xxx.2359279"
"xxx.2359280"
"xxx.2359281"
"xxx.2359282"
)

Pstream initialised with:
    floatTransfer : false
    nProcsSimpleSum : 0
    commsType : nonBlocking
    polling iterations : 0
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

Selecting solver incompressibleFluid
[0]
[0]
[0] --> FOAM FATAL ERROR:
[0] cannot find file "/xxx/sys/data/user/xxx/OpenFOAM/xxx-dev/run/motorBikeSteady/0/fvSolution"
[0]
[0] From function virtual Foam::autoPtr<Foam::ISstream> Foam::fileOperations::uncollatedFileOperation::readStream(Foam::regIOobject&, const Foam::fileName&, const Foam::word&, bool) const
[0] in file global/fileOperations/uncollatedFileOperation/uncollatedFileOperation.C at line 539.
[0]
FOAM parallel run exiting
[0]
Abort(1) on node 0 (rank 0 in comm 496): application called MPI_Abort(comm=0x84000003, 1) - process 0
Additional InformationThe same bug appears for foamMultiRun (coolingSphere tutorial):

[0]
[0]
[0] --> FOAM FATAL ERROR:
[0] cannot find file "/xxx/sys/data/user/xxx/OpenFOAM/xxx-dev/run/coolingSphere.230710/0/fluid/fvSolution"
[0]
[
TagsNo tags attached.

Activities

henry

2023-07-10 17:22

manager   ~0013072

Where did you download your OpenFOAM-dev?

Build : 11-03c1f40860d0

is odd.

I am running the motorBikeSteady case without problems:

/*---------------------------------------------------------------------------*\
  ========= |
  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
   \\ / O peration | Website: https://openfoam.org
    \\ / A nd | Version: dev
     \\/ M anipulation |
\*---------------------------------------------------------------------------*/
Build : dev-c2552978a397
Exec : foamRun -parallel
Date : Jul 10 2023
Time : 17:20:07
Host : "dm"
PID : 21338
I/O : uncollated
Case : /home/dm2/henry/OpenFOAM/OpenFOAM-dev/tutorials/incompressibleFluid/motorBikeSteady
nProcs : 6
Slaves :
5
(
"dm.21339"
"dm.21340"
"dm.21341"
"dm.21342"
"dm.21343"
)

Pstream initialised with:
    floatTransfer : false
    nProcsSimpleSum : 0
    commsType : nonBlocking
    polling iterations : 0
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
SetNaN : Initialising allocated memory to NaN (FOAM_SETNAN).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

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

Create mesh for time = 0

Selecting solver incompressibleFluid
Selecting viscosity model constant
Selecting turbulence model type RAS
Selecting RAS turbulence model kOmegaSST
Selecting patchDistMethod meshWave
RAS
{
    model kOmegaSST;
    turbulence on;
    printCoeffs on;
    alphaK1 0.85;
    alphaK2 1;
    alphaOmega1 0.5;
    alphaOmega2 0.856;
.
.
.

henry

2023-07-10 17:23

manager   ~0013073

The coolingSphere case also works fine for me. I suggest you delete your OpenFOAM-dev installation and pull the latest.

jherb

2023-07-10 17:29

reporter   ~0013074

It was actually the pull from today with these changes:

(CFD_ATHLET_coupling_py11) [xxx@manitu1 OpenFOAM-11]$ git diff
diff --git a/bin/tools/RunFunctions b/bin/tools/RunFunctions
index 1f21022b23..9abb7b452e 100644
--- a/bin/tools/RunFunctions
+++ b/bin/tools/RunFunctions
@@ -144,9 +144,9 @@ runParallel()
     else
         echo "Running $APP_RUN in parallel on $PWD using $nProcs processes"
         if [ "$LOG_APPEND" = "true" ]; then
- ( mpirun -np $nProcs $APP_RUN -parallel "$@" < /dev/null >> log.$LOG_SUFFIX 2>&1 )
+ ( mpirun -launcher pdsh -iface ib0 -np $nProcs $APP_RUN -parallel "$@" < /dev/null >> log.$LOG_SUFFIX 2>&1 )
         else
- ( mpirun -np $nProcs $APP_RUN -parallel "$@" < /dev/null > log.$LOG_SUFFIX 2>&1 )
+ ( mpirun -launcher pdsh -iface ib0 -np $nProcs $APP_RUN -parallel "$@" < /dev/null > log.$LOG_SUFFIX 2>&1 )
         fi
     fi
 }
diff --git a/etc/bashrc b/etc/bashrc
index 99aa258f56..620dcb3e53 100644
--- a/etc/bashrc
+++ b/etc/bashrc
@@ -32,7 +32,7 @@
 #------------------------------------------------------------------------------

 export WM_PROJECT=OpenFOAM
-export WM_PROJECT_VERSION=dev
+export WM_PROJECT_VERSION=11

 ################################################################################
 # USER EDITABLE PART: Changes made here may be lost with the next upgrade
(CFD_ATHLET_coupling_py11) [xxx@manitu1 OpenFOAM-11]$ git status
HEAD detached at 20230707
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified: bin/tools/RunFunctions
        modified: etc/bashrc

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        .settings/
        I_D.log
        I_D.out

no changes added to commit (use "git add" and/or "git commit -a")

But I am already building newly, because the Debian openfoam-dev package in a docker container worked.

I will report back, if rebuilding solved the problem.

jherb

2023-07-10 17:56

reporter   ~0013075

Okay. Deleting the platform folder and then recompiling everything worked. So it was probably caused by the pull today and then just calling Allwmake -j -s -q.

henry

2023-07-10 18:42

manager   ~0013076

User error

Issue History

Date Modified Username Field Change
2023-07-10 17:08 jherb New Issue
2023-07-10 17:22 henry Note Added: 0013072
2023-07-10 17:23 henry Note Added: 0013073
2023-07-10 17:29 jherb Note Added: 0013074
2023-07-10 17:56 jherb Note Added: 0013075
2023-07-10 18:42 henry Assigned To => henry
2023-07-10 18:42 henry Status new => closed
2023-07-10 18:42 henry Resolution open => no change required
2023-07-10 18:42 henry Note Added: 0013076