foamNew command

foamNew (or foamNewSource) command in OpenFOAM

In OpenFOAM, if you want to create a new solver or a new submodel, you can use newFoam command.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
foamNew -s App xxFoam // or foamNewSource App xxFoam
///////////////////////////////////////////////////////////////////
Usage: foamNew [OPTIONS]
options:
-help | -h print the usage
-source | -s <type> <class> creates a class source file
-template | -t <type> <class> <template args> creates a class template
source file
where <type> is (C|H|I|IO)

Create a new standard OpenFOAM class or class template source file
////////////////////////////////////////////////////////////////////
Usage: foamNewSource [OPTION] <type> <ClassName>
options:
-help print the usage

* create a new standard OpenFOAM source file

type: (C|H|I|IO|App)

A ClassName starting with '-' will simply display the template