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

openfoam.com vs openfoam.org question

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By olesen
  • 2 Post By boffin5

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 9, 2024, 16:03
Default openfoam.com vs openfoam.org question
  #1
Senior Member
 
Alan w
Join Date: Feb 2021
Posts: 288
Rep Power: 6
boffin5 is on a distinguished road
For many (or most) of you, this is a stupid question, but I'll ask it anyway.

I have a run script for a chtMultiRegion openfoam.com case. Here is a snippet:

Code:
# changeDictionary
for region in $(foamListRegions)
do
runApplication -s $region changeDictionary -region $region -constant -noFunctionObjects
done
I am trying to run the case with Openfoam 8, but I get an error:

foamListRegions command not found.

Can someone translate that snippet of code to something that Openfoam 8 can read? And/or provide the lines that will duplicate its intent? Thanks in advance if you can.
boffin5 is offline   Reply With Quote

Old   February 10, 2024, 15:30
Default
  #2
Senior Member
 
Alan w
Join Date: Feb 2021
Posts: 288
Rep Power: 6
boffin5 is on a distinguished road
Problem Solved!
Downloading v2312.
boffin5 is offline   Reply With Quote

Old   June 19, 2024, 08:28
Default
  #3
New Member
 
Henrique Pope Guerra
Join Date: Feb 2011
Posts: 6
Rep Power: 15
HGuerra is on a distinguished road
Hello Boffin5,

I am having the same issue, it shows the message "command not found". I am currently having the same message with the command "restore0Dir".

I am currently using a Windows installation provided by CFD support and I don't know if I can update to the version you mentioned. Can you help me?
HGuerra is offline   Reply With Quote

Old   June 19, 2024, 09:11
Default
  #4
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by HGuerra View Post
Hello Boffin5,

I am having the same issue, it shows the message "command not found". I am currently having the same message with the command "restore0Dir".

I am currently using a Windows installation provided by CFD support and I don't know if I can update to the version you mentioned. Can you help me?

restore0Dir is not a regular command, but a shell function - you'll have to source bin/tools/RunFunctions first.
HGuerra likes this.
olesen is offline   Reply With Quote

Old   June 19, 2024, 10:24
Default
  #5
New Member
 
Henrique Pope Guerra
Join Date: Feb 2011
Posts: 6
Rep Power: 15
HGuerra is on a distinguished road
Quote:
Originally Posted by olesen View Post
restore0Dir is not a regular command, but a shell function - you'll have to source bin/tools/RunFunctions first.
Apparently, my "RunFunctions" file doesn't have restore0Dir or foamListRegions.

I am doing things "by hand", I was going to use it to call a changeDictionaryDict, but I edited the 0/ files and boundary files. Let's see if it is going to work.
HGuerra is offline   Reply With Quote

Old   June 19, 2024, 14:15
Default this might help
  #6
Senior Member
 
Alan w
Join Date: Feb 2021
Posts: 288
Rep Power: 6
boffin5 is on a distinguished road
Henrique,

This link might have information that addresses your question.

https://damogranlabs.com/2020/10/run...ck-cheatsheet/

When I write run scripts, I always use the "plain English" approach, in lieu of the shorthand method.
HGuerra and GerhardHolzinger like this.
boffin5 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
Question about symmetry in Autodesk Cfd 2016 ecto Autodesk Simulation CFD 0 October 20, 2015 05:16
small question about the functionalities of topological changes in OpenFoam ngj OpenFOAM Running, Solving & CFD 2 February 28, 2013 11:02
Question Re Engineering Data Source imnull ANSYS 0 March 5, 2012 14:51
internal field question - PitzDaily Case atareen64 OpenFOAM Running, Solving & CFD 2 January 26, 2011 16:26
Poisson Solver question Suresh Main CFD Forum 3 August 12, 2005 05:37


All times are GMT -4. The time now is 08:50.