|
[Sponsors] |
June 7, 2023, 17:07 |
runApplication: command not found
|
#1 |
New Member
Scott Stevenson
Join Date: Jun 2023
Posts: 5
Rep Power: 3 |
I'm new to OpenFOAM and am running through the tutorials. I am currently trying to step through the Allrun script of the DTCHull tutorial by running each command outside of the script. When I get to a loop Allrun I made a snippet out of it that looks like this:
#!/bin/bash for i in 1 2 3 4 5 6 do runApplication -s "$i" \ topoSet -dict system/topoSetDict.${i} runApplication -s "$i" \ refineMesh -dict system/refineMeshDict -overwrite done It gives the error runApplication: command not found. Can anyone help? I've looked everywhere for how or where where runApplication is defined but can't find it anywhere. I used to know unix but I haven't worked in that environment for 20 years. Thanks in advance. PS: I'm running under WSL on Windows 10. Last edited by sstevenson638; June 7, 2023 at 17:11. Reason: Added additional info about environment |
|
June 7, 2023, 18:22 |
|
#2 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29 |
Hello,
If you look at the beginning of the Allrun script, you will see something like this: Code:
# Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions If you want to use RunFunctions in your script, you will need to use this line to load it. Cheers, Yann |
|
June 8, 2023, 13:34 |
|
#3 |
New Member
Scott Stevenson
Join Date: Jun 2023
Posts: 5
Rep Power: 3 |
Thank You! I knew it had to be something like that I was missing.
|
|
Tags |
dtchull tutorial, runapplication |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Gmsh installation on terminal help | spitfire | Main CFD Forum | 4 | July 27, 2017 16:11 |
injection problem | Mark New | FLUENT | 0 | August 4, 2013 02:30 |
Problems in compiling paraview in Suse 10.3 platform | chiven | OpenFOAM Installation | 3 | December 1, 2009 08:21 |
Problems Installing OF 1.6 32 bit | bucksfan | OpenFOAM Installation | 19 | August 4, 2009 02:36 |
Installation OF1.5-dev | ttdtud | OpenFOAM Installation | 46 | May 5, 2009 03:32 |