|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Marcus N Hofer
Join Date: Jan 2015
Location: Austria, close to Vienna
Posts: 8
Rep Power: 12 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 129 ![]() ![]() ![]() ![]() ![]() ![]() |
Greetings Marcus and welcome to the forum!
![]() 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> 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:
Bruno
__________________
|
|
![]() |
![]() |
![]() |
![]() |
#3 | |
New Member
Marcus N Hofer
Join Date: Jan 2015
Location: Austria, close to Vienna
Posts: 8
Rep Power: 12 ![]() |
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:
All the best, Marcus |
||
![]() |
![]() |
![]() |
Tags |
foamnewcase open foam |
Thread Tools | Search this Thread |
Display Modes | |
|
|