CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

runApplication: command not found

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

Like Tree2Likes
  • 1 Post By Yann
  • 1 Post By sstevenson638

LinkBack Thread Tools Search this Thread Display Modes
Old   June 7, 2023, 16:07
Default runApplication: command not found
New Member
Scott Stevenson
Join Date: Jun 2023
Posts: 5
Rep Power: 2
sstevenson638 is on a distinguished road
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:
for i in 1 2 3 4 5 6
runApplication -s "$i" \
topoSet -dict system/topoSetDict.${i}

runApplication -s "$i" \
refineMesh -dict system/refineMeshDict -overwrite

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 16:11. Reason: Added additional info about environment
sstevenson638 is offline   Reply With Quote

Old   June 7, 2023, 17:22
Senior Member
Join Date: Apr 2012
Location: France
Posts: 809
Rep Power: 24
Yann will become famous soon enough

If you look at the beginning of the Allrun script, you will see something like this:
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
This line loads RunFunctions, and runApplication is one of those functions.

If you want to use RunFunctions in your script, you will need to use this line to load it.

sstevenson638 likes this.
Yann is offline   Reply With Quote

Old   June 8, 2023, 12:34
New Member
Scott Stevenson
Join Date: Jun 2023
Posts: 5
Rep Power: 2
sstevenson638 is on a distinguished road
Thank You! I knew it had to be something like that I was missing.
Yann likes this.
sstevenson638 is offline   Reply With Quote


dtchull tutorial, runapplication

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
Gmsh installation on terminal help spitfire Main CFD Forum 4 July 27, 2017 15:11
injection problem Mark New FLUENT 0 August 4, 2013 01:30
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 07:21
Problems Installing OF 1.6 32 bit bucksfan OpenFOAM Installation 19 August 4, 2009 01:36
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 02:32

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