nufeb / NUFEB

Official release of the NUFEB software
http://research.ncl.ac.uk/nufeb/
GNU General Public License v3.0
18 stars 16 forks source link

Cannot find commands 'blockMesh' nor 'decomposePar' #19

Open ramisrafay opened 1 year ago

ramisrafay commented 1 year ago

I was running the tutorial file of biofilm deformation and detachment ('c1-deform-fixwall-0.6u') and came across this curious issue. I cannot see where either blockMesh and decomposePar are stored. As I understand, they are part of OpenFOAM but I could not locate those files either. I ran this in the '/NUFEB/examples/PAPER-NUFEB-TOOL' directory.

./AllrunParallel.sh
rm: cannot remove 'log.*': No such file or directory
rm: cannot remove 'snapshot.*': No such file or directory
rm: cannot remove 'log': No such file or directory
./AllrunParallel.sh: line 6: blockMesh: command not found
./AllrunParallel.sh: line 7: decomposePar: command not found

mpirun was unable to find the specified executable file, and therefore
did not launch the job.  This error was first reported for process
rank 0; it may have occurred for other processes as well.`
shelllbw commented 1 year ago

What system do you use? It's because Openfoam2.4 is not installed successfully. Have a check if icFoam is working (type $icFoam).

ramisrafay commented 1 year ago

I'm currently working on a university cluster that seems to have OpenFoam2.4 installed (I see this when I check through module spider). The cluster runs on CentOS and I ssh through MobaXterm. When I type '$icFoam' into the terminal, I don't get any error messages. Am I meant to run $icFoam prior to running any bash script calling OpenFoam commands?

shelllbw commented 1 year ago

sorry it should be $icoFoam. It's for checking whether openfoam is installed correctly. Could you try: icoFoam -help which should return something like this:

Usage: icoFoam [OPTIONS]
options:
  -case <dir>       specify alternate case directory, default is the cwd
  -noFunctionObjects
                    do not execute functionObjects
  -parallel         run in parallel
  -roots <(dir1 .. dirN)>
                    slave root directories for distributed running
  -srcDoc           display source code in browser
  -doc              display application documentation in browser
  -help             print the usage