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

OpenFOAM 7 Allrun files not working W10 WLS

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 28, 2020, 16:51
Default OpenFOAM 7 Allrun files not working W10 WLS
  #1
Senior Member
 
Franco
Join Date: Nov 2019
Location: Compiègne, France
Posts: 129
Rep Power: 6
otaolafr is on a distinguished road
hello,
Before I installed OF 1912 (in W10 Ubuntu 20.04 LTS) and I was successfully using Allrun that I created using Allrun examples inside the tutorial folder.
As I needed to change to OF v7 to use the same version as my colleague, I found myself now that Allrun are not working.
for extra information: I am trying to run from a copy case placed in the document folder of windows 10 so:
cd /mnt/c/User/PC/Documents/OF_simulation
inside I have the Allrun file with a similar structure to the one I was using before with the 1912v (with the directory for the source changed):
Quote:
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory

# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

blockMesh
surfaceFeatureExtract
I am getting:
Quote:
: not found: ./Allrun:
./Allrun: 5: .: Can't open /opt/openfoam7/bin/tools/RunFunctions
otaolafr is offline   Reply With Quote

Old   April 28, 2020, 21:23
Default
  #2
Senior Member
 
Troy Snyder
Join Date: Jul 2009
Location: Akron, OH
Posts: 219
Rep Power: 18
tas38 is on a distinguished road
It appears that the OF environment variables have not been set. You can check to see if they have been set by checking to see if the an application solver can be found, e.g. "which simpleFoam"?

I typically add an alias to my .bashrc file to setup the OF environment.
tas38 is offline   Reply With Quote

Old   April 29, 2020, 05:55
Default
  #3
Senior Member
 
Franco
Join Date: Nov 2019
Location: Compiègne, France
Posts: 129
Rep Power: 6
otaolafr is on a distinguished road
Quote:
Originally Posted by tas38 View Post
It appears that the OF environment variables have not been set. You can check to see if they have been set by checking to see if the an application solver can be found, e.g. "which simpleFoam"?

I typically add an alias to my .bashrc file to setup the OF environment.
hello! thanks for the help, yes they are working that's what I do not get, as I can do for example blockMesh, but I solve it (or at least it works now!)

first of all: I added the line
Quote:
application=$(getApplication)
with the 1912v it was not necessary, I am not sufficiently advanced in the subject to understand why in one case is necessary and why in the other version no. (as from the videos I have seen explaining this there are a lot of discrepancies, that for example, they use the directly the code
Quote:
blockMesh
when I need to do
Quote:
runApplication blockMesh
either way, I get them working....hope that someone would find this helpful.
best regards (and thanks for your post trying to help, i have not published the solution yesterday as I got it to work late in the night, sorry for that)
franco
otaolafr 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
OpenFOAM 5.0 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 11 June 5, 2018 23:48
OpenFOAM 4.0 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 2 October 6, 2017 05:40
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 14:24
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 5, 2016 03:18
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 13:43


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