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

[OpenFOAM.com] Cant find simpleFoam executable on aws cluster

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 18, 2024, 13:38
Default Cant find simpleFoam executable on aws cluster
  #1
New Member
 
Tom
Join Date: Jun 2024
Posts: 3
Rep Power: 2
Gforce237 is on a distinguished road
I am going through the step by step guide on setting up an aws cluster and install of openFoam (here)

When I submit the motor bike tutorial run that's included, the blockmesh and snappyhexmesh run correctly, however the simplefoam command does not run and i get the error "mpirun was unable to find the specified executable file"..... "Executable: simpleFoam" in the log file.

My submit file:
Code:
#!/bin/bash
#SBATCH --job-name=foam
#SBATCH --ntasks=288
#SBATCH --output=%x_%j.out
#SBATCH --partition=compute

module load openmpi
source /fsx/OpenFOAM/OpenFOAM-v2312/etc/bashrc

surfaceFeatureExtract  > ./log/surfaceFeatureExtract.log 2>&1
blockMesh  > ./log/blockMesh.log 2>&1
decomposePar -decomposeParDict system/decomposeParDict.hierarchical  > ./log/decomposePar.log 2>&1
mpirun -np $SLURM_NTASKS snappyHexMesh -parallel -overwrite -decomposeParDict system/decomposeParDict.hierarchical   > ./log/snappyHexMesh.log 2>&1
mpirun -np $SLURM_NTASKS checkMesh -parallel -allGeometry -constant -allTopology -decomposeParDict system/decomposeParDict.hierarchical > ./log/checkMesh.log 2>&1
mpirun -np $SLURM_NTASKS redistributePar -parallel -overwrite -decomposeParDict system/decomposeParDict.ptscotch > ./log/decomposePar2.log 2>&1
mpirun -np $SLURM_NTASKS renumberMesh -parallel -overwrite -constant -decomposeParDict system/decomposeParDict.ptscotch > ./log/renumberMesh.log 2>&1
mpirun -np $SLURM_NTASKS patchSummary -parallel -decomposeParDict system/decomposeParDict.ptscotch > ./log/patchSummary.log 2>&1
ls -d processor* | xargs -i rm -rf ./{}/0
ls -d processor* | xargs -i cp -r 0.orig ./{}/0
mpirun -np $SLURM_NTASKS simpleFoam -parallel  -decomposeParDict system/decomposeParDict.ptscotch > ./log/simpleFoam.log 2>&1
Is there just a broken link somewhere? I noticed the tutorial is for OpenFOAM-v2012, whereas I've installed the latest version OpenFOAM-v2312, so not sure if this is part of the issue. Any help is appreciated.

Thanks!
Tom
Gforce237 is offline   Reply With Quote

Old   June 20, 2024, 03:29
Default
  #2
New Member
 
Tom
Join Date: Jun 2024
Posts: 3
Rep Power: 2
Gforce237 is on a distinguished road
I have run the foamInstallationTest and got the output below. It looks like icoFoam was not installed correctly. I've tried doing a search on how to correct this but have not found any examples that are applicable to my application. If there are any thoughts on this it would be much appreciated.

Code:
Shell:       bash
Host:        ip-172-31-29-242
OS:          Linux version 5.10.218-208.862.amzn2.x86_64

System check: PASS
==================
Can continue to OpenFOAM installation.

[ec2-user@ip-172-31-29-242 OpenFOAM]$ foamInstallationTest
Executing foamInstallationTest

Basic setup :
-------------------------------------------------------------------------------
OpenFOAM:            OpenFOAM-v2312
ThirdParty:          ThirdParty-v2312
Shell:               bash
Host:                ip-172-31-29-242
OS:                  Linux version 5.10.218-208.862.amzn2.x86_64
-------------------------------------------------------------------------------

Main OpenFOAM env variables :
-------------------------------------------------------------------------------
Environment           FileOrDirectory                          Valid      Crit
-------------------------------------------------------------------------------
$WM_PROJECT_USER_DIR  /home/ec2-user/OpenFOAM/ec2-user-v2312    no        no
$WM_THIRD_PARTY_DIR   /fsx/OpenFOAM/ThirdParty-v2312            yes       maybe
$WM_PROJECT_SITE      [env variable unset]                                no
-------------------------------------------------------------------------------

OpenFOAM env variables in PATH :
-------------------------------------------------------------------------------
Environment           FileOrDirectory                          Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR       /fsx/OpenFOAM/OpenFOAM-v2312              yes  yes  yes

$FOAM_APPBIN          ...12/platforms/linux64GccDPInt32Opt/bin  yes  yes  yes
$FOAM_SITE_APPBIN     ...12/platforms/linux64GccDPInt32Opt/bin  no        no
[ec2-user@ip-172-31-29-242 OpenFOAM]$
$WM_DIR               /fsx/OpenFOAM/OpenFOAM-v2312/wmake        yes  yes  often
-------------------------------------------------------------------------------

OpenFOAM env variables in LD_LIBRARY_PATH :
-------------------------------------------------------------------------------
Environment           FileOrDirectory                          Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN          ...12/platforms/linux64GccDPInt32Opt/lib  yes  yes  yes
$FOAM_SITE_LIBBIN     ...12/platforms/linux64GccDPInt32Opt/lib  no        no
$FOAM_USER_LIBBIN     ...12/platforms/linux64GccDPInt32Opt/lib  no        no
$FOAM_EXT_LIBBIN      ...v2312/platforms/linux64GccDPInt32/lib  yes  yes  maybe
$MPI_ARCH_PATH        /opt/amazon/openmpi                       yes   no  yes
-------------------------------------------------------------------------------

Software Components
-------------------------------------------------------------------------------
Software     Version    Location
-------------------------------------------------------------------------------
flex         2.5.37     /usr/bin/flex
make         3.82       /usr/bin/make
wmake        2312       /fsx/OpenFOAM/OpenFOAM-v2312/wmake/wmake
gcc          7.3.1      /usr/bin/gcc
g++          7.3.1      /usr/bin/g++
-------------------------------------------------------------------------------
icoFoam   *** not installed ***
          CRITICAL ERROR


Summary
-------------------------------------------------------------------------------
Base configuration ok.
The foam installation contains 1 critical error(s).

Review the output for warning messages and consult
the installation guide for troubleshooting.

Done
Gforce237 is offline   Reply With Quote

Old   June 24, 2024, 04:41
Default
  #3
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Examine the contents of the FOAM_APPBIN and the FOAM_LIBBIN directories. They really should contain something...
olesen is offline   Reply With Quote

Old   June 24, 2024, 23:05
Default
  #4
New Member
 
Tom
Join Date: Jun 2024
Posts: 3
Rep Power: 2
Gforce237 is on a distinguished road
Thanks for the response.

When searching for either directory (FOAM_APPBIN, FOAM_LIBBIN) in my OpenFoam-v2312 directory does not return anything. Is there a typical file path for these directories?

I am also not finding them in the .tgz files (which I downloaded from here: https://develop.openfoam.com/Develop...r/doc/Build.md)
Gforce237 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
SimpleFoam convergence problems brahim OpenFOAM Running, Solving & CFD 20 June 9, 2015 10:09
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 Attesz OpenFOAM Installation 45 January 13, 2012 13:38
Problem Building OF on Centos cluster (no admin rights) CKH OpenFOAM Installation 5 November 13, 2011 07:32
OpenFoam 2.0.0 installation + ICC + Rocks Cluster chinper OpenFOAM Installation 5 July 13, 2011 17:00
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 21:30


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