CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

runApplication: command not found

Register Blogs Community New Posts Updated Threads Search

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 7, 2023, 17:07
Default runApplication: command not found
  #1
New Member
 
Scott Stevenson
Join Date: Jun 2023
Posts: 5
Rep Power: 3
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:
#!/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
sstevenson638 is offline   Reply With Quote

Old   June 7, 2023, 18:22
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,199
Rep Power: 27
Yann will become famous soon enough
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
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.

Cheers,
Yann
sstevenson638 likes this.
Yann is offline   Reply With Quote

Old   June 8, 2023, 13:34
Default
  #3
New Member
 
Scott Stevenson
Join Date: Jun 2023
Posts: 5
Rep Power: 3
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

Reply

Tags
dtchull tutorial, runapplication


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 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


All times are GMT -4. The time now is 09:56.