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

foamNewCase: how to use

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

Like Tree2Likes
  • 1 Post By wyldckat
  • 1 Post By MarcusNHofer

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 3, 2015, 05:52
Default foamNewCase: how to use
  #1
New Member
 
Marcus N Hofer
Join Date: Jan 2015
Location: Austria, close to Vienna
Posts: 8
Rep Power: 9
MarcusNHofer is on a distinguished road
Greetings,

just for the record: I am completely new to CFD, the physics of FD and Open Foam as well. So don't be to surprised if some questions sound a bit funny or I did not find the obvious first hand.

For setting up an OF case the "clean and systematic" way from scratch, I hoped to use foamNewCase. Now the -app parameter seems to be mandatory, and from the listing it requires a /constant and /system directory, i.e. the application must be some existing case directory, where the command must be issued from. Anyway, in my setting the -list option always displays an empty list of applications.

Does anyone use foamNewCase at all, or is it more convenient to just copy other cases and adapt them. Has anyone working examples for foamNewCase?

All the best,
Marcus
MarcusNHofer is offline   Reply With Quote

Old   January 3, 2015, 11:02
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,965
Blog Entries: 45
Rep Power: 126
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Marcus and welcome to the forum!

I didn't remember about foamNewCase, but now I think I know why:
Code:
$ foamNewCase --help
unknown option: '--help'

Usage: foamNewCase [OPTION]
options:
  -app <name>       specify the application to use
  -case <dir>       specify alternative case directory, default is the cwd
  -list             list the applications available
  -version <ver>    specify an alternative version (default: '2.3.x')

clone initial application settings to the specified case from
    /home/ofuser/.OpenFOAM/appTemplates/{2.3.x,}/<APP>
    /home/ofuser/OpenFOAM/site/appTemplates/{2.3.x,}/<APP>
What happens here is that this script is a useful script for copy-pasting user-made template folders for easily setting up simulations.
The problem is that I'm not aware of such template folders existing already in OpenFOAM itself

I think that potentially the objective is to give the users the tools needed to do this, but only at a point where they feel more confident about the settings their using. But they must first work up to that point, hence said template files not existing yet, at least not by default.

The usual work-flow I aware of is either one of two:
  1. Manually copy-paste files/folders from existing tutorials, or previous cases, and manually build on top of that file/folder structure.
  2. Use PyFoam: http://openfoamwiki.net/index.php/Contrib/PyFoam - more specifically... uhm, well, I guess the most likely suspect is the script pyFoamAPoMaFoX.py, but PyFoam provides a lot of scripts that can assist in manipulating the cases a bit more by the way of scripting
Best regards,
Bruno
MarcusNHofer likes this.
__________________
wyldckat is offline   Reply With Quote

Old   January 3, 2015, 12:21
Default
  #3
New Member
 
Marcus N Hofer
Join Date: Jan 2015
Location: Austria, close to Vienna
Posts: 8
Rep Power: 9
MarcusNHofer is on a distinguished road
Thank you very much Bruno. I should have read the shell script more carefully, it becomes obvious then that also the -list option references this template directory.

Seems that command is not the simple way to set up "fresh" cases, at least when you have no maintained template directory... then it might be useful. Before diging into extensions like PyFoam i want to get familiar with the core and standard methods.

Quote:
  1. Manually copy-paste files/folders from existing tutorials, or previous cases, and manually build on top of that file/folder structure.
I will stick with that for now, I know for sure that this works :-)

All the best,
Marcus
wyldckat likes this.
MarcusNHofer is offline   Reply With Quote

Reply

Tags
foamnewcase open foam

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



All times are GMT -4. The time now is 20:48.