You are on page 1of 235

CFD

3.0.1
2016 04 28
2

2011-2015 OpenFOAM Foundation Ltd.


Christopher J. Greenshields, CFD Direct Ltd.
5.5.2 2.3

Creative Commons Attribution - NonCommercial NoDerivs 3.0


Unported License.

License

THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS
CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS
PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE
WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS
PROHIBITED.

BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND
AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS
LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU
THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF
SUCH TERMS AND CONDITIONS.

1. Definitions

a. "Adaptation" means a work based upon the Work, or upon the Work and other pre-
existing works, such as a translation, adaptation, derivative work, arrangement of
music or other alterations of a literary or artistic work, or phonogram or performance
and includes cinematographic adaptations or any other form in which the Work may
be recast, transformed, or adapted including in any form recognizably derived from
the original, except that a work that constitutes a Collection will not be considered an
Adaptation for the purpose of this License. For the avoidance of doubt, where the
Work is a musical work, performance or phonogram, the synchronization of the Work

OpenFOAM-3.0.1
3

in timed-relation with a moving image ("synching") will be considered an Adaptation


for the purpose of this License.

b. "Collection" means a collection of literary or artistic works, such as encyclopedias


and anthologies, or performances, phonograms or broadcasts, or other works or
subject matter other than works listed in Section 1(f) below, which, by reason of the
selection and arrangement of their contents, constitute intellectual creations, in which
the Work is included in its entirety in unmodified form along with one or more other
contributions, each constituting separate and independent works in themselves,
which together are assembled into a collective whole. A work that constitutes a
Collection will not be considered an Adaptation (as defined above) for the purposes of
this License.

c. "Distribute" means to make available to the public the original and copies of the
Work through sale or other transfer of ownership.

d. "Licensor" means the individual, individuals, entity or entities that offer(s) the Work
under the terms of this License.

e. "Original Author" means, in the case of a literary or artistic work, the individual,
individuals, entity or entities who created the Work or if no individual or entity can be
identified, the publisher; and in addition (i) in the case of a performance the actors,
singers, musicians, dancers, and other persons who act, sing, deliver, declaim, play
in, interpret or otherwise perform literary or artistic works or expressions of folklore;
(ii) in the case of a phonogram the producer being the person or legal entity who first
fixes the sounds of a performance or other sounds; and, (iii) in the case of
broadcasts, the organization that transmits the broadcast.

f. "Work" means the literary and/or artistic work offered under the terms of this License
including without limitation any production in the literary, scientific and artistic domain,
whatever may be the mode or form of its expression including digital form, such as a
book, pamphlet and other writing; a lecture, address, sermon or other work of the
same nature; a dramatic or dramatico-musical work; a choreographic work or
entertainment in dumb show; a musical composition with or without words; a
cinematographic work to which are assimilated works expressed by a process
analogous to cinematography; a work of drawing, painting, architecture, sculpture,
engraving or lithography; a photographic work to which are assimilated works
expressed by a process analogous to photography; a work of applied art; an
illustration, map, plan, sketch or three-dimensional work relative to geography,
topography, architecture or science; a performance; a broadcast; a phonogram; a
compilation of data to the extent it is protected as a copyrightable work; or a work
performed by a variety or circus performer to the extent it is not otherwise considered
a literary or artistic work.

g. "You" means an individual or entity exercising rights under this License who has not
previously violated the terms of this License with respect to the Work, or who has
received express permission from the Licensor to exercise rights under this License
despite a previous violation.

OpenFOAM-3.0.1
4

h. "Publicly Perform" means to perform public recitations of the Work and to


communicate to the public those public recitations, by any means or process,
including by wire or wireless means or public digital performances; to make available
to the public Works in such a way that members of the public may access these
Works from a place and at a place individually chosen by them; to perform the Work
to the public by any means or process and the communication to the public of the
performances of the Work, including by public digital performance; to broadcast and
rebroadcast the Work by any means including signs, sounds or images.

i. "Reproduce" means to make copies of the Work by any means including without
limitation by sound or visual recordings and the right of fixation and reproducing
fixations of the Work, including storage of a protected performance or phonogram in
digital form or other electronic medium.

2. Fair Dealing Rights. Nothing in this License is intended to reduce, limit, or restrict any
uses free from copyright or rights arising from limitations or exceptions that are provided for in
connection with the copyright protection under copyright law or other applicable laws.

3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants
You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable
copyright) license to exercise the rights in the Work as stated below:

a. to Reproduce the Work, to incorporate the Work into one or more Collections, and to
Reproduce the Work as incorporated in the Collections; and,

b. to Distribute and Publicly Perform the Work including as incorporated in Collections.

The above rights may be exercised in all media and formats whether now known or hereafter
devised. The above rights include the right to make such modifications as are technically
necessary to exercise the rights in other media and formats, but otherwise you have no rights
to make Adaptations. Subject to 8(f), all rights not expressly granted by Licensor are hereby
reserved, including but not limited to the rights set forth in Section 4(d).

4. Restrictions. The license granted in Section 3 above is expressly made subject to and
limited by the following restrictions:

a. You may Distribute or Publicly Perform the Work only under the terms of this License.
You must include a copy of, or the Uniform Resource Identifier (URI) for, this License
with every copy of the Work You Distribute or Publicly Perform. You may not offer or
impose any terms on the Work that restrict the terms of this License or the ability of
the recipient of the Work to exercise the rights granted to that recipient under the

OpenFOAM-3.0.1
5

terms of the License. You may not sublicense the Work. You must keep intact all
notices that refer to this License and to the disclaimer of warranties with every copy of
the Work You Distribute or Publicly Perform. When You Distribute or Publicly Perform
the Work, You may not impose any effective technological measures on the Work
that restrict the ability of a recipient of the Work from You to exercise the rights
granted to that recipient under the terms of the License. This Section 4(a) applies to
the Work as incorporated in a Collection, but this does not require the Collection apart
from the Work itself to be made subject to the terms of this License. If You create a
Collection, upon notice from any Licensor You must, to the extent practicable, remove
from the Collection any credit as required by Section 4(c), as requested.

b. You may not exercise any of the rights granted to You in Section 3 above in any
manner that is primarily intended for or directed toward commercial advantage or
private monetary compensation. The exchange of the Work for other copyrighted
works by means of digital file-sharing or otherwise shall not be considered to be
intended for or directed toward commercial advantage or private monetary
compensation, provided there is no payment of any monetary compensation in
connection with the exchange of copyrighted works.

c. If You Distribute, or Publicly Perform the Work or Collections, You must, unless a
request has been made pursuant to Section 4(a), keep intact all copyright notices for
the Work and provide, reasonable to the medium or means You are utilizing: (i) the
name of the Original Author (or pseudonym, if applicable) if supplied, and/or if the
Original Author and/or Licensor designate another party or parties (e.g., a sponsor
institute, publishing entity, journal) for attribution ("Attribution Parties") in Licensor's
copyright notice, terms of service or by other reasonable means, the name of such
party or parties; (ii) the title of the Work if supplied; (iii) to the extent reasonably
practicable, the URI, if any, that Licensor specifies to be associated with the Work,
unless such URI does not refer to the copyright notice or licensing information for the
Work. The credit required by this Section 4(c) may be implemented in any reasonable
manner; provided, however, that in the case of a Collection, at a minimum such credit
will appear, if a credit for all contributing authors of Collection appears, then as part of
these credits and in a manner at least as prominent as the credits for the other
contributing authors. For the avoidance of doubt, You may only use the credit
required by this Section for the purpose of attribution in the manner set out above
and, by exercising Your rights under this License, You may not implicitly or explicitly
assert or imply any connection with, sponsorship or endorsement by the Original
Author, Licensor and/or Attribution Parties, as appropriate, of You or Your use of the
Work, without the separate, express prior written permission of the Original Author,
Licensor and/or Attribution Parties.

d. For the avoidance of doubt:


i. Non-waivable Compulsory License Schemes. In those jurisdictions in
which the right to collect royalties through any statutory or compulsory
licensing scheme cannot be waived, the Licensor reserves the exclusive right

OpenFOAM-3.0.1
6

to collect such royalties for any exercise by You of the rights granted under
this License;

ii. Waivable Compulsory License Schemes. In those jurisdictions in which the


right to collect royalties through any statutory or compulsory licensing
scheme can be waived, the Licensor reserves the exclusive right to collect
such royalties for any exercise by You of the rights granted under this
License if Your exercise of such rights is for a purpose or use which is
otherwise than noncommercial as permitted under Section 4(b) and
otherwise waives the right to collect royalties through any statutory or
compulsory licensing scheme; and,

iii. Voluntary License Schemes. The Licensor reserves the right to collect
royalties, whether individually or, in the event that the Licensor is a member
of a collecting society that administers voluntary licensing schemes, via that
society, from any exercise by You of the rights granted under this License
that is for a purpose or use which is otherwise than noncommercial as
permitted under Section 4(b).

e. Except as otherwise agreed in writing by the Licensor or as may be otherwise


permitted by applicable law, if You Reproduce, Distribute or Publicly Perform the
Work either by itself or as part of any Collections, You must not distort, mutilate,
modify or take other derogatory action in relation to the Work which would be
prejudicial to the Original Author's honor or reputation.

5. Representations, Warranties and Disclaimer

UNLESS OTHERWISE MUTUALLY AGREED BY THE PARTIES IN WRITING, LICENSOR


OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR
OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE,
MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR
THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF
ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS
DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION
MAY NOT APPLY TO YOU.

6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW,


IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY
SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES
ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS
BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

OpenFOAM-3.0.1
7

7. Termination

a. This License and the rights granted hereunder will terminate automatically upon any
breach by You of the terms of this License. Individuals or entities who have received
Collections from You under this License, however, will not have their licenses
terminated provided such individuals or entities remain in full compliance with those
licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License.

b. Subject to the above terms and conditions, the license granted here is perpetual (for
the duration of the applicable copyright in the Work). Notwithstanding the above,
Licensor reserves the right to release the Work under different license terms or to
stop distributing the Work at any time; provided, however that any such election will
not serve to withdraw this License (or any other license that has been, or is required
to be, granted under the terms of this License), and this License will continue in full
force and effect unless terminated as stated above.

8. Miscellaneous

a. Each time You Distribute or Publicly Perform the Work or a Collection, the Licensor
offers to the recipient a license to the Work on the same terms and conditions as the
license granted to You under this License.

b. If any provision of this License is invalid or unenforceable under applicable law, it


shall not affect the validity or enforceability of the remainder of the terms of this
License, and without further action by the parties to this agreement, such provision
shall be reformed to the minimum extent necessary to make such provision valid and
enforceable.

c. No term or provision of this License shall be deemed waived and no breach


consented to unless such waiver or consent shall be in writing and signed by the
party to be charged with such waiver or consent.

d. This License constitutes the entire agreement between the parties with respect to the
Work licensed here. There are no understandings, agreements or representations
with respect to the Work not specified here. Licensor shall not be bound by any
additional provisions that may appear in any communication from You. This License
may not be modified without the mutual written agreement of the Licensor and You.

e. The rights granted under, and the subject matter referenced, in this License were
drafted utilizing the terminology of the Berne Convention for the Protection of Literary
and Artistic Works (as amended on September 28, 1979), the Rome Convention of
1961, the WIPO Copyright Treaty of 1996, the WIPO Performances and Phonograms
Treaty of 1996 and the Universal Copyright Convention (as revised on July 24, 1971).
These rights and subject matter take effect in the relevant jurisdiction in which the
License terms are sought to be enforced according to the corresponding provisions of
the implementation of those treaty provisions in the applicable national law. If the

OpenFOAM-3.0.1
8

standard suite of rights granted under applicable copyright law includes additional
rights not granted under this License, such additional rights are deemed to be
included in the License; this License is not intended to restrict the license of any
rights under applicable law.

OpenFOAM-3.0.1
9

........................................................................................................................................... 2
............................................................................................................................................ 15
............................................................................................................................................ 17
2.1 ...................................................................................................................... 17
2.1.1 ................................................................................................................... 18
2.1.1.1 .................................................................................................... 18
2.1.1.2 ........................................................................................ 20
2.1.1.3 .................................................................................................... 21
2.1.1.4 ............................................................................................................ 22
2.1.1.5 .................................................................... 23
2.1.2 ............................................................................................................... 23
2.1.3 ............................................................................................................... 24
2.1.4 ................................................................................................................... 25
2.1.4.1 ............................................................................................ 25
2.1.4.2 ........................................................................................................ 27
2.1.4.3 ................................................................................................ 29
2.1.5 ............................................................................................................... 29
2.1.5.1 .................................................................... 29
2.1.5.2 ................................................................................................ 29
2.1.5.3 ............................................................................................ 31
2.1.5.4 .................................................................................................... 32
2.1.5.5 .................................................................................................... 32
2.1.5.6 ................................................................................ 32
2.1.5.7 ............................................................................................................ 33
2.1.6 ................................................................................................... 35
2.1.6.1 .................................................................................... 36
2.1.6.2 ................................................................................................ 37
2.1.6.3 ........................................................................................................ 38
2.1.7 ........................................................................................................... 38
2.1.7.1 ........................................................................................................ 38
2.1.7.2 .................................................................................................... 39
2.1.8 ....................................................................................................... 40
2.1.8.1 ........................................................................................................ 40
2.1.8.2 ............................................................................................................ 42
2.1.9 ....................................................................................................... 42
2.1.10 ................................................................................................................. 46
2.2 .......................................................................................................... 46
2.2.1 ............................................................................................................... 47
2.2.1.1 ........................................................................................ 50
2.2.1.2 .................................................................................................... 51
2.2.1.3 ................................................................................................ 51
2.2.1.4 ............................................................................................................ 51

OpenFOAM-3.0.1
10

2.2.1.5 ............................................................................ 52
2.2.2 ....................................................................................................................... 54
2.2.3 ................................................................................................................... 54
2.2.4 ....................................................................................................................... 56
2.2.4.1 ............................................................................................ 56
2.2.4.2 .................................................................................... 56
2.2.4.3 ............................................................................................ 56
2.3 .................................................................................................................................. 56
2.3.1 ............................................................................................................... 57
2.3.2 ............................................................................................................... 59
2.3.3 ........................................................................................................... 59
2.3.4 ............................................................................................................... 60
2.3.5 ............................................................................................................... 61
2.3.6 ....................................................................................................... 61
2.3.7 ............................................................................................................... 62
2.3.8 ................................................................................................... 63
2.3.9 ............................................................................................................... 63
2.3.10 ................................................................................................................. 64
2.3.11 ............................................................................................................. 64
2.3.12 ............................................................................................. 67
............................................................................................................................................ 69
3.1 OpenFOAM ..................................................................................................... 69
3.1.1 ................................................................................................... 69
3.1.2 C++................................................................................................... 70
3.1.3 ............................................................................................................... 70
3.1.4 ........................................................................................................... 71
3.2 .................................................................................................................. 71
3.2.1 .H ........................................................................................................... 71
3.2.2 wmake ......................................................................................... 73
3.2.2.1 ................................................................................................ 73
3.2.2.2 ........................................................................................................ 74
3.2.2.3 ................................................................................................ 75
3.2.2.4 wmake ............................................................................................... 75
3.2.2.5 wmake ................................................................................ 76
3.2.3 wclean rmdepall ............................................................... 76
3.2.4 pisoFoam .............................................................................. 77
3.2.5 ........................................................................................................... 79
3.2.6 ........................................................................................................ 80
3.3 .......................................................................................................................... 81
3.4 .......................................................................................................................... 81
3.4.1 ....................................................................................... 81
3.4.2 ....................................................................................................... 84
3.4.3 ........................................................................................... 84
3.4.4 ........................................................................................................... 85

OpenFOAM-3.0.1
11

3.4.4.1 ........................................................................................ 85
3.4.4.2 ............................................................................................ 85
3.5 ...................................................................................................................... 85
3.6 .......................................................................................................................... 90
3.7 .............................................................................................................................. 97
.......................................................................................................................................... 105
4.1 OpenFOAM ................................................................................................... 105
4.2 ........................................................................................................ 106
4.2.1 ..................................................................................................... 106
4.2.2 ..................................................................................................................... 106
4.2.3 .................................................................................................................. 107
4.2.4 ..................................................................................................................... 108
4.2.5 Scalar Vector Tensor ............................................................ 109
4.2.6 ..................................................................................................................... 109
4.2.7 ............................................................................................................. 110
4.2.8 ......................................................................................................................... 110
4.2.9 ..................................................................................................... 111
4.2.10 #include #inputMode ............................................................................. 112
4.2.11 #codeStream .............................................................................................. 112
4.3 .................................................................................................... 113
4.4 ........................................................................................................................ 116
4.4.1 (interpolationSchemes)........................................................................ 117
4.4.1.1 .......................................................................................... 118
4.4.1.2 .......................................................................................... 118
4.4.2 (snGradSchemes) .................................................................... 119
4.4.3 (gradSchemes) ..................................................................................... 120
4.4.4 (laplacianSchemes)...................................................................... 121
4.4.5 ............................................................................................................. 121
4.4.6 ............................................................................................................. 122
4.4.7 ............................................................................................................. 122
4.5 ............................................................................................................ 123
4.5.1 ......................................................................................................... 123
4.5.1.1 .................................................................................................. 124
4.5.1.2 ...................................................................... 125
4.5.1.3 ...................................................................................... 125
4.5.1.4 GAMG ...................................................................................................... 125
4.5.2 ................................................................................................................. 126
4.5.3 PISO SIMPLE ........................................................................................ 127
4.5.3.1 .................................................................................................. 127
4.5.4 ............................................................................................................. 128
.......................................................................................................................................... 129
5.1 ................................................................................................................................ 129
5.1.1 ............................................................................................. 129
5.1.1.1 .............................................................................................................. 130

OpenFOAM-3.0.1
12

5.1.1.2 .............................................................................................................. 130


5.1.1.3 .................................................................................................. 131
5.1.1.5 .......................................................................................................... 131
5.1.2 polyMesh .............................................................................................................. 131
5.1.3 cellShape .............................................................................................................. 132
5.1.4 ............................................................................. 133
5.2 ................................................................................................................................ 133
5.2.1 OpenFOAM ....................................................................... 135
5.2.2 ............................................................................................................. 136
5.2.3 ............................................................................................................. 138
5.2.4 ............................................................................................................. 138
5.3 blockMesh .............................................................................................. 140
5.3.1 blockMeshDict .................................................................................. 140
5.2.1.1 .......................................................................................................... 141
5.3.1.2 .............................................................................................................. 142
5.3.1.3 .............................................................................................................. 142
5.3.1.4 block ............................................................................. 143
5.3.1.5 .......................................................................................................... 145
5.3.2 ............................................................................................................. 146
5.3.3 8 block ....................................................................................... 148
5.3.4 blockMesh .................................................................................................. 149
5.4 snappyHexMesh ..................................................................................... 149
5.4.1 snappyHexMesh .................................................................................. 149
5.4.2 ......................................................................................... 151
5.4.3 ................................................................................. 152
5.4.4 ............................................................................................................. 154
5.4.5 ............................................................................................. 154
5.4.6 ............................................................................................................. 155
5.4.7 ......................................................................................................... 155
5.4.8 ..................................................................................................... 158
5.5 ........................................................................................................................ 158
5.5.1 fluentMeshToFoam .............................................................................................. 159
5.5.2 starToFoam........................................................................................................... 160
5.5.2.1 STAR-CD ........................................................... 160
5.5.2.2 .......................................................................................... 160
5.5.2.3 .................................................................................. 161
5.5.2.4 .......................................................................................... 162
5.5.2.5 .................................................................................................. 163
5.5.2.6 .vrt ................................................................................ 163
5.5.2.7 OpenFOAM ................................................................ 164
5.5.3 gambitToFoam ..................................................................................................... 164
5.5.4 ideasToFoam ........................................................................................................ 164
5.5.5 cfx4ToFoam ......................................................................................................... 165
5.6 .................................................................................................... 165

OpenFOAM-3.0.1
13

5.6.1 ......................................................................................................... 165


5.6.2 ..................................................................................................... 165
5.6.3 ............................................................................................................. 167
.......................................................................................................................................... 169
6.1 paraFoam......................................................................................................................... 169
6.1.1 paraFoam ..................................................................................................... 169
6.1.2 Properties .................................................................................................... 170
6.1.3 display ......................................................................................................... 172
6.1.4 ................................................................................................................. 173
6.1.5 ............................................................................................................. 173
6.1.5.1 View ................................................................................................. 173
6.1.5.2 .................................................................................................. 174
6.1.6 ............................................................................................................. 174
6.1.6.1 .......................................................................................................... 174
6.1.7 ......................................................................................................... 174
6.1.7.1 ...................................................................................... 175
6.1.8 ................................................................................................................. 175
6.1.9 ............................................................................................................. 175
6.1.10 ........................................................................................................... 175
6.2 ................................................................................................................ 176
6.2.1 ..................................................................................................... 178
6.2.2 ............................................................................................. 179
6.3 Fluent ................................................................................................... 181
6.4 Fieldview .................................................................................................. 182
6.5 EnSight ............................................................................................. 183
6.5.1 EnSight ................................................................................... 183
6.5.2 ensight74FoamExec .................................................................................... 183
6.5.2.1 EnSight ..................................................................................... 183
6.5.2.2 .............................................................................. 184
6.6 ........................................................................................................................ 184
6.7 ............................................................................................................ 187
6.7.1 foamJob ................................................................................. 188
6.7.2 foamLog ................................................................................ 188
.......................................................................................................................................... 191
7.1 .................................................................................................................... 191
7.1.1 ............................................................................. 192
7.1.2 ............................................................................................................. 193
7.1.3 ..................................................................................................... 193
7.1.4 ............................................................................................................. 194
7.1.5 ............................................................................................................. 195
7.1.6 ............................................................................................. 196
7.1.7 ......................................................................................... 196
7.2 ........................................................................................................................ 197
7.2.1 ............................................................................................................. 198

OpenFOAM-3.0.1
14

7.2.2 ............................................................................................................. 198


7.3 ........................................................................................................................ 199
7.3.1 ..................................................................................................... 199
7.3.2 Bird-Carreau ........................................................................................ 199
7.3.3 Cross ............................................................................................ 200
7.3.4 ............................................................................................................. 200
7.3.5 Herschel-Bulkley ................................................................................. 201

OpenFOAM-3.0.1
15

OpenFOAM C++
OpenFOAM OpenFOAM

OpenFOAM C++
application
solverutilities
OpenFOAM

OpenFOAM

OpenFOAM OpenFOAM
1.1 OpenFOAM
OpenFOAM

1.1OpenFOAM

OpenFOAM-3.0.1
16

OpenFOAM-3.0.1
17

OpenFOAM
OpenFOAM $FOAM_TUTORIALS
OpenFOAM
OpenFOAM
blockMesh1
paraFoam
paraFoam 6
OpenFOAM
icoFoam
incompressible/icoFoam incomprehensible
run
2

mkdir p $FOAM_RUN
cp r $FOAM_TUTORIALS $FOAM_RUN

2.1

2.1 1m/s x
icoFoam

1
2 OpenFOAM linux
Ctrl+T

OpenFOAM-3.0.1
18

pisoFoam3

2.1

2.1.1

OpenFOAM
emacs, vi, gedit, kate, nedit OpenFOAM

4.1 OpenFOAM
CFD
cavity
cavity
4

cd $FOAM_RUN/tutorials/incompressible/icoFoam/cavity

2.1.1.1

OpenFOAM 5
OpenFOAM
empty
cavity xy 0.1 20*20
block 2.2. OpenFOAM blockMesh
constant/ployMesh
blockMeshDict

3 xxxFoam
4
5 OpenFOAM 2D

OpenFOAM-3.0.1
19

1 / *-----------------------------------------------------------------*- C++ -*---------------------------------------------------------------------------------*\


2 | ========= |
3 | \\ / Field | OpenFOAM: The Open Source CFD Toolbox |
4| \\ / Operation | Version: 2.3.0 |
5| \\ / And | Web: www.OpenFOAM.org |
6| \\/ Manipulation | |
7 \*--------------------------------------------------------------------------------------------------------------------------------------------------------------*/
8 FoamFile
9{
10 version 2.0;

2.2cavity block

11 format ascii;
12 class dictionary;
13 object blockMeshDict;
14 }
15 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16
17 convertToMeters 0.1;
18
19 vertices
20 (
21 (0 0 0)
22 (1 0 0)
23 (1 1 0)
24 (0 1 0)
25 (0 0 0.1)
26 (1 0 0.1)
27 (1 1 0.1)
28 (0 1 0.1)
29 );
30
31 blocks
32 (
33 hex (0 1 2 3 4 5 6 7) (20 20 1) simpleGrading (1 1 1)
34 );
35
36 edges
37 (
38 );
39
40 boundary
41 (
42 movingWall
43 {
44 type wall;
45 faces
46 (
47 (3 7 6 2)
48 );
49 }
50 fixedWalls
51 {
52 type wall;

OpenFOAM-3.0.1
20

53 faces
54 (
55 (0 4 7 3)
56 (2 6 5 1)
57 (1 5 4 0)
58 );
59 }
60 frontAndBack
61 {
62 type empty;
63 faces
64 (
65 (0 3 2 1)
66 (4 5 6 7)
67 );
68 }
69 );
70
71 mergePatchPairs
72 (
73 );
74
75 // ************************************************************************* //

FoamFile ({...})


FoamFile

block block
5.3 blockMeshDict
blockMesh

blockMesh

blockMesh
blockMeshDict blockMesh

2.1.1.2

0
cavity 0 0
p U p

17 dimensions [0 2 -2 0 0 0 0];
18
19 internalField uniform 0;
20
21 boundaryField
22 {
23 movingWall
24 {
25 type zeroGradient;
26 }
27
28 fixedWalls
29 {
30 type zeroGradient;

OpenFOAM-3.0.1
21

31 }
32
33 frontAndBack
34 {
35 type empty;
36 }
37 }
38
39 // ************************************************************************* //

dimensions 6 ms-2. 4.2.6


internalField
4.2.8

boundaryField
4.2.8

cavity walls patches(1) fixedWalls


cavity (2) movingWallcavity
zeroGradient 0frontAndBack 2D
empty
uniform
0
7
0/U dimensions
0uniform (0 0 0) 4.2.5

frontAndBack empty, patchs fixedWalls


fixedValue value uniform (0 0 0)
1 x fixedValue uniform(1
0 0)

2.1.1.3

Properties icoFoam
transportProperties transport-
Properties nu
10

||
Re = (2.1)

6
7 zeroGradient 0,10,100

OpenFOAM-3.0.1
22

d |U| d 0.1m|| 1m/s 0.0


1m2/s 10

17
18 nu nu [ 0 2 -1 0 0 0 0 ] 0.01;
19
20
21 // ************************************************************************* //

2.1.1.4

controlDict
system
OpenFOAM
4.3 t = 0
OpenFOAM 0 4.1
startFrom startTime startTime 0

10
10 1s
0.5s 0.5s stopAt
endTime endTime 0.5
deltaT icoFoam
8 1

||
Co = (2.2)

||
1
1
1m/s

0.1
= = = 0.005 (2.3)
20

1.

1 0.005
t = = = 0.005 (2.4)
|| 1

writeControl
0.1s, 0.2s, , 0.5s 0.005s

8 Courant number

OpenFOAM-3.0.1
23

20 writeInterval 20
OpenFOAM 0.1 4.1
icoFoam
controlDict

17
18 application icoFoam;
19
20 startFrom startTime;
21
22 startTime 0;
23
24 stopAt endTime;
25
26 endTime 0.5;
27
28 deltaT 0.005;
29
30 writeControl timeStep;
31
32 writeInterval 20;
33
34 purgeWrite 0;
35
36 writeFormat ascii;
37
38 writePrecision 6;
39
40 writeCompression off;
41
42 timeFormat general;
43
44 timePrecision 6;
45
46 runTimeModifiable true;
47
48
49 // ************************************************************************* //

2.1.1.5

system fvScheme system


fvSolution
fvSolution PISO
pRefCell pRefValue
pRefCell pRefValue
0

2.1.2

OpenFOAM
paraFoam

paraFoam

-case

OpenFOAM-3.0.1
24

paraFoam case $FOAM_RUN/tutorials/incompressible/icoFoam/cavity

6.1 paraview Pipeline Browser paraview


cavity.OpenFOAM apply Mesh
Parts Mesh Parts
Apply
paraview
Display 9 Display
2.3 (1) Color By Solid Color; (2) Set Ambient Color
(3) Style 10 Representation
Wireframe Edit View Setting
paraview 6.1.5
Edit View Setting General Use Parallel
Projection Annotation Orientation Axes

2.1.3

UNIX/Linux OpenFOAM

icoFoam

icoFoam

-case

icoFoam -case $FOAM_RUN/tutorials/incompressible/icoFoam/cavity

9 paraview paraview display


10

OpenFOAM-3.0.1
25

2.3 paraFoam

2.1.4

paraFoam paraFoam
cavity.OpenFOAM cavity.OpenFOAM

paraFoam 0.5s
paraview
Properties Refresh Times

2.1.4.1

Display
2.4 Style Representation

OpenFOAM-3.0.1
26

2.4cavity

2.5cavity

OpenFOAM-3.0.1
27

Surface Color Color by Rescale to Data Range


0.5s 6.4 paraview
VCR Controls Current Time Controls 0.5s

2.5

Color by

Active Variable Controls Toggle Color Legend Visibility


View Show Color Legend Active Variable
Controls Display Color Edit Color Map

Paraview ----
paraview Color Scale
Editor Choose Preset Blue to Red Rainbow OK
Make Default paraview

11 slice slice 6.1.6.1
0.05, 0.05, 0.05 0, 0, 1 Z Normal
Contour 6.1.6

2.1.4.2

slice Contour
Pipeline Browser
Properties Delete12
6.1.7.1
Pipeline Browser cavity.OpenFOAM Filter ->
Alphabetical Cell Centers
Pipeline Browser Centers Filter->Alphabetical Glyph
2.6 vectors U
off Set Scale
Factor 0.005 Apply
Display Color by U Edit
Color Map Show Color Legend 2.7, Times Roman
Color Legend Label Format %-#6.2f Automati Label Format
2 View Settings General 6.1.5.1

0 Paraview
glyph scaling off paraview
0

11 Paraview source plane


12 delete

OpenFOAM-3.0.1
28

2.6

2.7cavity

OpenFOAM-3.0.1
29

2.1.4.3

paraview
6.1.8
pipeline browser cavity.OpenFOAM Filter Stream
tracer Apply 2.4 Properties Seed Line Source
(0.05, 0, 0.005)(0.05, 0.1, 0.005)
Resolution 21Max Propagation 0.5Initial Step Length Cell Length
0.01, Integration Direction BOTH Runge-Kutta 2 Intergrator Type
Apply Filter Tube
Num.sides 6
Radius 0.0003Radius factor 10 Apply 2.9

2.1.5

2.1.5.1

cavity cavityFine
cavity cavity

cd $FOAM_RUN/tutorials/incompressible/icoFoam
mkdir cavityFine

cavity cavityFine cavityFine

cp -r cavity/constant cavityFine
cp -r cavity/system cavityFine
cd cavityFine

2.1.5.2

blockMesh blockMeshDict
blocks blocks 5.3.1.3
hex block Cavity
(20 20 1)(40 40 1)

OpenFOAM-3.0.1
30

2.8

2.9cavity

OpenFOAM-3.0.1
31

blockMesh

2.1.5.3

mapFields

mapFields -consistent
mapFields controlDict
startFrom/startTime
cavityFine cavity 0.5
controlDict startTime 0.5startFrom startTime
mapFields mapFields help mapFields
-consistent
cavityFine

mapFields ../cavity -consistent

OpenFOAM-3.0.1
32

2.1.5.4

2.1.1.4 Co 113
controlDict deltaT 0.0025
14
controlDict writeControl timeStep
runTime 0.1
writeControl runTimewriteInterval 0.1
15 endTime
0.7

2.1.5.5

icoFoam log
cavityFine

icoFoam > log &


cat log

2.1.5.6

paraview Pipeline Browser


paraView
OpenFOAM
paraFoam .OpenFOAM
cavity cavity.OpenFOAM
paraview
cavityFine 16

cd $FOAM_RUN/tutorials/incompressible/icoFoam
touch cavityFine/cavityFine.OpenFOAM

File Open cavityFine.OpenFOAM paraview


cavityFine paraview

13 CFD
14 deltaT 0.5
15 steady-state icoFoam
16 windows cavitiFine.OpenFOAM

OpenFOAM-3.0.1
33

2.10 plot

2.1.5.7

2
OpenFOAM
foamCalc

foamCalc <calcType> <fieldName1 ... fieldNameN>

calcType OpenFOAM addSubtractrandomise


divcomponentsmagmagGradmagSqrinterpolate

OpenFOAM-3.0.1
34

calcType calcType foamCalc


17

>> foamCalc xxxx


Selecting calcType xxxx
unknown calcType type xxxx, constructor not in hash table
Valid calcType selections are:

8
(
randomise
magSqr
magGrad
addSubtract
div
mag
interpolate
components
)

Components mag cavity


foamCalc components U
Ux, Uy, Uz foamCalc mag U magU

cavity cavityFine components calcType


foamCalc cavity cavity

cd $FOAM_RUN/tutorials/incompressible/icoFoam/cavity
foamCalc components U

paraview Paraview

gnuplot Grace/xmgr
sample 6.5 2.2.3
paraview UxUyUz
Properties Refresh Times paraview volume field
Apply Mesh Parts
Mesh Parts
movingWallfixedWalls frontAndBack Apply
paraview cavity.OpenFoam
Filter Data Analysis Plot Over Line 3D
XYPlot Properties PlotOverLine

Point1 (0.05, 0, 0.005) Point2 (0.05, 0.1, 0.005)Resolution


100
Apply XYPlot Display Attribute
Mode Point DataX Axis Data Use Data Array arc_length x

Display Line Series

17
OpenFOAM type fixedV;

OpenFOAM-3.0.1
35

3 U:X18
foamCalc Ux Ux U:X

2.11 paraFoam

Line Series Line colorLine


ThicknessLine StyleMarker Style Chart Axes

log
2.11 paraview 2.11
Sans Serif 12 Display
Enable Line Series
Line Series
Enable Line Series Line Style Marker Style

2.1.6

18 paraview U(1)U(x)

OpenFOAM-3.0.1
36

cavity

20*20
2.1.5.2
blockMeshDict

$FOAM_RUN/tutorials /incompressible/icoFoam icoFoam

2.1.6.1

4 blocks

2.12 block

2.12 block
cavityGrade constant/polyMesh blockMeshDict
block x,y 10
2

19 vertices
20 (
21 (0 0 0)
22 (0.5 0 0)
23 (1 0 0)
24 (0 0.5 0)
25 (0.5 0.5 0)
26 (1 0.5 0)
27 (0 1 0)
28 (0.5 1 0)
29 (1 1 0)
30 (0 0 0.1)
31 (0.5 0 0.1)
32 (1 0 0.1)

OpenFOAM-3.0.1
37

33 (0 0.5 0.1)
34 (0.5 0.5 0.1)
35 (1 0.5 0.1)
36 (0 1 0.1)
37 (0.5 1 0.1)
38 (1 1 0.1)
39 );
40
41 blocks
42 (
43 hex (0 1 4 3 9 10 13 12) (10 10 1) simpleGrading (2 2 1)
44 hex (1 2 5 4 10 11 14 13) (10 10 1) simpleGrading (0.5 2 1)
45 hex (3 4 7 6 12 13 16 15) (10 10 1) simpleGrading (2 0.5 1)
46 hex (4 5 8 7 13 14 17 16) (10 10 1) simpleGrading (0.5 0.5 1)
47 );
48
49 edges
50 (
51 );
52
53 boundary
54 (
55 movingWall
56 {
57 type wall;
58 faces
59 (
60 (6 15 16 7)
61 (7 16 17 8)
62 );
63 }
64 fixedWalls
65 {
66 type wall;
67 faces
68 (
69 (3 12 15 6)
70 (0 9 12 3)
71 (0 1 10 9)
72 (1 2 11 10)
73 (2 5 14 11)
74 (5 8 17 14)
75 );
76 }
77 frontAndBack
78 {
79 type empty;
80 faces
81 (
82 (0 3 4 1)
83 (1 4 5 2)
84 (3 6 7 4)
85 (4 7 8 5)
86 (9 10 13 12)
87 (10 11 14 13)
88 (12 13 16 15)
89 (13 14 17 16)
90 );
91 }
92 );
93
94 mergePatchPairs
95 (
96 );
97
98 // ************************************************************************* //

blockMeshDict blockmesh
paraFoam 2.1.2

2.1.6.2

2.1.1.4

blockMesh L n
Rx,

OpenFOAM-3.0.1
38

1
x = l (2.5)
1
r
1
r = 1 (2.6)

>1
={ (2.7)
1 + 1 < 1
cavityGrade 10
2block 0.05m 3.45mm 2.2
3.45 1
19
deltaT 2.5 writeInterval 40 0.1
cavityGrade/system/controlDict
startTime cavityFine 0.7 cavity cavityFine
0.1s endTime 0.8

2.1.6.3

2.1.5.3 mapFields cavity cavityFine 20


cavityFine cavityGrade

cd $FOAM_RUN/tutorials/incompressible/icoFoam/cavityGrade
mapFields ../cavityFine -consistent

icoFoam
2.1.5.6 2.1.5.7

2.1.7

10
100
cavity cavity cavityHighRe

cd $FOAM_RUN/tutorials/incompressible/icoFoam
cp -r cavity cavityHighRe

2.1.7.1

cavityHighRe transportProperties 10

19 40
20

OpenFOAM-3.0.1
39

10 1e-3m2 1 cavity
startTime latestTime icoFoam
0.5s endTime
2s

2.1.7.2

UNIX

nohup

nice-20 19

nohup nice
19

cd $FOAM_RUN/tutorials/incompressible/icoFoam/cavityHighRe
nohup nice -n 19 icoFoam > log &
cat log

icoFoam 21
icoFoam
fvSolution 10e-6
22 log cavityHighRe
1.395 No
Iterations 0

1 Time = 1.43
2
3 Courant Number mean: 0.221921 max: 0.839902
4 smoothSolver: Solving for Ux, Initial residual = 8.73381e-06, Final residual = 8.73381e-06, No Iterations 0
5 smoothSolver: Solving for Uy, Initial residual = 9.89679e-06, Final residual = 9.89679e-06, No Iterations 0
6 DICPCG: Solving for p, Initial residual = 3.67506e-06, Final residual = 8.62986e-07, No Iterations 4
7 time step continuity errors : sum local = 6.57947e-09, global = -6.6679e-19, cumulative = -6.2539e-18
8 DICPCG: Solving for p, Initial residual = 2.60898e-06, Final residual = 7.92532e-07, No Iterations 3
9 time step continuity errors : sum local = 6.26199e-09, global = -1.02984e-18, cumulative = -7.28374e-18
10 ExecutionTime = 0.37 s ClockTime = 0 s
11
12 Time = 1.435
13
14 Courant Number mean: 0.221923 max: 0.839903
15 smoothSolver: Solving for Ux, Initial residual = 8.53935e-06, Final residual = 8.53935e-06, No Iterations 0
16 smoothSolver: Solving for Uy, Initial residual = 9.71405e-06, Final residual = 9.71405e-06, No Iterations 0
17 DICPCG: Solving for p, Initial residual = 4.0223e-06, Final residual = 9.89693e-07, No Iterations 3
18 time step continuity errors : sum local = 8.15199e-09, global = 5.33614e-19, cumulative = -6.75012e-18
19 DICPCG: Solving for p, Initial residual = 2.38807e-06, Final residual = 8.44595e-07, No Iterations 3
20 time step continuity errors : sum local = 7.48751e-09, global = -4.42707e-19, cumulative = -7.19283e-18
21 ExecutionTime = 0.37 s ClockTime = 0 s

No Iterations
21


22

OpenFOAM-3.0.1
40

2.1.8

paraFoam

23 Reynolds-Average SimulationRAS
10e4
k k
pisoFoam

2.1.8.1

$FOAM_RUN/tutorials/incompressible/pisoFoam/ras cavity
blockMesh

OpenFOAM

0/nut

17
18 dimensions [0 2 -1 0 0 0 0];
19
20 internalField uniform 0;
21
22 boundaryField
23 {
24 movingWall
25 {
26 type nutkWallFunction;
27 value uniform 0;
28 }
29 fixedWalls
30 {
31 type nutkWallFunction;
32 value uniform 0;
33 }
34 frontAndBack
35 {
36 type empty;
37 }
38 }
39
40
41 // *************************************************************************

movingWall fixedWall nutWallFunction


nutRoughWallFunction

k
epsilonWallFunction
k kqRwallFunction
kq R k

23 DNS

OpenFOAM-3.0.1
41

Uk

1
=
(2.8)
2
0.75 1.5
= (2.9)

0.09k

1 2 2 2
k = ( + + ) (2.10)
2

2 2 2
xyz
2 2 2
= = 5% 20%0.1m k

5
= = = 1 (2.11)
100
3 5 2 2 2
k= ( ) = 3.75 103 2 2 (2.12)
2 100
0.75 1.5
= 7.65 1042 2 (2.13)

k (0, 0, 0)
0
RAS LES
OpenFOAM24
tubulenceProperties simulationType
constant tubulenceProperties

17
18 simulationType RAS;
19
20 RAS
21 {
22 RASModel kOmega;
23
24 turbulence on;
25
26 printCoeffs on;
27 }
28
29 // *************************************************************************

simulationType laminarRAS LES OpenFOAM-3.0.0 RASModel


LESMode RAS RAS RASProperties
constant 3.9 RAS kEpsilon

24 OpenFOAM runTimeMechanism

OpenFOAM-3.0.1
42

turbulence on
printCoeffs
on
Coeffs kEpsilon kEpsilonCoeffs
RAS
105104
2.1
controlDict startTimestopTimedeltaT writeInverval
1 deltaT 0.005 10

2.1.8.2

pisoFoam pisoFoam

100
0.2m/s 0.2
1 deltaT 0.02 startFrom
latestTime pisoFoam 10
endTime 20s

2.1.9

mapFields

icoFoam cavityClipped
cavity 0.04
blockMeshDict

17 convertToMeters 0.1;
18
19 vertices
20 (
21 (0 0 0)
22 (0.6 0 0)
23 (0 0.4 0)
24 (0.6 0.4 0)
25 (1 0.4 0)
26 (0 1 0)
27 (0.6 1 0)
28 (1 1 0)
29
30 (0 0 0.1)
31 (0.6 0 0.1)
32 (0 0.4 0.1)
33 (0.6 0.4 0.1)

OpenFOAM-3.0.1
43

34 (1 0.4 0.1)
35 (0 1 0.1)
36 (0.6 1 0.1)
37 (1 1 0.1)
38
39 );
40
41 blocks
42 (
43 hex (0 1 3 2 8 9 11 10) (12 8 1) simpleGrading (1 1 1)
44 hex (2 3 6 5 10 11 14 13) (12 12 1) simpleGrading (1 1 1)
45 hex (3 4 7 6 11 12 15 14) (8 12 1) simpleGrading (1 1 1)
46 );
47
48 edges
49 (
50 );
51
52 boundary
53 (
54 lid
55 {
56 type wall;
57 faces
58 (
59 (5 13 14 6)
60 (6 14 15 7)
61 );
62 }
63 fixedWalls
64 {
65 type wall;
66 faces
67 (
68 (0 8 10 2)
69 (2 10 13 5)
70 (7 15 12 4)
71 (4 12 11 3)
72 (3 11 9 1)
73 (1 9 8 0)
74 );
75 }
76 frontAndBack
77 {
78 type empty;
79 faces
80 (
81 (0 2 3 1)
82 (2 5 6 3)
83 (3 6 7 4)
84 (8 9 11 10)
85 (10 11 14 13)
86 (11 12 15 14)
87 );
88 }
89 );
90
91 mergePatchPairs
92 (
93 );
94
95 // ************************************************************************* //

OpenFOAM-3.0.1
44

blockMesh patches mapFields


cavity movingWall lid

0.5
controlDict startTime 0.5s 0 0.5s

cd $FOAM_RUN/tutorials/incompressible/icoFoam/cavityClipped
cp r 0 0.5

0.5s
cavity cavityClipped
system mapFieldsDict
patchMap cuttingPatches patches
patches patchMap cavityClipped
lib cavity movingWall
patchMap

patchMap
(
lid movingWall
);

cuttingPatc -
hes cuttingPatches fixedWalls

cuttingPatches
(
fixedWalls
);

cavityClipped mapFields

mapFields ../cavity

2.13
fixedWalls (0 0 0) U
fixedWalls nonuniform uniform (0 0 0) nonuniform
icoFoam

OpenFOAM-3.0.1
45

2.13 cavity cavityClipped

2.14cavityClipped

OpenFOAM-3.0.1
46

2.1.10

0.5s 0.6s
2D Filter
Extract Block Parameter lid
fixedWalls Apply Display Wireframe
2.14

2.2

4 R 0.5
10kpa 2.15
2.15

2.15

2
1 2D
2 2D

OpenFOAM-3.0.1
47

2 34
(1 + 2 + 4 ) , ||
( )=0 ={ 2 2 (2.14)
0 , || <

2.2.1

4 blockxy Block 2.16


2.1.1.1 2D OpenFOAM 3
z 0.5

tutorials/stressAnalysis/solidDisplacemehtFoam plateHole
const -ant/polyMesh/blockMeshDict

17 convertToMeters 1;
18
19 vertices
20 (
21 (0.5 0 0)
22 (1 0 0)
23 (2 0 0)
24 (2 0.707107 0)
25 (0.707107 0.707107 0)
26 (0.353553 0.353553 0)
27 (2 2 0)
28 (0.707107 2 0)
29 (0 2 0)
30 (0 1 0)
31 (0 0.5 0)
32 (0.5 0 0.5)
33 (1 0 0.5)
34 (2 0 0.5)
35 (2 0.707107 0.5)
36 (0.707107 0.707107 0.5)
37 (0.353553 0.353553 0.5)
38 (2 2 0.5)
39 (0.707107 2 0.5)
40 (0 2 0.5)
41 (0 1 0.5)
42 (0 0.5 0.5)
43 );
44
45 blocks
46 (
47 hex (5 4 9 10 16 15 20 21) (10 10 1) simpleGrading (1 1 1)
48 hex (0 1 4 5 11 12 15 16) (10 10 1) simpleGrading (1 1 1)
49 hex (1 2 3 4 12 13 14 15) (20 10 1) simpleGrading (1 1 1)
50 hex (4 3 6 7 15 14 17 18) (20 20 1) simpleGrading (1 1 1)
51 hex (9 4 7 8 20 15 18 19) (10 20 1) simpleGrading (1 1 1)
52 );
53
54 edges
55 (
56 arc 0 5 (0.469846 0.17101 0)
57 arc 5 10 (0.17101 0.469846 0)
58 arc 1 4 (0.939693 0.34202 0)
59 arc 4 9 (0.34202 0.939693 0)
60 arc 11 16 (0.469846 0.17101 0.5)
61 arc 16 21 (0.17101 0.469846 0.5)

OpenFOAM-3.0.1
48

2.16 block

62 arc 12 15 (0.939693 0.34202 0.5)


63 arc 15 20 (0.34202 0.939693 0.5)
64 );
65
66 boundary
67 (
68 left
69 {
70 type symmetryPlane;
71 faces
72 (
73 (8 9 20 19)
74 (9 10 21 20)
75 );
76 }
77 right
78 {
79 type patch;
80 faces
81 (
82 (2 3 14 13)
83 (3 6 17 14)
84 );
85 }
86 down
87 {
88 type symmetryPlane;
89 faces
90 (
91 (0 1 12 11)
92 (1 2 13 12)
93 );
94 }
95 up

OpenFOAM-3.0.1
49

96 {
97 type patch;
98 faces
99 (
100 (7 8 19 18)
101 (6 7 18 17)
102 );
103 }
104 hole
105 {
106 type patch;
107 faces
108 (
109 (10 5 16 21)
110 (5 0 11 16)
111 );
112 }
113 frontAndBack
114 {
115 type empty;
116 faces
117 (
118 (10 9 4 5)
119 (5 4 1 0)
120 (1 4 3 2)
121 (4 7 6 3)
122 (4 9 8 7)
123 (21 16 15 20)
124 (16 11 12 15)
125 (12 13 14 15)
126 (15 14 17 18)
127 (15 18 19 20)
128 );
129 }
130 );
131
132 mergePatchPairs
133 (
134 );
135
136 // ************************************************************************* //

block block
edges edges block
Edge arcsimpleSplinepolyLine 5.3.1
25 arc

blockmeshDict block 2.16 0block x2


4block -x1 block

6 patch patch patch


patch patch
blockmeshDict
symmetryPlane
frontAndBack patch 2D patch

blockMeshDict empty 5.2.1

patch blockMesh paraFoam


2.1.2 2.17

25

OpenFOAM-3.0.1
50

2.17

2.2.1.1

D 0/D

17 dimensions [0 1 0 0 0 0 0];
18
19 internalField uniform (0 0 0);
20
21 boundaryField
22 {
23 left
24 {
25 type symmetryPlane;
26 }
27 right
28 {
29 type tractionDisplacement;
30 traction uniform ( 10000 0 0 );
31 pressure uniform 0;
32 value uniform (0 0 0);
33 }
34 down
35 {
36 type symmetryPlane;
37 }
38 up
39 {
40 type tractionDisplacement;
41 traction uniform ( 0 0 0 );
42 pressure uniform 0;
43 value uniform (0 0 0);
44 }
45 hole
46 {
47 type tractionDisplacement;
48 traction uniform ( 0 0 0 );
49 pressure uniform 0;
50 value uniform (0 0 0);
51 }

OpenFOAM-3.0.1
51

52 frontAndBack
53 {
54 type empty;
55 }
56 }
57
58 // ************************************************************************* //

(0 0 0)left down patch


symmetryPlane constant/polyMesh/boundary
frontAndBack empty
patches traction
1 traction
2 pressure
up
hole 0 0 right
(1e4 0 0)Papressure 0 Pa

2.2.1.2

constant mechanicalProperties
2.1 planeStress yes

kg/m rho 7854


Pa E 2 1011
nu 0.3

2.1

2.2.1.3

solidDisplacementFoam

thermalProperties thermalStress
2.2
thermalProperties
thermalStress no

2.2.1.4

controlDict 0
26 deltaT 1

OpenFOAM SIMPLE deltaT


26

1 100 100 0.1 100s 1000


SIMPLE control 1

OpenFOAM-3.0.1
52

/JkgK C 434
/WmK k 60.5
/K alpha 1.1 105

2.2

endTime 100
writeInterval 20
controlDict

17
18 application solidDisplacementFoam;
19
20 startFrom startTime;
21
22 startTime 0;
23
24 stopAt endTime;
25
26 endTime 100;
27
28 deltaT 1;
29
30 writeControl timeStep;
31
32 writeInterval 20;
33
34 purgeWrite 0;
35
36 writeFormat ascii;
37
38 writePrecision 6;
39
40 writeCompression off;
41
42 timeFormat general;

2.2.1.5

fvSchemes
timeScheme SteadyState
solidDisplacementFoam

least squares 27
system fvSchemes gradSchemes gradU

gradT leastSquares

17
18 d2dt2Schemes

27 cfdonline least squares

OpenFOAM-3.0.1
53

19 {
20 default steadyState;
21 }
22
23 ddtSchemes
24 {
25 default Euler;
26 }
27
28 gradSchemes
29 {
30 default leastSquares;
31 grad(D) leastSquares;
32 grad(T) leastSquares;
33 }
34
35 divSchemes
36 {
37 default none;
38 div(sigmaD) Gauss linear;
39 }
40
41 laplacianSchemes
42 {
43 default none;
44 laplacian(DD,D) Gauss linear corrected;
45 laplacian(DT,T) Gauss linear corrected;
46 }
47
48 interpolationSchemes
49 {
50 default linear;
51 }
52
53 snGradSchemes
54 {
55 default none;
56 }
57
58 fluxRequired
59 {
60 default no;
61 D yes;
62 T no;
63 }
64
65
66 // ************************************************************************* //

system fvSolution
solvers D GAMG tolerance 10-6
relTol

0.01 0.10.9

17
18 solvers
19 {
20 "(D|T)"
21 {
22 solver GAMG;
23 tolerance 1e-06;
24 relTol 0.9;
25 smoother GaussSeidel;
26 cacheAgglomeration true;
27 nCellsInCoarsestLevel 20;
28 agglomerator faceAreaPair;
29 mergeLevels 1;
30 }
31 }

OpenFOAM-3.0.1
54

32
33 stressAnalysis
34 {
35 compactNormalStress yes;
36 nCorrectors 1;
37 D 1e-06;
38 }
39
40
41 // ************************************************************************* //

fvSolution stressAnalysis
nCorrectors
nCorrectors
1
D
10-6

2.2.2

log

cd $FOAM_RUN/tutorials/stressAnalysis/solidDisplacementFoam/plateHole
solidDisplacementFoam > log &

log
0.9
10-6

2.2.3

2.1.4 OpenFOAM
solidDisplacementFoam sigma OpenFOAM


foamCalc 2.1.5.7

foamCalc components sigma

sigmaxxsigmaxy paraFoam
2.18

OpenFOAM-3.0.1
55

2.18

2.14
sample
system sampleDict 6.3 sets sample line
0.0, 0.5, 0.250.0, 2.0, 0.15 fields

17
18 interpolationScheme cellPoint;
19
20 setFormat raw;
21
22 sets
23 (
24 leftPatch
25 {
26 type uniform;
27 axis y;
28 start ( 0 0.5 0.25 );
29 end ( 0 2 0.25 );
30 nPoints 100;
31 }
32 );
33
34 fields ( sigmaxx );
35
36
37 // ************************************************************************* //

sample raw 2
postProcessing/sets 100s sets/100
/leftPatch_sigmaxx.xy GnuPlot28

plot [0.5:2] [0:] 'postProcessing/sets/100/leftPatch sigmaxx.xy',


1e4*(1+(0.125/(x**2))+(0.09375/(x**4)))

2.19

28 gnuplot

OpenFOAM-3.0.1
56

2.19x=0

2.2.4

solidDisplacementFoam

2.2.4.1

xy 2.2.3 mapFields

2.2.4.2

1.1
2.1.6 mapFields 2.2.3

2.2.4.3

2.3

interFoam 2
interFoam VOF
alpha
VOF

OpenFOAM-3.0.1
57

29 0 1


t=0s

2.20

2.20

2.3.1

$FOAM_RUN/tutorials/multiphase/interFoam/laminar damBreak
blockMesh damBreak 5 block
blockMeshDict

17 convertToMeters 0.146;
18
19 vertices
20 (
21 (0 0 0)
22 (2 0 0)
23 (2.16438 0 0)
24 (4 0 0)
25 (0 0.32876 0)
26 (2 0.32876 0)
27 (2.16438 0.32876 0)
28 (4 0.32876 0)
29 (0 4 0)
30 (2 4 0)
31 (2.16438 4 0)
32 (4 4 0)
33 (0 0 0.1)
34 (2 0 0.1)

29 VOF VOF

OpenFOAM-3.0.1
58

35 (2.16438 0 0.1)
36 (4 0 0.1)
37 (0 0.32876 0.1)
38 (2 0.32876 0.1)
39 (2.16438 0.32876 0.1)
40 (4 0.32876 0.1)
41 (0 4 0.1)
42 (2 4 0.1)
43 (2.16438 4 0.1)
44 (4 4 0.1)
45 );
46
47 blocks
48 (
49 hex (0 1 5 4 12 13 17 16) (23 8 1) simpleGrading (1 1 1)
50 hex (2 3 7 6 14 15 19 18) (19 8 1) simpleGrading (1 1 1)
51 hex (4 5 9 8 16 17 21 20) (23 42 1) simpleGrading (1 1 1)
52 hex (5 6 10 9 17 18 22 21) (4 42 1) simpleGrading (1 1 1)
53 hex (6 7 11 10 18 19 23 22) (19 42 1) simpleGrading (1 1 1)
54 );
55
56 edges
57 (
58 );
59
60 boundary
61 (
62 leftWall
63 {
64 type wall;
65 faces
66 (
67 (0 12 16 4)
68 (4 16 20 8)
69 );
70 }
71 rightWall
72 {
73 type wall;
74 faces
75 (
76 (7 19 15 3)
77 (11 23 19 7)
78 );
79 }
80 lowerWall
81 {
82 type wall;
83 faces
84 (
85 (0 1 13 12)
86 (1 5 17 13)
87 (5 6 18 17)
88 (2 14 18 6)
89 (2 3 15 14)
90 );
91 }
92 atmosphere
93 {
94 type patch;
95 faces
96 (
97 (8 20 21 9)
98 (9 21 22 10)
99 (10 22 23 11)
100 );
101 }
102 );
103
104 mergePatchPairs
105 (
106 );
107
108 // ************************************************************************* //

OpenFOAM-3.0.1
59

2.3.2

constant/polyMesh boundary blockMesh


5 patch leftWallrightWalllowerWall
atmosphere defaultFaces patch type atmosphere
patch
defaultFaces defaultFaces
empty leftWallrightWall lowerWall wall patch
wall patch

interFoam
alpha() alphaContactAngle
theta00 thetaA thetaR
uTheta
=
90 0 alpha
zeroGradient alphaContactAngle

totalPressure fixedValue p0 U

pressureInletOutletVelocity zeroGradient
fixedValue

inletOutlet zeroGradient fixedValue

fixedFluxPressure

defaultFaces 2 empty

2.3.3

1
water = { (2.15)
0

setFields setFieldsDict system

17
18 defaultFieldValues
19 (
20 volScalarFieldValue alpha.water 0
21 );

OpenFOAM-3.0.1
60

22
23 regions
24 (
25 boxToCell
26 {
27 box (0 0 -1) (0.1461 0.292 1);
28 fieldValues
29 (
30 volScalarFieldValue alpha.water 1
31 );
32 }
33 );
34
35
36 // ************************************************************************* //

defaultFieldValues regions
regions
fieldValues
topoSetSource boxToCell
1
setFields
setFields damBreak alpha.water
alpha.water.org setFields
alpha.water.org alpha.water

cp 0/alpha.water.org 0/alpha.water

setFields paraFoam alpha.water


2.21

2.3.4

constant transportProperties
water air transportModel
Newtonian nu CrossPowerLaw
<model>Coeffs CrossPowerLaw
CrossPowerLawCoeffs rho


m2 1 nu 1.0 106
kg/m rho 1.0 103

m2 1 nu 1.48 105
kg/m rho 1.0

N/m sigma 0.07

2.3

OpenFOAM-3.0.1
61

2.21 alpha.water

sigma 2.3
constant g
( U p)g uniformDimensionedVectorField
dimensions value
(0, 9.81, 0) m/s

17
18 dimensions [0 1 -2 0 0 0 0];
19 value ( 0 -9.81 0 );
20
21
22 // ************************************************************************* //

2.3.5

cavity turbulenceProperties
simulationType
laminar
17
18 simulationType laminar;
19
20
21 // ************************************************************************* //

2.3.6

0.5
Co
interFoam controlDict
adjustTimeStep on maxCo maxAlphaCo
1.0 maxDeltaT 1.0

OpenFOAM-3.0.1
62


OpenFOAM
OpenFOAM
OpenFOAM
controlDict
writeControl adjustableRunTime controlDict

17
18 application interFoam;
19
20 startFrom startTime;
21
22 startTime 0;
23
24 stopAt endTime;
25
26 endTime 1;
27
28 deltaT 0.001;
29
30 writeControl adjustableRunTime;
31
32 writeInterval 0.05;
33
34 purgeWrite 0;
35
36 writeFormat ascii;
37
38 writePrecision 6;
39
40 writeCompression uncompressed;
41
42 timeFormat general;
43
44 timePrecision 6;
45
46 runTimeModifiable yes;
47
48 adjustTimeStep yes;
49
50 maxCo 1;
51 maxAlphaCo 1;
52
53 maxDeltaT 1;
54
55
56 // ************************************************************************* //

2.3.7

interFoam OpenCFD MULES


interFoam

fvSchemes divSchemes
() div(rho*phi,U) Gauss linearUpwind
grad(U) 4.4.1
= 1.0 div(phi,alpha) (1 )
vanLeer MULES div(phirb,alpha)
( 1) linear
fvSchemes

OpenFOAM-3.0.1
63

17
18 ddtSchemes
19 {
20 default Euler;
21 }
22
23 gradSchemes
24 {
25 default Gauss linear;
26 }
27
28 divSchemes
29 {
30 div(rhoPhi,U) Gauss linearUpwind grad(U);
31 div(phi,alpha) Gauss vanLeer;
32 div(phirb,alpha) Gauss linear;
33 div((muEff*dev(T(grad(U))))) Gauss linear;
34 }
35
36 laplacianSchemes
37 {
38 default Gauss linear corrected;
39 }
40
41 interpolationSchemes
42 {
43 default linear;
44 }
45
46 snGradSchemes
47 {
48 default corrected;
49 }
50
51 fluxRequired
52 {
53 default no;
54 p_rgh;
55 pcorr;
56 alpha.water;
57 }
58
59
60 // ************************************************************************* //

2.3.8

fvSolution PISO interFoam


PISO
nAlphaSubCycles cAlphanAlphaSubCycles
30
2

cAlpha 0 1
1 1

2.3.9

tee

nAlphaSubCycles nAlphaCorr
30

OpenFOAM interFoam

OpenFOAM-3.0.1
64

cd $FOAM_RUN/tutorials/multiphase/interFoam/laminar/damBreak
interFoam | tee log

31 log

2.3.10

alpha.water
2.22

2.3.11

OpenFOAM
damBreak

cd $FOAM_RUN/tutorials/multiphase/interFoam/laminar
mkdir damBreakFine
cp -r damBreak/0 damBreakFine
cp -r damBreak/system damBreakFine
cp -r damBreak/constant damBreakFine

blockMeshDict blocks

blocks
(
hex (0 1 5 4 12 13 17 16) (46 10 1) simpleGrading (1 1 1)
hex (2 3 7 6 14 15 19 18) (40 10 1) simpleGrading (1 1 1)
hex (4 5 9 8 16 17 21 20) (46 76 1) simpleGrading (1 2 1)
hex (5 6 10 9 17 18 22 21) (4 76 1) simpleGrading (1 2 1)
hex (6 7 11 10 18 19 23 22) (40 76 1) simpleGrading (1 2 1)
);

31

OpenFOAM-3.0.1
65

2.22

OpenFOAM-3.0.1
66

3 46 10 1
1 2 1

damBreak 0
alpha.wateralpha.water nonuniform
U p_rgh uniform
= 1 =
0 mapFields 0 < < 1
setFields setFields 0/alpha.water.org
0/alpha.water

cd $FOAM_RUN/tutorials/multiphase/interFoam/laminar/damBreakFine
cp -r 0/alpha.water.org 0/alpha.water
setFields

OpenFOAM

decomposePar system decomposePar


decomposeParDict
$FOAM_UTILITIES/parallelProcessing/
decomposePar
numberOfSubdomains

simple simpleCoeffs
xy z n
2 3 z 1n
x y
numberOfSubdomains = numberOfSubdomains
32 x y
delta 0.001
4 numberOfSubdomains
4 n = (2, 2, 1) decomposePar

3.4
openMPI MPI

mpirun np 4 interFoam parallel > log &

3.4.2

log

OpenFOAM scotch
32

OpenFOAM-3.0.1
67

2.23 2

2.3.12

reconstructPar

2.24

paraFoam

paraFoam case processor1

processor1 ParaView 2.23 simple


1

OpenFOAM-3.0.1
68

2.24

OpenFOAM-3.0.1
69

OpenFOAM applications C++OpenFOAM


deb
OpenFOAM

solvers


utilities

OpenFOAM

3.1 OpenFOAM

OpenFOAM C++OpenFOAM

C++ OpenFOAM 33

3.1.1

33 OpenFOAM Henry Weller OpenFOAM C++


http://mp.weixin.qq.com/s?__biz=MzA4OTYxNzE4NQ==&mid=401404147&idx=1&sn=76b25115c6a6a8ec5da989
8b52df763c#rd

OpenFOAM-3.0.1
70

U| U |

bitsbytesintegers

3.1.2 C++

C++class
U
U | U | mag(U)
vectorField U vectorField

vectorField vector Field C++


Field<Type><Type>

3.1.3

OpenFOAM OpenFOAM


+ =

solve
(
fvm::ddt(rho, U)
+ fvm::div(phi, U)
- fvm::laplacian(mu, U)
==
- fvc::grad(p)
);

OpenFOAM
OpenFOAM
FORTRAN-90

C++ C++

OpenFOAM-3.0.1
71


OpenFOAM C++

3.1.4

C++
C++

OpenFOAM

doxygen $WM_PROJECT_DIR/doc/Doxygen/html/index.html

3.2

OpenFOAM
Unix/Linux UNIXmake
OpenFOAM wmake make
wamke OpenFOAM wmake
C++
3.1
.C nc nc.C
.so nc.so
nc newApp.C nc.C

3.2.1 .H

.H nc.H
.C
.H
.C
.h

# include

# include otherHeader.H


OpenFOAM createFields.H

OpenFOAM-3.0.1
72

3.1

OpenFOAM wmake

CC++JAVA

lexyaccIDL MOC

makeshksh cshlexcc

ApolloSUNSGIHP (HPUX)Compaq (DEC)


IBM (AIX)CrayArdentStardentPC LinuxPPC LinuxNECSX4Fujitsu
VP1000

OpenFOAM-3.0.1
73

3.2.2 wmake

OpenFOAM
.C newApp newApp
newApp.C 3.2.

3.2

Make options files

3.2.2.1

wmake -I

1. $WM_PROJECT_DIR/src/OpenFOAM/InInclude

2. InInclude newApp/InInclude

3. newApp

4. $WM_PROJECT_DIR/wmake/rules/-$WM_ARCH
/usr/X11/include $(MPICH_ARCH_PATH)/include ;

5. Make/options -I

Make/options

EXE INC = \
-I<directoryPath1> \

OpenFOAM-3.0.1
74

-I<directoryPath2> \
... \
-I<directoryPathN>
-I EXE_INC
\ \

3.2.2.2

wmake -L

1. $FOAM_LIBBIN

2. $WM_DIR/rules/$WM_ARCH ./usr/X11/lib
$(MPICH_ARCH_PATH)/lib

3. Make/options

-l lib .so libnew.so


-lnewwmake

1. $FOAM_LIBBIN libOpenFOAM.so

2. $WM_DIR/rules/$WM_ARCH ./usr/X11/lib
$(MPICH_ARCH_PATH)/lib

3. Make/options

Make/options

EXE LIBS = \
-L<libraryPath1> \
-L<libraryPath2> \
... \
-L<libraryPathN> \
-l<library1> \
-l<library2> \
... \
-l<libraryN>

-L -l

OpenFOAM-3.0.1
75

3.2.2.3

.C

Make/files .C

newApp.C
Make/files EXE =
newAppOpenFOAM
$FOAM_APPBIN
$FOAM_USER_APPBIN
$WM_PROJECT_USER_DIR
OpenFOAM
Make/files
$FOAM_USER_APPBIN Make/files

newApp.C

EXE = $(FOAM_USER_APPBIN)/newAPP

3.2.2.4 wmake

wmake

wmake <optionalArguments> <optionalDirectory>

<optionalDirectory>
<optionalDirectory>
<optionalArguments>
<optionalArguments> 3.1


lib
libso
libo
jar JAVA
exe

3.1wmake

OpenFOAM-3.0.1
76

3.2.2.5 wmake

3.2 wmake

$WM_PROJECT_INST_DIR $HOME/OpenFOAM
$WM_PROJECT
$WM_PROJECT_VERSION 2.3.0
$WM_PROJECT_DIR
$HOME/OpenFOAM/OpenFOAM-2.3.0
$WM_PROJECT_USER_DIR
$HOME/OpenFOAM/${USER}-2.3.0

$WM_ARCH LinuxSunOS
$WM_ARCH_OPTION 32 64
$WM_COMPILER Gcc43 gcc 4.5+ICC - Intel
$WM_COMPILER_DIR
$WM_COMPILER_BIN $WM_COMMPILER_BIN/bin
$WM_COMPILER_LIB $WM_COMPILER_BIN/lib
$WM_DIR wmake
$WM_MPLIB LAMMPIMPICHPVM
$WM_OPTIONS = $WM_ARCH$WM_COMPILER...$WM COMPILE
OPTION$WM MPLIB linuxGcc3OptMPICH
$WM PRECISION OPTION SP DP

3.2wmake 34

3.2.3 wclean rmdepall

wmake .deb
Make/$WM_OPTIONS
newApp.dep
wclean

wclean <optionalArguments> <optionalDirectory>

wmake <optionalDirectory>
wclean<optionalDirectory>

34

OpenFOAM-3.0.1
77

Make <optionalArguments>
<optionalArguments> lib inInclude
rmdepall.dep OpenFOAM

3.2.4 pisoFoam

pisoFoam $FOAM_APP/solvers/incompressible/pisoFoam
pisoFoam.C

/*---------------------------------------------------------------------------------------------------------*\
====== |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
----------------------------------------------------------------------------------------------------/----------
License
This file is part of OpenFOAM.

OpenFOAM is free software: you can redistribute it and/or modify it


under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

OpenFOAM is distributed in the hope that it will be useful, but WITHOUT


ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.

You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.

Application
pisoFoam

Description
Transient solver for incompressible flow.

Turbulence modelling is generic, i.e. laminar, RAS or LES may be selected.

\*---------------------------------------------------------------------------*/

#include "fvCFD.H"
#include "singlePhaseTransportModel.H"
#include "turbulenceModel.H"

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

int main(int argc, char *argv[])


{
#include "setRootCase.H"

#include "createTime.H"
#include "createMesh.H"
#include "createFields.H"
#include "initContinuityErrs.H"

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

Info<< "\nStarting time loop\n" << endl;

while (runTime.loop())
{
Info<< "Time = " << runTime.timeName() << nl << endl;

#include "readPISOControls.H"
#include "CourantNo.H"

// Pressure-velocity PISO corrector


{
#include "UEqn.H"
// --- PISO loop
While (piso.correct())

OpenFOAM-3.0.1
78

#include "pEqn.H"
}

laminarTransport.correct();
turbulence->correct();

runTime.write();

Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"


<< " ClockTime = " << runTime.elapsedClockTime() << " s"
<< nl << endl;
}

Info<< "End\n" << endl;

return 0;
}

// ************************************************************************* //

///**/35
# include # include fvCFD.H pisoFoam.C
fvCFD.H
pisoFoam incompressibleRASModels, incompressibleLESModels incompressibleT-
ransportModels EXE_INC = - I ...
EXE_LIBS = - l ...Make/options

1 EXE_INC = \
2 -I$(LIB_SRC)/turbulenceModels/incompressible/turbulenceModel \
3 -I$(LIB_SRC)/transportModels \
4 -I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
5 -I$(LIB_SRC)/finiteVolume/lnInclude
6
7 EXE_LIBS = \
8 -lincompressibleTurbulenceModel \
9 -lincompressibleRASModels \
10 -lincompressibleLESModels \
11 -lincompressibleTransportModels \
12 -lfiniteVolume \
13 -lmeshTools

pisoFoam pisoFoam.C $FOAM_APPBIN


Make/Files

1 pisoFoam.C
2
3 EXE = $(FOAM_APPBIN)/pisoFoam

3.2.2.3 $FOAM_USER_DIR
pisoFoam

pisoFoam $FOAM_RUN

cd $FOAM RUN
cp -r $FOAM SOLVERS/incompressible/pisoFoam .
cd pisoFoam

Make/files

35

OpenFOAM-3.0.1
79

pisoFoam.C

EXE = $(FOAM_USER_APPBIN)/pisoFoam

wmake

wmake

Making dependency list for source file pisoFoam.C


SOURCE DIR=.
SOURCE=pisoFoam.C ;
g++ -DFOAM EXCEPTION -Dlinux -DlinuxOptMPICH
-DscalarMachine -DoptSolvers -DPARALLEL -DUSEMPI -Wall -O2 -DNoRepository
-ftemplate-depth-17 -I.../OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude
-IlnInclude
-I.
......
-lmpich -L/usr/X11/lib -lm
-o .../OpenFOAM/OpenFOAM-2.3.0/applications/bin/linuxOptMPICH/pisoFoam

make: Nothing to be done for `allFiles'.


make: `Make/linuxOptMPICH/dependencies' is up to date.

make: `.../OpenFOAM/OpenFOAM-2.3.0/applications/bin/linuxOptMPICH/pisoFoam'
is up to date.

wclean

wmake

3.2.5

OpenFOAM OpenFOAM
$WM_PROJECT_DIR/etc/controlDict
$HOME
$HOME/.OpenFOAM/3.0.1/controlDict
foamDeBugSwitches
controlDict 1 OpenFOAM controlDict dimensionSet
1 3.3
3.3
FileModificationSkew OpenFOAM

OpenFOAM

OpenFOAM-3.0.1
80

fileModificationSkew

DebugSwitches

level OpenFOAM 3
012
lduMatrix 3
012

OptimisationSwitches

fileModificationSkew OpenFOAM


fileModificationChecking timeStamp inotify

commsType nonBlockingscheduled
blocking
floatTransfer 1
036
nProcsSimpleSum simple
hierarchical 16

3.3

3.2.6

new
new
new

OpenFOAM
controlDict
new1 new2 controlDict

libs
(
libnew1.so
libnew2.so
);

36

OpenFOAM-3.0.1
81

3.3

4.1 <caseDir>
-help

blockMesh help

Usage: blockMesh [-region region name] [-case dir] [-blockTopology]


[-help] [-doc] [-srcDoc]

-case<caseDir>

Unix/Linux

log

blockMesh > log &

3.4

OpenFOAM
cpu

MPI openMPI

3.4.1

decomposePar
decomposeParDict system
interFoam/damBreak decomposeParDict

17
18 numberOfSubdomains 4;
19
20 method simple;
21
22 simpleCoeffs
23 {
24 n ( 2 2 1 );
25 delta 0.001;
26 }
27

OpenFOAM-3.0.1
82

28 hierarchicalCoeffs
29 {
30 n ( 1 1 1 );
31 delta 0.001;
32 order xyz;
33 }
34
35 manualCoeffs
36 {
37 dataFile "";
38 }
39
40 distributed no;
41
42 roots ( );
43
44
45 // ************************************************************************* //

4 method

simple x y

hierarchical
x y

scotchscotch
37
processorweights
strategy scotch
$FOAM_SRC/decompositionMethods/decompositionMethods/scotchDecomp/scotchDe
comp.C

manual38

method39 decomposeParDict <met


-hod>-Coeffs 3.4 decomposeParDict decomposePar

decomposePar

processorN,
N 01. constant/ -
ployMesh

37 http://www.cfd-online.com/Forums/openfoam-solving/81051-large-case-parallel-efficiency.html

38 setFields
39 metis scotch metis

OpenFOAM-3.0.1
83

numberOfSubdomains N
method simple
hierarchical
scotch
metis
manual

simpleCoeffs

n x, y, z ( , , )

delta 0.001

hierarchicalCoeffs

n x, y, z ( , , )

delta 0.001
order xyz/yzx/xzy

scotchCoeffs

processorWeights (<wt1><wt2>)
<wt1>


strategy b

manualCoeffs

dataFile <filename>

3.4.3

distributed yes/no

roots (<rt1><rtN>)
<rt1> 1

3.4decompositionDict

OpenFOAM-3.0.1
84

3.4.2

OpenFOAM MPI
openMPI
openMPI

<machines>
<machines> openMPI
/etc/hosts
cpu = n n
openMPI
aaa openMPI aaabbb
ccc
<machines>

aaa
bbb cpu=2
ccc

mpirun --hostfile <machines> -np <nProcs> <foamExec> <otherArgs> -parallel > log &

<nProcs><foamExec> icoFoamlog
icoFoam 4 machines cavity
$FOAM_RUN/tutorials/incompressible/icoFoam

mpirun --hostfile machines -np 4 icoFoam -parallel > log &

3.4.3

decomposePar distributed roots


distributed

distributed yes;

roots <root0><root1>

roots
<nRoots>
(

OpenFOAM-3.0.1
85

"<root0>"
"<root1>"
...
);
<nRoots>
decomposeParDict
processorN system constant
polyMesh polyMesh constant

3.4.4

3.4.4.1

reconstructPar

reconstructPar

3.4.4.2

6.1 paraFoam

3.5

OpenFOAM $FOAM_SOLVERS sol

icoFoam incompressible flow 3.5


OpenFOAM

OpenFOAM-3.0.1
86

basic

laplacianFoam
potentialFoam NS
scalarTransportFoa
m

incompressible

adjointShapeOptimi
zationFoam Implementation of a continuous adjoint for
topology optimization of ducted flows
boundaryFoam

icoFoam
nonNewtonianIcoFo
am
pimpleFoam PIMPLE
pisoFoam PISO
shallowWaterFoam
simpleFoam

rhoCentralDyMFoa Kurganov&Tadmor
m
rhoCentralFoam Kurganov&Tadmor

rhoPimpleFoam PIMPLE
rhoPorousSimpleFoa RANS
m
rhoSimplecFoam SIMPLEC RANS

rhoSimpleFoam SIMPLE RANS

sonicDyMFoam
sonicFoam
sonicLiquidFoam

OpenFOAM-3.0.1
87

multiphase

cavitatingDyMFoam /

cavitatingFoam /

compressibleDyMIn VOF
terFoam
compressibleInterFo VOF
am
compressibleMultip VOF
haseInterFoam MRF
driftFluxFoam
interFoam VOF
LTSMRF
interMixingFoam VOF

interPhaseChangeFo VOF
am
interPhaseChangeDy VOF
MFoam
MultiphaseInterFoa VOF
m MRF
multiphaseEulerFoa
m
multiphaseInterFoa VOF
m
potentialFreeSurface zeta NS
Foam
reactingEulerFoam twoPhaseEulerFoam
twoLiquidMixingFo
am
twoPhaseEulerFoam

DNS

OpenFOAM-3.0.1
88

dnsFoam 40

combustion

chemFoam 41

coldEngineFoam
engineFoam
fireFoam
PDRFoam
reactingFoam LTS
rhoReactingBuoyant
Foam
rhoReactingFoam
xiFoam /

heatTransfer

buoyantBoussinesqP
impleFoam
buoyantBoussinesqS
impleFoam
buoyantPimpleFoam
buoyantSimpleFoam
chtMultiRegionFoa heatConductionFoam buoyantFoam
m
chtMultiRegionSimp chtMultiRegionFoam
leFoam
thermoFoam

lagrangian42

coalChemistryFoam

DPMFoam

40 2 n
41 chemkin
42

OpenFOAM-3.0.1
89


icoUncoupledKinem
aticParcelFoam
reactingParcelFilmF PIMPLE
oam
reactingParcelFoam PIMPLE
fvOptions

sprayFoam PIMPLE
uncoupledKinematic
ParcelFoam

discreteMethods

mdEquilibrationFoa
m
mdFoam

DSMC discreteMethods

dsmcFoam 3D DSMC

electromagnetics

electrostaticFoam
magneticFoam
mhdFoam MHD

stressAnalysis

solidDisplacementF
oam
solidEquilibriumDis
placementFoam

financialFoam Black-Scholes

3.5

OpenFOAM-3.0.1
90

3.6

OpenFOAM $FOAM_UTILITIES util


ideasToFoam IDEAS
OpenFOAM 3.6 OpenFOAM

applyBoundaryLaye
r
applyWallFunctionB OpenFOAM RAS OpenFOAM-1.6
oundaryConditions
boxTurb 43
changeDictionary polyMe -
sh/boundary
createExternalCoupl externalCoupled
edPatchGeometry
dsmcInitialise system/dsmcInitialise dsmcFoam

engineSwirl
faceAgglomerate

foamUpgradeCyclic cyclics
s
foamUpgradeFvSolu system/fvSolution solvers
tion
mapFields


mdInitialise
setFields
viewFactorsGen agglomerated

wallFunctionTable

blockMesh

43 2

OpenFOAM-3.0.1
91

extrudeMesh patch patch



extrude2DMesh 2D facespointscellsboundary
3D
extrudeToRegionMe faceZones
sh
foamyHexMesh Conformal Voronoi
foamyHexMeshBac foamyHexMesh distance -
kgroundMesh Surface
foamyHexMeshSurf
aceSimplify
foamyQuadmesh Conformal Voronoi
snappyHexMesh

ansysToFoam I-DEAS ANSYS OpenFOAM



cfx4ToFoam CFX OpenFOAM
datToFoam datToFoam(.dat)
blockMesh
fluent3DMeshToFoa fluent OpenFOAM
m
fluentMeshToFoam fluent2D OpenFOAM
foamMeshToFluent OpenFOAM fluent
foamToStarMesh OpenFOAM PROSTAR
foamToSurface OpenFOAM
gambitToFoam gambit OpenFOAM
gmshToFoam .msh OpenFOAM
ideasUnvToFoam .I-Deas OpenFOAM
kivaToFoam KIVA OpenFOAM
mshToFoam Adventurede .msh OpenFOAM

netgenNeutralToFoa Netgen 4.4 .msh OpenFOAM
m
plot3DToFoam Plot3d OpenFOAM
sammToFoam STAR-CD(v3) SAMM Open -FOAM

star3ToFoam STAR-CD(v3) PROSTAR Open -FOAM

star4ToFoam STAR-CD(v4) PROSTAR Open -FOAM

tetgenToFoam tetgen .ele, .node, .face OpenFOAM

OpenFOAM-3.0.1
92


vtkUnstructuredToF paraview .vtk Open -FOAM
oam
writeMeshObj debug OBJ
paraview

attachMesh
autoPatch patch
checkMesh
createBaffles mergeOrSplitBaffles

createPatch patch faceSet
patch
deformedGeom
flattenMesh 2D
insideCells
mergeMeshes
mergeOrSplitBaffles
mirrorMesh
moveDynamicmesh
moveEngineMesh
moveMesh
objToVtk obj vtk
orentFaceZone
polyDualMesh
refineMesh
renumberMesh

rotateMesh n1 n2
setSet cell/face/point/set
setsToZones pointSets/faceSets/cellSets pointZones/faceZones
-/cellZones
singleCellMesh
singleCellFvMesh
singleMesh

paraview
splitMesh attachDetach
splitMeshRegions
stitchMesh
subsetMesh cellSet
topoSet cellSets/faceSets/pointSets

OpenFOAM-3.0.1
93

transformPoints
zipUpMesh

autoRefineMesh
collapseEdges
combinePatchFaces
4

modifyMesh
PDRMesh PDR
refineHexMesh 2*2*2
refinementLevel
refineWallLayer patch
removeFaces
selectCells
splitCells

ensightFoamReader OpenFOAM EnSight

foamDataToFluent OpenFOAM Fluent


foamToEnsight OpenFOAM EnSight
foamToEnsightParts OpenFOAM EnSight
patch Ensight
foamToGMV OpenFOAM GMV
foamToTecplot360 Tecplot
FoamToTetDualMes polyMesh tetDualMesh
h
foamToVTK VTK
smapToFoam STAR-CD SMAP OpenFOAM

Co phi volScalarField
enstrophy
flowType
lambda2 2

OpenFOAM-3.0.1
94


Mach
Pe phi Pe surfaceScalarField
Q Q
streamFunction
uprime 2/3
vorticity

stressComponents sigma

pPrime2 pPrime2( )2

wallGradU
wallHeatFlux patch volScalarField

wallShearStress RAS
yPlus yPlusRASLES

createTurbulenceFie
lds
R R

patch

patchAverage patch
patchIntegrate patch

particelTracks VTK
steadyParticleTracks VTK

OpenFOAM-3.0.1
95

probeLocations
sample

dsmcFieldsCalc DSMC extensive fields


intensive
fields
engineCompRatio

execFlowFunctionO controlDict system
bjects function
foamCalc
foamListTimes
pdfPlot
postChannel
ptot
temporalInterpolate
wdot wdot PDRFoam
writeCellCentres volScalarFields

surfaceAdd
surfaceAutoPatch autoPatch
surfaceBooleanFeat boolean extendedFeature
ures -EdgeMesh
surfaceCheck
surfaceClean

surfaceCoarsen bunnylod
surfaceConvert
surfaceFeatureExtra edgeMesh
ct
surfaceFeatureConv edgeMesh
ert
surfaceFind
surfaceHookUp
surfaceInertia
surfaceLambdaMuS lambda/mu lambda
mooth mu 0
surfaceMeshConvert
surfaceMeshConvert

OpenFOAM-3.0.1
96

Testing
surfaceMeshExport surfMesh

surfaceMeshImport surfMesh

surfaceMeshTriangu polyMesh
late polyMesh patch

surfaceMeshInfo
surfaceOrient
-inside
surfacePointMerge
surfaceRedistributeP
ar
surfaceRefineRedGr red (A review
een of a posteriori error estimation and adaptive mesh refinement
techniques, Wiley-Teubner, 1996)
surfaceSplitByPatch patch
surfaceSplitByTopol
ogy
surfaceSplitNonMan borderEdge 4
ifolds borderPoint borderEdge
borderLineborderEdges
surfaceSubset subsetMesh

surfaceToPatch
boundaryMesh
surfaceTransformPoi transformPoints
nts

decomposePar OpenFOAM
redistributePar decomposeParDict

reconstructParMesh
redistributePar decomposeParDict

adiabaticFlameT

OpenFOAM-3.0.1
97

chemkinToFoam CHEMKIN3 OpenFOAM


equilibriumCO
equilibriumFlameT

mixtureAdiabaticFla
meT

expandDictionary
foamDebugSwitches
foamFormatConvert controlDict

foamHelp
foamInfoExec
patchSummary

3.5

3.7

OpenFOAM $FOAM_LIB/$WM_OPTIONS lib


lib
incompressibleTransportModels

44 3.7

3.83.93.10

OpenFOAM OpenFOAM

algorithms
containers
db
dimensionedTypes dimensioned<Type>
dimensionSet dimensionSet
fields
global

44

OpenFOAM-3.0.1
98

graph
interpolations
matrices
memory
meshes
primitives

finiteVolume

cfdTools CFD
fields patch
finiteVolume
fvMatrices
fvMesh
interpolation
surfaceMesh
volMesh

cloudFunctionObjec
ts
fieldFunctionObject
s
foamCalcFunctions foamCalc
forces
FVFuntionObjects fvcDivfvcGrad
jobControl
postCalc
sampling
systemCall
utilityFunctionObjec
ts

autoMesh snappyHexMesh
blockMesh blockMesh
dynamicMesh
dynamecFvMesh
edgeMesh
fvMotionSolvers
ODE

OpenFOAM-3.0.1
99

meshTools OpenFOAM
surfMesh
triSurface
topoChangerFvMes
h

coalCombustion
distributionModels
dsmc
lagrangian
lagrangianIntermedi
ate
potential
molecule
molecularMeasurem
ents
solidParticle
spray
turbulence

conversion
decompositionMeth
ods
engine
fileFormats
genericFvPatchField patch
MGridGenGAMGA MGridGen agglomeration
gglomeration
pairPatchAgglomera patch agglomeration
tion
OSspecific
randomProcesses

decompose
distributed
metisDecomp Metis
reconstruct

OpenFOAM-3.0.1
100

scotchDecomp Scotch
ptscotchDecomp PTScotch

3.7

basicThermophysicalModels

hePsiThermo
heRhoThermo
pureMixture

reactionThermophysicalModels

psiReactionThermo
psiuReactionThermo
rhoReactionThermo
heheupsiReactionTh
ermo
homogeneousMixtur b
e
inhomogeneousMixt b
ure
veryInhomogeneous b
Mixture
basicMultiCompone
ntMixture
multiComponentMi
xture
reactingMixture
egrMixture
singleStepReacting
Mixture

radiationModels

P1 P1
fvDOM
opaqueSolid 0 adsorptionEmissionModel
scatterModel
viewFactor

laminarFlameSpeedModels

OpenFOAM-3.0.1
101

constant
GuldersLaminarFla Gulder
meSpeed
GuldersEGRLamina Gulder
rFlameSpeed
RaviPetersen Ravi Peterson

barotropicCompressibilityModels

linear
Chung Chung
Wallis Wallis

specie

adiabaticPerfectFlui
d
icoPolynomial
perfectFluid
incomprehensiblePe
rfactFluid
rhoConst
eConstThermo e s
hConstThermo e h
hPolynomialThermo h
s
janafThermo JANAF h s
specieThermo , , s
constTransport
polynomialTranspor
t
sutherlandTransport sutherland

NSRDSfunctions NSRDS

APIfunctions

chemistryModel

OpenFOAM-3.0.1
102

chemistriSolver

liquidProperties
liquidMixtureProper
ties
basicSolidThermo
hExponentialTherm
o
SLGThermo
solidChemistryMod
el
solidProperties
solidMixtureProperti
es
solidSpecie
solidThermo

3.8

RAS incomprehensibleRASModels

laminar
kEpsilon
kOmega
kOmegaSST
RNGkEpsilon
NonlinearKEShih Shih
LienCubicKE Lien
qZeta q
kklOmega
LaunderSharmaKE Lien-Sharma
LienCubicKELowRe Lien Cubic
LamBremhorstKE Lam-Bremhorst
LienLeschzinerLowR Lien-Leschziner
e
LRR Launder-Reece-Rodi RSTM
LaunderGibsonRSTM Launder & GibsonRST
realizableKE
SpalartAllmaras Spalart & Allmaras
v2f Lien&Kalitzin v2f

OpenFOAM-3.0.1
103

RAS comprehensibleRASModels

laminar
kEpsilon
kOmegaSST
RNGkEpsilon
launderSharmaKE Launder & Sharma
LRR Launder & Reece&Rodi RST
LaunderGibsonRSTM Launder & Gibson RST
realizableKE
SpalartAllmaras Spalart & Allmaras
v2f Lien & Kalitzin v2f

LES LESfilters

laplaceFilter laplace
simpleFilter Simple
anisotropicFilter Anisotropic

LES deltas LESdeltas

PrandtlDelta delta
cubeRootVolDelta delta
maxDeltaxyz xyz
smoothDelta delta

LES incomprehensibleLESModels

Smagorinsky Smagorinsky
Smagorinsky2 3D Smagorinsky
homogenousDynSma Smagorinsky
gorinsky
dynLagrangian
scaleSimilarity Scale
mixedSmagorinsky Smagorinsky/scale
homogenousDynOne
EqEddy
laminar
kOmegaSSTSAS SAS
oneEqEddy
dynOneEqEddy
spectEddyVisc

OpenFOAM-3.0.1
104

LRDDiffStress LRR
DeardorffDiffStress Deardorff
SpalartAllmaras Spalart & Allmaras
SpalartAllmarasDDE Spalart & Allmaras DDES
S
SpalartAllmarasIDDE Spalart & Allmaras DDES
S
vanDriestDelta LES delta

LES compressibleLESModels

Smagorinsky Smagorinsky
oneEqEddy
lowReOneEqEddy
homogenousDynOne
EqEddy
DeardorffDiffStress Deardorff
SpalartAllmaras Spalart & Allmaras
vanDriestDelta LES delta

3.9 RASLES

incompressibleTransportModels

Newtonian
crossPowerLaw Cross
BirdCarreau Bird-Carreau
HerschelBulkley Herschel-Bulkley
powerLaw
interfaceProperties

interfaceProperties
twoPhaseProperties
surfaceFilmModels

3.10

OpenFOAM-3.0.1
105

OpenFOAM

OpenFOAM
cavityCavity
run
$HOME/OpenFOAM/${USER}-2.3.0 $FOAM_RUN
$HOME/OpenFOAM/${USER}-2.3.0/run run

OpenFOAM $FOAM_TUTORIAL -
S tut

4.1 OpenFOAM

OpenFOAM 4.1

constant transportProperties
constant polyMesh

system controlDict
/fvSchemes
fvSolution

Time
OpenFOAM
OpenFOAM
4.3 0
0 0.00000e+00
cavity 0/U 0/p

OpenFOAM-3.0.1
106

4.1

4.2

OpenFOAM OpenFOAM

OpenFOAM
OpenFOAM

4.2.1

C++

45

// OpenFOAM

/**/

4.2.2

OpenFOAM keywords

45 107 4.2.5

OpenFOAM-3.0.1
107

I/O

<keyword> <dataEntry1> <dataEntryN>;

<keyword> <dataEntry>

OpenFOAM

{ }

<diationaryName>
{
keyword entries
}

4.2.3

OpenFOAM FoamFile 4.1


entry

version 2.0
format ascii/binary
location
class OpenFOAM dictionary
volVectorField
object controlDict

4.1

class
OpenFOAM
dictionary class
dictionary46

fvSolution solvers PISOsolvers
p U PISO

46 vol<type>Field

OpenFOAM-3.0.1
108

17
18 solvers
19 {
20 p
21 {
22 solver PCG;
23 preconditioner DIC;
24 tolerance 1e-06;
25 relTol 0;
26 }
27
28 U
29 {
30 solver smoothSolver;
31 smoother symGaussSeidel;
32 tolerance 1e-05;
33 relTol 0;
34 }
35 }
36
37 PISO
38 {
39 nCorrectors 2;
40 nNonOrthogonalCorrectors 0;
41 pRefCell 0;
42 pRefValue 0;
43 }
44
45
46 // ************************************************************************* //

4.2.4

OpenFOAM

<listName>
(
... entries ...
);

<n>

<listName>
<n>
(
... entries ...
);

<listName>
List<scalar>
<n> // optional
(
... entries ...

OpenFOAM-3.0.1
109

);

list<scalar><scalar> scalardouble

4.2.5 Scalar Vector Tensor

scalar vector 3 1 vectorSpace


3(1.0, 1.1, 1.2)

(1.0 1.1 1.2)

OpenFOAM tensor 3 2 9

(
100
010
001
)

OpenFOAM

( 1 0 0 0 1 0 0 0 1)

4.2.6

kg, mPa
+=
OpenFOAM
dimensionSet
7

[0 2 -1 0 0 0 0 ]

OpenFOAM-3.0.1
110

SI USCS
1 kg lbm
2 m ft
3 s s
4 K
5 kgmol lbmol
6 A A
7 cd cd

4.2 SI USCS

[ ] 4.2. SI USCS
OpenFOAM
OpenFOAM R
OpenFOAM $WM_PROJECT_DIR/etc/controlDict controlDict
DimensionedConstant SI USCS

4.2.7

dimensionedScalar

nu nu [0 2 -1 0 0 0 0] 1;

nu nu word word
dimensionSet nu

4.2.8

OpenFOAM
OpenFOAM 4.3

[1 1 -2 0 0 0 0]
uniform (1 0 0)
4.2.8

4.3

dimensions

OpenFOAM-3.0.1
111

internalField uniform <entry>;

internalField nonuniform <Lists>;

boundaryField patch polyMesh boundary


patch patch type

5.3 OpenFOAM 5.4

17 dimensions [0 1 -1 0 0 0 0];
18
19 internalField uniform (0 0 0);
20
21 boundaryField
22 {
23 movingWall
24 {
25 type fixedValue;
26 value uniform (1 0 0);
27 }
28
29 fixedWalls
30 {
31 type fixedValue;
32 value uniform (0 0 0);
33 }
34
35 frontAndBack
36 {
37 type empty;
38 }
39 }
40
41 // ************************************************************************* //

4.2.9

OpenFOAM
# $
OpenFOAM

#include <fileName> (#includeIfPresent <fileName>) <fileName>

#inputMode merge

overwrite
merge

#remove <keywordEntry>

#codeStream C++

OpenFOAM-3.0.1
112

4.2.10 #include #inputMode

initialConditions

pressure 1e+5;
#inputMode merge

#include "initialConditions"
internalField uniform $pressure;
boundaryField
{
patch1
{
type fixedValue;
value $internalField;
}
}

RASProperties

4.2.11 #codeStream

#codeStream C++

code OStream& os const dicti-


onary& dict

#include C++
codeInclude

Make/options EXE_LNC
codeOptions

codeLibs Make/options LIB_LIBS

#{#}

OpenFOAM-3.0.1
113

#codeStream controlDict

startTime 0;
endTime 100;
...
writeInterval #codeStream
{
code
#{
scalar start = readScalar(dict.lookup("startTime"));
scalar end = readScalar(dict.lookup("endTime"));
label nDumps = 5;
os << ((end - start)/nDumps);
#};
};

4.3

OpenFOAM OpenFOAM

controlDict 4.4
controlDict writeInterval 4.4
+

startFrom
-firstTime47
-startTime startTime
-latestTime
startTime startFrom startTime

stopAt
-endTime endTime
-writeNow
-noWriteNow

-nextWrite writeControl

endTime stopAt endTimeendTime

47 -

OpenFOAM-3.0.1
114


deltaT

writeControl
-timeStep writeInterval
-runTime writeInterval
-adjustableRunTime writeInterval
writeInterval

-cpuTime writeIntervalCPU
-clockTime writeInterval

writeInterval writeControl
purgeWrite
5s 1s
purgeWrite 2 6s7s
8s9s
6s7s
purgeWrite 0
purgeWrite 1
writeFormat
-ascii ASCII writePrecision
-binary

writePrecision writeFormat 6
-uncompressed
-compressed gzip

timeFormat
-fixed m. dddddd d timePrecision
-scientific m. dddddd xxd timePrecision
-general scientific 4
timePrecision

timePrecision timeFormat 6

graphFormat
-raw ASCII
-gnuplot gnuplot
-xmgr Grace/xmgr
-jplot jPlot

OpenFOAM-3.0.1
115

adjustTimeStep OpenFOAM
yes no
maxCo 0.5

runTimeModifiable yes no OpenFOAM


controlDict

libs $LD_LIBR
-ARY_PATH ( libUser1.so
liUser2.so)
functions probes
$FOAM_TOTURIALS

4.4 controlDict

controlDict

17
18 application icoFoam;
19
20 startFrom startTime;
21
22 startTime 0;
23
24 stopAt endTime;
25
26 endTime 0.5;
27
28 deltaT 0.005;
29
30 writeControl timeStep;
31
32 writeInterval 20;
33
34 purgeWrite 0;
35
36 writeFormat ascii;
37
38 writePrecision 6;
39
40 writeCompression off;
41
42 timeFormat general;
43
44 timePrecision 6;
45
46 runTimeModifiable true;
47
48
49 // ************************************************************************* //

OpenFOAM-3.0.1
116

4.4

system fvSchemes
fvSchemes
fvScheme OpenFOAM

OpenFOAM
OpenFOAM


fvSchemes 4.5
gradSchemes grad(p)p.
fvSchemes

interpolationSchemes
snGradSchemes
gradSchemes
divSchemes
laplacianSchemes 2
timeScheme 2

2

fluxRequired

4.5 fvScheme

17
18 ddtSchemes
19 {
20 default Euler;
21 }
22
23 gradSchemes
24 {
25 default Gauss linear;
26 grad(p) Gauss linear;
27 }
28
29 divSchemes
30 {
31 default none;
32 div(phi,U) Gauss linear;
33 }
34
35 laplacianSchemes
36 {
37 default Gauss linear orthogonal;
38 }
39
40 interpolationSchemes
41 {
42 default linear;
43 }
44

OpenFOAM-3.0.1
117

45 snGradSchemes
46 {
47 default orthogonal;
48 }
49
50 fluxRequired
51 {
52 default no;
53 p;
54 }
55
56
57 // ************************************************************************* //

fvSchemes

Schemes
default grad(p)p

fluxRequired p

Schemes default
gradScheme default pU

default pU

default none
default none default
none
4.5

4.4.1 (interpolationSchemes)

interpolationSchemes
OpenFOAM 4.6
48 4.4.5

4.4.5 UMIST OpenFOAM


4.6
linear

default linear


phi surfaceScalarField

NVD TVD (blended) TVD
phi upwind

48

OpenFOAM-3.0.1
118

default upwind phi

TVD NVD 0 1=1 TVD


=0 =1
=1 limitedLinear

default limitedLinear 1.0 phi

4.4.1.1

limited vanLeer -2
3

default limitedVanLeer -2.0 3.0

01
01 vanLeer 01

default vanLeer01

limitedLinearvanLeerGammalimitedCubicMUSCL
SuperBee

4.4.1.2

V
limitedLinearV limitedLinear V limitedLinearV
vanLeerVGammaVlimitedCubicV SFCDV

OpenFOAM-3.0.1
119

linear
cubicCorrection
midpoint

upwind
linearUpwind
skewLinear
filteredLinear2

TVD

limitedLinear
vanLeer vanLeer
MUSCL MUSCL
limitedCubic

NVD

SFCD
Gamma Gamma

4.6

4.4.2 (snGradSchemes)

snGradSchemes
49

4.7
0 1

0
0.333 0.5 50
= (4.1)
0.5
{1

49
50

OpenFOAM-3.0.1
120

default limited 0.5

default limited 0.5


corrected
uncorrected
limited
bounded
fourth

4.7

4.4.3 (gradSchemes)

gradSchemes 4.8


Gauss <interpolationScheme>
leastSquares
fourth
cellLimited <gradScheme>
faceLimited <gradScheme>

4.8 gradSchemes
leastSquares fourth

grad(p) leastSquares

Gauss
Gauss 4.6

grad(p) Gauss linear

4.8 GaussleastSquaresfourth cellLimited faceLimited

grad(p) cellLimited Gauss Linear 1

OpenFOAM-3.0.1
121

4.4.4 (laplacianSchemes)

laplacianSchemes
(U) laplacian(nu,U) Gauss
U

Gauss <interpolationScheme> <snGradScheme>

interpolationScheme 4.6 snGradScheme 4.7


4.9

laplacian(nu,U) Gauss linear corrected

corrected
uncorrected
limited corrected uncorrected
bounded
fourth

4.9

4.4.5

divSchemes (UU)
OpenFOAM div(phi,U)phi U
Gauss U

Gauss <interpolationScheme>

4.6 4.10

div(phi,U) phi phi 51

div(phi,U) Gauss upwind

51 createPhi.H phi

OpenFOAM-3.0.1
122

linear
skewLinear
cubicCorrected
upwind
linearUpwind /
QUICK /
TVD /
SFCD
NVD /

4.10 divScheme

4.4.6

/ ddtSchemes 4.11 Crank-


Nicholson Euler
= 1 Crank-Nicholson = 0 0 1
CrankNicholson

Euler
localEuler
CrankNicholson
backward
steadyState

4.11 ddtSchemes

icoFoam
steadystatesimpleFoam
2
( ) d2dt2Schemes Euler
2

4.4.7

fluxRequired

OpenFOAM-3.0.1
123

fluxRequired p

fluxRequired
{
p;
}

4.5

system fvSolution icoFoam


fvSolution

17
18 solvers
19 {
20 p
21 {
22 solver PCG;
23 preconditioner DIC;
24 tolerance 1e-06;
25 relTol 0;
26 }
27
28 U
29 {
30 solver smoothSolver;
31 smoother symGaussSeidel;
32 tolerance 1e-05;
33 relTol 0;
34 }
35 }
36
37 PISO
38 {
39 nCorrectors 2;
40 nNonOrthogonalCorrectors 0;
41 pRefCell 0;
42 pRefValue 0;
43 }
44
45
46 // ************************************************************************* //

fvSolution
solversrelaxationFactorsPISO SIMPLE

4.5.1

solvers

word icoFoam
U p
solvers solver

OpenFOAM-3.0.1
124

4.12 tolerance, relTol, preconditioner,

PCG/PBiCG
smoothSolver
GAMG
diagonal
PCG PBiCG

4.12

OpenFOAM

--> FOAM FATAL IO ERROR : Unknown asymmetric matrix solver PCG


Valid asymmetric matrix solvers are :
3
(
PBiCG
smoothSolver
GAMG
)

4.5.1.1

tolerance

relTol

maxIter

0tolerance relTol
maxIter

OpenFOAM-3.0.1
125

4.5.1.2

preconditioner
4.13

Cholesky DIC
Cholesky
FDIC
DIC
LU DILU
diagonal
GAMG
none

4.13

4.5.1.3

smoother 4.14
GaussSeidel DIC
GaussSeidel DICGaussSeidel

GaussSeidel
Cholesky DIC
Cholesky- DICGaussSeidel

4.14

nSweeps sweep

4.5.1.4 GAMG

GAMG52

GAMG GAMG
nCoarsestCells

agglomeration agglomeration

52 http://aerojet.engr.ucdavis.edu/fluenthelp/html/ug/node1380.htm

OpenFOAM-3.0.1
126

faceAreaPair MGridGen
MGridGen

geometricGamgAgglomerationLibs ("libMGridGenGamgAgglomeration.so");

OpenCFD faceAreaPair MGridGen53


agglomeration cacheAgglomeration
4.5.1.3 smoother
sweep nPreSweeps, nPostSweeps, nFinestSweeps nPreSweeps
nPostSweeps
nFinestSweeps 54
mergeLevels
1 mergeLevels 1

4.5.2

fvSolution relaxationFactors

1 0

= 1

= 0

= 0.9
0.2


simpleFoam

17
18 solvers
19 {
20 p
21 {
22 solver GAMG;
23 tolerance 1e-06;
24 relTol 0.1;
25 smoother GaussSeidel;

53 http://www-users.cs.umn.edu/~moulitsa/software.html
54 http://www.cfd-online.com/Forums/openfoam-solving/96572-parameters-multigrid-
solver.html

OpenFOAM-3.0.1
127

26 nPreSweeps 0;
27 nPostSweeps 2;
28 cacheAgglomeration on;
29 agglomerator faceAreaPair;
30 nCellsInCoarsestLevel 10;
31 mergeLevels 1;
32 }
33
34 "(U|k|epsilon|R|nuTilda)"
35 {
36 solver smoothSolver;
37 smoother symGaussSeidel;
38 tolerance 1e-05;
39 relTol 0.1;
40 }
41 }
42
43 SIMPLE
44 {
45 nNonOrthogonalCorrectors 0;
46
47 residualControl
48 {
49 p 1e-2;
50 U 1e-3;
51 "(k|epsilon|omega)" 1e-3;
52 }
53 }
54
55 relaxationFactors
56 {
57 fields
58 {
59 p 0.3;
60 }
61 equations
62 {
63 U 0.7;
64 k 0.7;
65 epsilon 0.7;
66 R 0.7;
67 nuTilda 0.7;
68 }
69 }
70
71
72 // ************************************************************************* //

4.5.3 PISO SIMPLE

OpenFOAM PISO SIMPLE


PISO SIMPLE
SIMPLE
PISO 4
nCorrectors PISO 123
OpenFOAM PISO SIMPLE

nNonOrthogonalCorrectors
120
0 20

4.5.3.1

pRefCell pRefValuep
p_rgh p_rghRefValue p_rghRefCell

OpenFOAM-3.0.1
128

PISO/SIMPLE

4.5.4

OpenFOAM fvSolution fvSolution

OpenFOAM-3.0.1
129

5.1 OpenFOAM
5.2 5.3 blockMesh5.4
snappyHexMesh
5.5 OpenFOAM

5.1

OpenFOAM C++
OpenFOAM

OpenFOAM

OpenFOAM
3D
OpenFOAM
polyMesh

OpenFOAM cellShape

5.1.1

OpenFOAM polyMesh cellShape

OpenFOAM-3.0.1
130

5.1.1.1

list label 0 list

5.1.1.2

label
5.1

5.1



2 5 5


patch

OpenFOAM-3.0.1
131

5.1.1.3

1. 0

2.


(center-to-center vector)

90

5.1.1.5

patch patch

5.1.2 polyMesh

constant polyMesh polyMesh polyMesh


patch
owner neighbor
owner neighbor ownerneighbor
-1

points 0
1

faces, 0

owner owner 0
owner 1 owner

OpenFOAM-3.0.1
132

neighbor neighbor owner

boundary patch patch


movingWall
{
type patch;
nFaces 20;
startFace 760;
}

startFace patch 1 nFaces patch


owner FoamFile note nCells

5.1.3 cellShape

OpenFOAM
cellShape55

OpenFOAM
polyMesh
5.1 OpenFOAM
5.1

OpenFOAM

8
(
(0 0 0)
(1 0 0)
(1 1 0)
(0 1 0)
(0 0 0.5)
(1 0 0.5)
(1 1 0.5)
(0 1 0.5)
)

55 cellShape toolutility

OpenFOAM-3.0.1
133

(hex 8(0 1 2 3 4 5 6 7))

hex 5.1

5.1.4

OpenFOAM 3 3 OpenFOAM
1, 2 patch
patch 12
empty wedge 5.2.2
wedge 5.3.3

5.2

OpenFOAM

patch patch

patch 5.2

patch symmetry
wall empty
wedge
cylic

processor
fixedValue
fixedZeroGradient
zeroGradient
mixed
directionMixed
calculated
inletOutlet

5.2 patch

patch
OpenFOAM C++

OpenFOAM-3.0.1
134

5.1

OpenFOAM-3.0.1
135

5.2.1 OpenFOAM

OpenFOAM

constant/polyMesh boundary type

type

sonicFoam p

17
18 6
19 (
20 inlet
21 {
22 type patch;
23 nFaces 50;
24 startFace 10325;
25 }
26 outlet
27 {
28 type patch;
29 nFaces 40;
30 startFace 10375;
31 }
32 bottom
33 {
34 type symmetryPlane;
35 inGroups 1(symmetryPlane);
36 nFaces 25;
37 startFace 10415;
38 }
39 top
40 {
41 type symmetryPlane;
42 inGroups 1(symmetryPlane);
43 nFaces 125;
44 startFace 10440;
45 }
46 obstacle
47 {
48 type patch;
49 nFaces 110;
50 startFace 10565;
51 }
52 defaultFaces
53 {
54 type empty;
55 inGroups 1(empty);
56 nFaces 10500;
57 startFace 10675;
58 }
59 )
60
61 // ************************************************************************* //

17 dimensions [1 -1 -2 0 0 0 0];
18
19 internalField uniform 1;
20
21 boundaryField

OpenFOAM-3.0.1
136

22 {
23 inlet
24 {
25 type fixedValue;
26 value uniform 1;
27 }
28
29 outlet
30 {
31 type waveTransmissive;
32 field p;
33 phi phi;
34 rho rho;
35 psi thermo psi;
36 gamma 1.4;
37 fieldInf 1;
38 lInf 3;
39 value uniform 1;
40 }
41
42 bottom
43 {
44 type symmetryPlane;
45 }
46
47 top
48 {
49 type symmetryPlane;
50 }
51
52 obstacle
53 {
54 type zeroGradient;
55 }
56
57 defaultFaces
58 {
59 type empty;
60 }
61 }
62
63 // ************************************************************************* //

patch symmetryPlane empty type


patch p inlet bottom outlet
patch
empty symmetryPlane

5.2.2

OpenFOAM 5.2

patch patch wall



inlet outlet

OpenFOAM-3.0.1
137

5.3 wedge

patch patch
symmetryPlane
empty 2D
wedge
cyclic
wall
processor 56

5.2

wall wall
wall

symmetryPlane

emptyOpenFOAM
patch empty

wedge 2
5 5.3 wedge
patch 5.3.3 blockMesh
wedge

cyclic patch
cyclic cyclic
boundary neighbourPatch

56

OpenFOAM-3.0.1
138

boundary matchTolerance

processor
processor

5.2.3

5.3



fixedValue value
fixedGradient gradient
zeroGradient 0
calculated
mixed valueFraction refValue
fixedValue fixedGradient refGradient
valueFraction
value
directionMixed valueFraction mixed refValue
refGradient
valueFraction
value

5.3

5.2.4

OpenFOAM 5.4
OpenFOAM

$FOAM_SRC/finiteVolume/fields/fvPatchFields/derived

find $FOAM_SRC name "*derivedFvPatch*"

find $FOAM SOLVERS -name "*fvPatch*"

OpenFOAM-3.0.1
139

fixedValue

movingWallVelocity value
057
pressureInletVelocity value

pressureDirectedInletVeloc inlet - value
ity Direction inletDirection
surfaceNormalFixedValue value

totalPressure 0 = + 0.52 0

turbulentInlet referenceField
fluctuationScale
fixedGradient/zeroGradie
nt

fluxCorrectedVelocity value
buoyantPressure fixedGradient
mixed

inletOutlet inletValue
fixedValue zeroGradient value
outletInlet outletValue
fixedValue zeroGradient value
pressureInletOutletVelocity inletOutlet pressureInletVelocity value
pressureDirectedinletVeloc inletOutlet pressureDirectedInletVelocity value
ity inletValue
pressureTransmissive pInf
supersonicFreeStream pInfTInfUInf

slip zeroGradient
zeroGradient
fixedValue
partialSlip valueFraction zeroGradient slip valueFraction
=0 slip
p U

5.4

57

OpenFOAM-3.0.1
140

5.3 blockMesh

OpenFOAM blockMesh blockMesh

constant/polyMesh blockMeshDict blockMesh

blockMesh 1

block 8
OpenFOAM C++0
5.4 block 1 5
blockMesh
blockMesh 8 block5.3.3

block (x1,x2,x3)
oz o ox oy
block

block 0

0 1 x1

1 2 x2

0123 x3=0

4 0 x3

567 123 x3

5.3.1 blockMeshDict

blockMeshDict 5.5 convertToMeters

convertToMeters 0.001

0.001. blockMeshDict mm

OpenFOAM-3.0.1
141

5.4 block

converToMeters 0.001 mm
vertices 0 0 0
edges arc spline arc 1 4 (0.939 0.342 -0.5)
block hex (0 1 2 3 4 5 6 7)
(10 10 1)
patches patches symmetryPlane base
( (0 1 2 3) )
mergePatchPairs patches 5.3.2

5.5 blockMeshDict

5.2.1.1

block vertices 5.4 block

vertices
(
(000) // 0
( 1 0 0.1) // 1
( 1.1 1 0.1) // 2
( 0 1 0.1) // 3
(-0.1 -0.1 1 ) // 4
( 1.3 0 1.2) // 5
( 1.4 1.1 1.3) // 6
( 0 1 1.1) // 7
);

OpenFOAM-3.0.1
142

5.3.1.2

edges list
block 5.6

arc
simpleSpline
polyline
polySpline
line

5.6 blockMeshDict

5.6
arc arc simpleSpline
polyLine polySplineline
line 5.4 block
arc 1 5(1.1,0.0,0.5)

edges
(
arc 1 5 (1.1 0.0 0.5)
);

5.3.1.3

block blocks block block


5.3

block

blocks
(
hex (0 1 2 3 4 5 6 7) //
(10 10 10) //
simpleGrading (1 2 3) //
);

block

block .OpenFOAM-3.0.1/

OpenFOAM-3.0.1
143

cellModels blocks hex


140

x1x2x3


5.5
e s blockMesh

simpleGrading x1x2x3

simpleGrading (1 2 3)

edgeGrading block
5.4

edgeGrading (1 1 1 1 2 2 2 2 3 3 3 3)

0-3 14-7 28-11 3


simpleGrading

5.5 block

5.3.1.4 block

block block
block

block
block block block
OpenFOAM-2.4 block

block 1,2,3

OpenFOAM-3.0.1
144

blocks
(
hex (0 1 2 3 4 5 6 7) (100 300 100)
simpleGrading (1 2 3);
);

y 3 20%1
60%2
20%
3

13 y 300 30% 60% 2


13 1:42

blocks
(
hex (0 1 2 3 4 5 6 7) (100 300 100)
simpleGrading
(
1 // x
(
(0.2 0.3 4) //y 20%, 30% 4
(0.6 0.4 1) //y 60%, 40% 1
(0.2 0.3 0.25) // y 20%, 30% 0.25
)
3 // z
)
);

100

blocks
(
hex (0 1 2 3 4 5 6 7) (100 300 100)
simpleGrading
(
1
(
(20 30 40) //20%, 30%...

OpenFOAM-3.0.1
145

(60 40 1)
(20 30 0.25)
)
3
)
);

5.3.1.5

boundary patch patch


patch inletpatch

type patch
5.2 5.2.2

faces block patch patch


patch inlet

boundary blockMesh defaultFaces


empty 2D blockMesh
empty
5.4 inlet outlet
walls

boundary //
(
inlet // patch
{
type patch; // patch
faces
(
(0 4 7 3); // patch block
);
} // patch
outlet // patch
{
type patch; // patch
faces
(
(1 2 6 5)
);
}
walls

OpenFOAM-3.0.1
146

{
type wall;
faces
(
(0 1 5 4)
(0 3 2 1)
(3 7 6 2)
(4 5 6 7)
);
}
);

block 4 block

blockMesh cyclic neighbourPatch


cyclic cyclic

left
{
type cyclic;
neighbourPatch right;
faces ((0 4 7 3));
}
right
{
type cyclic;
neighbourPatch left;
faces ((1 5 6 2));
}

5.3.2

block block
blocks

block patch
block patch

block patch block patch


block

block patch blockMesh


patch blockMesh
patch block

OpenFOAM-3.0.1
147

patch mergePatchPairs
patch

mergePatchPairs
(
( <masterPatch> <slavePatch> ) // patch
( <masterPatch> <slavePatch> ) // patch
...
)

patch

blockMesh

5.6

patch patch

5.6 patch

block block

OpenFOAM-3.0.1
148

2D 2D 2d

patch mergePatchPairs

patch patch

5.3.3 8 block

8 block
2 5.2.2 wedge 5.7
7 4 6 5 block
7 4 6 5

hex (0 1 2 3 4 5 5 4)

5.7 6

block (4 5 6 7)
block (4 5 5 4) 0
ployMesh patch blockMeshDict
empty empty

OpenFOAM-3.0.1
149

5.3.4 blockMesh

3.3 blockMesh<case>
blockMeshDict

blockMesh case <case>

constant/polyMesh blockMeshDict

5.4 snappyHexMesh

OpenFOAM snappyHexMesh snappyHexMesh


STLOBJ

snappyHexMesh

5.8 snappyHexMesh 2D

5.4.1 snappyHexMesh

snappyHexMesh 5.8
STL
snappyHexMesh 3D
2 snappyHexMesh

OpenFOAM-3.0.1
150

STL binary ascii


constant/triSurface

blockMesh
5.4.2

snappyHexMeshDict system

snappyHexMeshDict
5.7

castellatedMesh true
snap true
doLayers true
mergeTolerance 1e-6
debug
0
1
cellLevel 2
.obj 4
geometry
castellatedMeshControls
snapControls
addLayersControls
meshQualityControls

5.7 snappyHexMeshDict

snappyHexMesh snappyHexMeshDict geometry


STL

geometry
{
sphere.stl // STL
{
type triSurfaceMesh;
regions
{
secondSolid // STL
{
name mySecondPatch; // patch
} // sphere.stl_secondSolid
}
}

box1x1x1 // User defined region name


{
type searchableBox; //
min (1.5 1 -0.5);

OpenFOAM-3.0.1
151

max (3.5 2 0.5);


}

sphere2 // User defined region name


{
type searchableSphere; //
centre (1.5 1.5 1.5);
radius 1.03;
}
};

5.4.2

snappyHexMesh 5.9
blockMesh

5.9 snappyHexMesh

snap 1

STL

OpenFOAM-3.0.1
152

5.10 snappyHexMesh

5.4.3

snappyHexMesh castellatedMeshControls
castellatedMeshControls 5.8

locationInMesh 5 0 0

maxLocalCells 1e6

maxGlobalCells 2e6

minRefinementCells 0

nCellsBetweenLevels 1
resolveFeatureAngle 30

features
refinementSurfaces
refinementRegions

5.8 snappyHexMeshDict castellatedMeshControls

5.10 castellatedMeshControls features


edgeMesh level

features
(

OpenFOAM-3.0.1
153

{
file "features.eMesh"; //
level 2; //
}
);

edgeMesh surfaceFeatureExtract
surfaceFeatureExtract surfaceFeatureExtractDict
surfaceFeatureExtractDict OpenFOAM
$FOAM_UTILITIES/surface/surfaceFeatureExtract

surfaceFeatureExtract

5.11
castellatedMeshControls refinementSurfaces STL
(<min> <max>)
resolveFeatureAngle
STL
regions STL

refinementSurfaces
{
sphere.stl
{
level (2 2); //
regions
{
secondSolid
{
level (3 3); //
}
}
}
}

5.11 snappyHexMesh

OpenFOAM-3.0.1
154

5.4.4

castellatedMeshControls locationInMesh 50%


5.12

5.12 snappyHexMesh

5.4.5

5.13 5.13
castellatedMeshControls refinementRegions
geometry Mode

inside

outside

distance levels

refinementRegions levels (<distance> <level>) inside


outside <distance>

refinementRegions
{
box1x1x1
{
mode inside;
levels ((1.0 4)); // 4
}

sphere.stl
{ // 1 5
mode distance; // 2 3
levels ((1.0 5) (2.0 3)); //

OpenFOAM-3.0.1
155

}
}

5.4.6

1. STL

2.

3.

4.

snappyHexMesh snapControls 5.9 5.14


nSmoothPatch 3
tolerance 4.0
/
nSolveIter 30
nRelaxIter 5

5.9 snappyHexMeshDict snapControls

5.4.7

5.15

1.

2.

3.

OpenFOAM-3.0.1
156

5.13 snappyHexMesh

5.14 snappyHexMesh

5.15 snappyHexMesh

OpenFOAM-3.0.1
157

4.

5.

snappyHexMesh addLayersControls 5.10


layer

layers
relativeSizes true/false
expensionRatio 1.0
finalLayerThickness relativeSizes 0.3

minThickness 0.25
nGrow 1

featureAngle 60
nRelaxIter 5
nSmoothSurfaceNormal 1
s
nSmoothNormals 3
nSmoothThickness 10
maxFaceThicknessRati 0.5
o
maxThicknessToMedial 0.3
Ratio
minMedianAxisAngle 130
nBufferCellsNoExtrude 0
nLayerIter 50
nRelaxedIter 20
meshQuality relaxed

5.10 snappyHexMesh addLayersControls

patch

layers
{
sphere.stl_firstSolid
{

OpenFOAM-3.0.1
158

nSurfaceLayers 1;
}
maxY
{
nSurfaceLayers 1;
}
}

maxNorOrtho 180 65
maxBoundarySkewness 0 20
maxInternalSkewness 0 4
maxConcave 180 80
minFlatness -1 0.5
minVol -1e30 1e-13
minArea <0 -1
minTwist <1 0.05
minDeterminant 1 <=0 0.001

minFaceWeight 00.5 0.05
minVolRatio 01.0 0.01
minTriangleTwist >0 Fluent -1
nSmoothScale 4
errorReduction 0.75
relaxed nRelaxedIter relaxed
{
.
}

5.11 snappyHexMesh meshQualityControls

5.4.8

5.11 snappyHexMeshDict meshQualityControls

5.5

OpenFOAM 3.6

OpenFOAM-3.0.1
159

fluentMeshToFoam fluent.msh 2D3D 58

starToFoam STAR-CD/PROSTAR

gambitToFoam GAMBIT.neu

ideasToFoam I-DEAS ANSYS.ans

cfx4ToFoam CFX .geo

5.5.1 fluentMeshToFoam

fluent .msh ASCII Fluent


OpenFOAM Fluent singleStream
empty
2D Fluent
empty frontAndBackPlanes

OpenFOAM Fluent OpenFOAM Fluent




OpenFOAM 59

Fluent
OpenFOAM OpenFOAM

Fluent.msh system
controlDict

fluentMeshToFoam <meshFile>

meshFile 60

58 fluent3DMeshToFoam 3D
59 MRF cellZone
60 fluentMeshToFoam fluent.msh

OpenFOAM-3.0.1
160

5.5.2 starToFoam

STAR-CD OpenFOAM
STAR-CD PROSTAR, SAMM, ProAM
singleStream

multiStream

partial

multiStream stream
OpenFOAM
OpenFOAM 5.1
STAR-CD
OpenFOAM STAR-CD
STAR-CD

5.5.2.1 STAR-CD

starToFoam STAR-CD
starToFoam
OpenFOAM checkMesh
OpenFOAM
OpenFOAM
61

5.5.2.2

PROSTAR

CEST NEWS FLUID


CEST INVE

61 CFD

OpenFOAM-3.0.1
161

CSET CSET
PROSTAR

CDEL CSET

CSET NEWS FLUID


VSET NEWS CSET
VSET INVE

CSET NEWS FLUID


VSET NEWS CSET
BSET NEWS VSET ALL
BEST INVE

BEST

BDEL BSET

5.5.2.3

STAR-CD
default 0
OpenFOAM
OpenFOAM
OpenFOAM
STAR default

1. Wire Surface

2. default 0 10

PROSTAR

RDEF 10 WALL
BZON 10 ALL

OpenFOAM-3.0.1
162

3. set

BSET NEWS REGI 1


BSET NEWS REGI 2
3,4,

BSET NEWS REGI 1


VSET NEWS BSET
BSET NEWS VSET ALL
BSET DELE REGI 1
REPL

10 1 BDEL
BSET

5.5.2.4

CSET NEW FLUID


CCOM CSET

VSET NEWS CSET


VSET INVE ()
VSET INVE
VCOM VSET

BSET NEWS VSET ALL


BSET INVE ()
BSET INVE
BCOM BSET

CHECK ALL
GEOM

PROSTAR
PROSTAR STAR-CD
1 OpenFOAM
scalePoints

OpenFOAM-3.0.1
163

5.5.2.5

CPSET NEWS TYPE INTEGRAL


CPMOD CPSET 1

PROSTAR

BWRITE

.23 3.0 .bnd


3.0

CWRITE

.14 3.0 .cel 3.0

VWRITE

.15 3.0 .vrt 3.0


ASCII .cpl

CPWRITE

PROSTAR STAR-
CD OpenFOAM
PROSTAR OpenFOAM PROSTAR
.23 pcs.
bnd.14 pcs.cel.15 vtx.vrt

5.5.2.6 .vrt

.vrt

19422 -0.105988957 -0.413711881E-02 0.000000000E+00

OpenFOAM-3.0.1
164

19423 -0.953953117E-01 -0.338810333E-02 0.000000000E+00

starToFoam OpenFOAM
foamCorrectVrt foamCorrectVrt

19423 -0.953953117E-01 -0.338810333E-02 0.000000000E+00

foamCorrectVrt starToFoam

foamCorrectVrt <file>.vrt

5.5.2.7 OpenFOAM

starToFoam OpenFOAM

starToFoam <meshFilePrefix>

meshFilePrefix
OpenFOAM boundary

5.5.3 gambitToFoam

GAMBIT .neu
GAMBIT OpenFOAM

gambitToFoam <meshFile>

meshFile
GAMBIT
patch

5.5.4 ideasToFoam

OpenFOAM I-DEAS
ANSYS .ans
.ans OpenFOAM

ideasToFoam <meshFile>

meshFile

OpenFOAM-3.0.1
165

5.5.5 cfx4ToFoam

CFX .geoCFX
OpenFOAM
3
CFX patch patch
OpenFOAM defaultFaces
wall
CFX 2 OpenFOAM 2DCFX
CFX 2D
empty OpenFOAM CFX 2
CFX .geo OpenFOAM

cfx4ToFoam <meshFile>

<meshFile>.geo

5.6

mapFields
mapFields

mapFields
source target source target
consistent mapFields startFrom/startTime

5.6.1

target-consistent

mapFields <source dir> -consistent

5.6.2

5.16 system
mapFieldsDict

mapFields

OpenFOAM-3.0.1
166

62

mapFields

mapFieldsDict patch patchMap


patch 5.16 patch
cuttingPatches patch patch
patch patch
patch
mapFieldsDict

5.16

17
18 patchMap ( lid movingWall );
19
20 cuttingPatches ( fixedWalls );
21
22
23 // ************************************************************************* //

mapFields <source dir>

62

OpenFOAM-3.0.1
167

5.6.3

mapFields

-parallelSource63

-parallelTarget

63 decomposePar mapFields <dir> -consistent parallelSource

OpenFOAM-3.0.1
168

OpenFOAM-3.0.1
169

OpenFOAM OpenFOAM paraFoam paraview


6.1 paraview
EnSightFieldview Fluent

6.1 paraFoam

OpenFOAM paraview
PV3FoamReader vtkPV3Foam OpenFOAM paraview4.1.0 PV3Foam -
Reader vtkFoam paraview2.x paraview
paraview4.1.0 paraview http://www.paraview.org
64

Paraview Visualisation Toolkit (VTK) VTK


OpenFOAM foamToVTK OpenFOAM VTK
VTK OpenFOAM
paraview
paraview OpenFOAM
VTK paraview VTK

6.1.1 paraFoam

paraFoam OpenFOAM paraview OpenFOAM


-case

paraFoam case <caseDir>

6.1paraview65

paraFoam Paraview
64

OpenFOAM paraview paraFoam


65

OpenFOAM-3.0.1
170

6.1 paraFoam

Pipeline browser paraview


Properties
Display

View

Paraview
Paraview

Properties Apply
Reset GUIDelete

6.1.2 Properties

Properties 6.2

OpenFOAM-3.0.1
171

6.2 Properties

paraview paraview2.x
check boxes
current Time Controls VCR Controls
6.1.4
paraFoam ApplyApply

paraview
Refresh Times
Properties update GUI66

66 paraview update GUI paraview


refresh

OpenFOAM-3.0.1
172

6.3 Display

6.1.3 display

Properties Display


Rescale

Edit Color Map

OpenFOAM-3.0.1
173

1. Color Scale CFD


Choose Preset Blue to Red Rainbow HSV

2. Color Legend

WireFrame Style Representation


wireframe Set Ambient


Color Color By Solid Color

Style Opacity 0 1

6.1.4

Paraview
view Toolbars 6.4
Help

6.4 paraview

6.1.5

paraFoam

6.1.5.1 View

Properties Display Render View View Settings


Properties

Lights light kit Headlight


Headlight 1

OpenFOAM-3.0.1
174

CFD 2D Camera Parallel Projection


Cube Axes

6.1.5.2

Edit Settings GeneralColors


AnimationsCharts Render View
General Paraview Auto Accept
Paraview Apply

Render View 3 GeneralCameraServerGeneral level of


detail (LOD)

Camera 2D 3D

6.1.6

Filter Contour
3D 2
Properties New range
67

6.1.6.1

Slice
Slice

Contour

6.1.7

Glyph Vectors
Glyph TypesArrow

Properties Scale Mode Vectors


Off Set Scale
Factor

67 paraFoam Value range contoured by

OpenFOAM-3.0.1
175

6.1.7.1

Cell centers Glyph

6.1.8

Stream Tracer Seed


Line source Point Cloud

Stream Tracer

tube tracer

10

6.1.9

paraview File Save Screenshot

x
1000 A4 US letter PDF

6.1.10

68 File Save Animation

1
mpeg
Save Animation root
OK <>_<>.<
> animation jpg animation
_0002.jpg 0000
ImageMagick
convert 69

68 paraview avi
69

OpenFOAM-3.0.1
176

convert animation*jpg movie.mpg

mpg -quality 90%

6.2

controlDict OpenFOAM

simpleFoam
controlDict


cellSource

faceSource

fieldMinMax /
fieldValue //

fieldValueDelta fieldValue

forces /
forceCoeffs
regionSizeDistrib-
ution
sampledSet
probes
residuals

6.1 /

OpenFOAM

6.1

6.2

6.3

OpenFOAM-3.0.1
177


fieldAverage
writeRegisteredObject
fieldCoordinateSystemTransform /
turbulenceFields
calcFvcDiv
calcFvcGrad
calcMag
CourantNo
Lambda2 Lambda2
Peclect Peclet
pressureTools
Q
vorticity
processorField ID
partialWrite

readFields

blendingFactor
DESModelRegions DES

6.2


nearWallFields patch
wallShearStress
yPlusLES LES y +
yPlusRAS RAS y +

6.3


streamLine
surfaces
wallBoundedStreamline

6.4

6.4

OpenFOAM-3.0.1
178

6.5


timeActivatedFileUpdate

abortCalculation

removeRegisteredObject
setTimeStepFunctioObject
codedFunctionObject #codeStream

cloudInfo
scalarTransport
systemCall
Emal

6.5

6.2.1

controlDict functions

functions
{
pressureProbes
{
type probes;
functionObjectLibs ("libsampling.so");
outputControl timeStep;
outputInterval 1;
probeLocations
(
(100)
(200)
);
fields
(
p
);
}
meanVelocity
{

OpenFOAM-3.0.1
179

type fieldAverage;
functionObjectLibs ( "libfieldFunctionObjects.so" );
outputControl outputTime;
fields
(
U
{
mean on;
prime2Mean off;
base time;
}
);
}
}
}

name pressureProbes
meanVelocity

type

functionObjectLibsforceCoeffs
libforces.so
libforces.so

outputControltimeStep writeInterval
outputTime

probeLocations

C++ http://openfoam.org/docs/cpp
http://openfoam.github.io/Documentation-dev/html post-processing

$FOAM_TUTORIALS
grep

find $FOAM TUTORIALS -name controlDict | xargs grep -l functions

6.2.2

OpenFOAM-2.4.0 $FOAM
ETC/caseDicts/postProcessing minMax

OpenFOAM-3.0.1
180

flowRate

cfg

outlet patch

1. flowRatePatch
$FOAM_ETC/caseDicts/postProcessing/flowRate

2. flowRatePatch system
flowRatePatch.cfg

3. system/flowRatePatch patch patch <patchName>


patch outlet;

4. flowRatePatch controlDict functions


functions
{
#include "flowRatePatch"
... ...
}

fields Q

flowRate

forces/

graphssingleGraph

minMaxcellMax

numericalresiduals

pressure

probes

scalarTransport

visualization VTK

OpenFOAM-3.0.1
181

faceSource

6.3 Fluent

OpenFOAM Fluent
foamMeshToFluent OpenFOAM Fluent
.msh foamDataToFluent OpenFOAM Fluent
.dat foamMeshToFluent
fluentInterface <caseName>/fluentInterface/<caseName>.msh
foamDataToFluent OpenFOAM Fluent
controlDict startTime
startFrom latestTime
foamDataToFluentDict constant

1 / *-----------------------------------------------------------------*- C++ -*---------------------------------------------------------------------------------*\


2 | ========= |
3 | \\ / Field | OpenFOAM: The Open Source CFD Toolbox |
4| \\ / Operation | Version: 2.3.0 |
5| \\ / And | Web: www.OpenFOAM.org |
6| \\/ Manipulation | |
7 \*--------------------------------------------------------------------------------------------------------------------------------------------------------------*/
8 FoamFile
9{
10 version 2.0;
11 format ascii;
12 class dictionary;
13 object blockMeshDict;
14 }
15 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16
17
18 p 1;
19
20 U 2;
21
22 T 3;
23
24 h 4;
25
26 k 5;
27
28 epsilon 6;
29
30 alpha1 150;
31// ************************************************************************* //

<fieldname> <fluentUnitNumber>

<fluentUnitNumber> fluent <fluentUnitNumber>


6.1 p
U 6.1 foamDataToFluent
Fluent fluentInterface
Fluent 70

70 linux fluent

OpenFOAM-3.0.1
182

fluent 3d

File Read Case

Fluent OpenFOAM

PRESSURE 1 p
MOMENTUM 2 U
TEMPERATURE 3 T
ENTHALPY 4 h
TKE 5 k
TED 6 epsilon
SPECIES 7 -
G 8 -
XF_RF_DATA_VOF 150 gamma
TOTAL_PRESSURE 192
TOTAL_TEMPERATURE 193

6.6 Fluent

k epsilon Define-Models-Viscous k-epsilon


File Read Data
Fluent OpenFOAM OpenFOAM
Fluent

6.4 Fieldview

OpenFOAM Fieldview
foamToFieldview OpenFOAM Fieldview .uns
foamToFieldview Fieldview
Fieldview
<case>_nn.uns nn 1
1 2
-time<time>
Fieldview
-noWall
Fieldview .uns
OpenFOAM . Fieldview

OpenFOAM-3.0.1
183

6.5 EnSight

OpenFOAM EnSight

foamToEnsight OpenFOAM EnSight


ensight74FoamExec OpenFOAM

6.5.1 EnSight

foamToEnsight OpenFOAM Ensight


foamToEnsight foamToEnsight
Ensight_Case Ensight
71 Ensight_nn.ext nn 1
1 2ext
T mesh EnSight

1. EnSight File Data(Reader)

2. File EnSight_Case

3. EnSight Format Case

4. Case Okay

6.5.2 ensight74FoamExec

EnSight EnSight
OpenFOAM ensight74FoamExec OpenFOAM
libuserd-foam EnSight

6.5.2.1 EnSight

EnSight $WM_PROJECT
DIR/etc/apps/ensightFoam bashrc EnSight
$CEI $ENSIGHT7_ 6.2$CEI_HOME
EnSight

71

OpenFOAM-3.0.1
184

6.5.2.2

EnSight EnSight
OpenFOAM
EnSight
1. EnSight File Data(Reader)

2. Format OpenFOAM

$CEI_HOME EnSight /usr/local/ensight



$CEI_ARCH $CEI_HOME/ensight74/mach
-ines linux_2.4
sgi_6.5_n32
$ENSIGHT7_READER Ensight libuserd-foam
$FOAM_LIBBBIN
$ENSIGHT7_INPUT dummy

6.2 EnSight

3. File Selection Directories


SetGeometry

4.

Set
Geometry /

5. OkayEnSight

6. Data Part Loader


Load all

7. EnSight Data Part Loader


EnSight

6.6

OpenFOAM sample 2D
system sampleDict
Grace/xmgr, gnuplot, jPlot

$FOAM_UTILITIES/postProcessing/sampling/sample sampleDic

OpenFOAM-3.0.1
185

-t $FOAM_TUTORIALS/solidDisplacementFoam plateHole
1

17
18 interpolationScheme cellPoint;
19
20 setFormat raw;
21
22 sets
23 (
24 leftPatch
25 {
26 type uniform;
27 axis y;
28 start ( 0 0.5 0.25 );
29 end ( 0 2 0.25 );
30 nPoints 100;
31 }
32 );
33
34 fields ( sigmaxx );
35
36
37 // ************************************************************************* //


interpolationScheme cell
cellPoint
cellPointFace
setFormat raw ASCII
gnuplot gnuplot
xmgr Grace/xmgr
jplot jPlot
surfaceFormat null
foamFile pointfacevalues
dx DX
vtk VTK ASCII
raw xyz gnuplotsplot
stl ASCII STL
fields U
U U
sets 6.4 1
surfaces 6.56,6 2

6.3 sampleDict

72

interpolationScheme
sets 1D
surfaces 2D

72

OpenFOAM-3.0.1
186

setFormat
surfaceFormat
fields

cellPoint cellPointFace
cellPoint

cellPointFace

2D setFormat gnuplotGrace/xmgrjPlot
sets

.xy
Grace/xmgr .agrjPlot .datgnuplot
.gplt sample sets

surfaceFormat gnuplot Grace/xmgr


jPlot surfaces

fields sample
U

U.component(n)/ n n=0,1,

Mag(U)/

sets
6.4uniform
type axis axis




uniform
face

midpoint
minPointAndFace minPoint face
curve
cloud

OpenFOAM-3.0.1
187

type
axis x x
y y
z z
xyz xyz
distance 0
start 0.0 0.0 0.0
end 0.0 0.0 0.0
nPoints 200
points

6.9 sets

surfaces
type plane

basePoint (0 0 0)
normalVector (1 0 0)
interpolate true/false
triangulate true/false

6.10 surfaces plane

patchName patch movingWall


interpolate true/false
triangulate true/false

6.11 surfaces patch

6.10
patch patch 6.11

6.7

OpenFOAM
3.3 $WM PROJECT_DIR/etc/controlDict
1 2
cavity

OpenFOAM-3.0.1
188

Starting time loop

Ti m e = 0 . 0 0 5

Max Courant Number = 0


BICCG: Solving for Ux, Initial residual = 1, Final residual = 2. 96338e -06, No Iterations 8
ICCG: Solving for p, Initial residual = 1, Final residual = 4.9336e -07, No Iterations 35
time step continuity errors : sum local = 3.29376e -09, global = -6.41065e-20, cumulative = -6.41065e-20
ICCG: Solving for p, Initial residual = 0.47484, Final residual = 5.41068e -07, No Iterations 34
time step continuity errors : sum local = 6.60947e -09, global = -6.22619e-19, cumulative = -6.86725e-19
ExecutionTime = 0. 14 s

Ti m e = 0 . 0 1

Max Courant Number = 0.585722


B IC C G : So l v i n g f o r U x , I n i t i a l r e s i d u a l = 0 . 1 4 8 5 8 4 , F i n a l r e s i d u a l = 7 . 1 5 7 11 e - 0 6 , N o I t e r a t i o n s 6
B I C C G : S o l v i n g f o r U y, I n i t i a l r e s i d u a l = 0 . 2 5 6 6 1 8 , F i n a l r e s i d u a l = 8 . 9 4 1 2 7 e - 0 6 , N o I t e r a t i o n s 6
ICCG: Solving for p, Initial residual = 0.37146, Final residual = 6.67464e -07, No Iterations 33
time step continuity errors : sum l ocal = 6.34431e-09, global = 1.20603e-19, cumulative = -5.66122e-19
ICCG: Solving for p, Initial residual = 0.271556, Final residual = 3.69316e -07, No Iterations 33
time step continuity errors : sum local = 3.96176e -09, global = 6.9814e-20, cumulative = -4.96308e-19
ExecutionTime = 0. 16 s

Ti m e = 0 . 0 1 5

Max Courant Number = 0.758267


BICCG: Solving for Ux, Initial residual = 0. 0448679, Final residual = 2. 42301e - 06, No Iterations 6
B I C C G : S o l v i n g f o r U y, I n i t i a l r e s i d u a l = 0 . 0 7 8 2 0 4 2 , F i n a l r e s i d u a l = 1 . 4 7 0 0 9 e - 0 6 , N o I t e r a t i o n s 7
ICCG: Solving for p, Initial residual = 0. 107474, Final residual = 4.8362e -07, No Iterations 32
time step continuity errors : sum local = 3.99028e -09, global = -5.69762e-19, cumulative = -1.06607e-18
ICCG: Solving for p, Initial residu al = 0. 0806771, Final residual = 9.47171e -07, No Iterations 31
time step continuity errors : sum local = 7.92176e -09, global = 1.07533e-19, cumulative = -9.58537e-19
ExecutionTime = 0. 19 s

6.7.1 foamJob

log foamJob
log

foamJob <solver>

foamJob help UNIXtail log


-f log

tail f log

6.7.2 foamLog

log
foamLog log
foamLog

OpenFOAM-3.0.1
189

foamLog <logFile>

logs <var>_<subtler>
<var> log <subtler>
<var><var>FinalRes

cavity Ux
logs/Ux_0 6.5
10e-5
log foamLog cavity

Courant_0

Ux Ux_0 UxFinalRes_0 UxIters_0Uy


2 P contCumulative_0, contGlobal
_0, contLocal_0 contCumulative_1, contGlobal_1, contLocal_1

p p_0, pFinalRes_0, pIters_0 p_1, pFinalRes_1,


pIters_1

executionTime

6.5 cavity Ux

OpenFOAM-3.0.1
190

OpenFOAM-3.0.1
191

OpenFOAM

3.5
constant

7.1

thermoPhyscial
thermophysicalProperties OpenFOAM -
thermoType
OpenFOAM C++

thermoType

thermo
{
type hePsiThermo;
mixture pureMixture;
transport const;
thermo hConst;
equationOfState perfectGas;
specie specie;
energy sensibleEnthalpy;
}

OpenFOAM-3.0.1
192

transport
equationOfState energy
thermoType

7.1.1

psiThermo = ()1
psiThermo sonicFoam
rhoSimpleFoam rhoPorousSimpleFoamuncoupledKinematicParcelFoam
coldEngineFoam

rhoThermo rhoThermo
buoyantSimpleFoamCHT Boussinesq
rhoPorousSimpleFoamtwoPhaseEulerFoam thermoFoam

psiReactionThermo psiReactionThermo
sprayFoamchemFoamfireFoamreactingFoam
coalChemistryFoamreactingParcelFilmFoam

psiuReactionThermo
psiuReactionThermo rhoReactingFoam
rhoReactingBuoyantFoam reactingParcelFoam
simpleReactingParcelFoam

rhoReactiongThermo rhoReactiongThermo
XiFoamPDRFoam
engineFoam

multiPhaseMixtureThermo multiPhaseMixtureThermo
compressibleInterFoamcompressibleMultiph-
aseInterFoam

type

hePsiThermo psiThermo psiReactionThermo

heRhoThermo rhoThermorhoReactionThermo multiphaseMixtureThermo


heheuPsiThermo psiuReactionThermo

mixture pureMixture

OpenFOAM-3.0.1
193

pureMixture mixture
reactingMixture
foamChemistryFile
reactingMixture O2 N2

fuel
oxidantburntProducts homogeneousMixtureinhom-
ogeneousMixture veryInhomogeneousMixture
egrMixturemultiComponentMixturesingleStepReacting-
Mixture

7.1.2

transport

const = / mu
Pr

sutherland Tsutherland sutherland


As Ts


= (7.1)
1+ /

polynomial T

= 1
=0

(7.2)

7.1.3

thermo

hConst Cp Hf

eConst Cv Hf

janaf JANAF
7.1 T1 T2

OpenFOAM-3.0.1
194

= ((((4 + 3 ) + 2 ) + 1 ) + 0 ) (7.3)

5 6 h s

hPloynomial

= 1
=0

(7.4)

$FOAM_TUTORIALS/-lagrangian/porousExplicitSourceR-
eactingParcelFoam/ filter

() Tlow
() Thigh
() Tcommon
0 , 4 highCpCoeffs(a0 a1 a3 a4 a4
a5)
5 a5
6 a6
0 , 4 lowCpCoeffs(a0 a1 a3 a4 a4
a5)
5 a5
6 a6

7.1 JANAF

7.1.4

specie specie

nMoles
1

molWeight

OpenFOAM-3.0.1
195

7.1.5

rhoConst

= (7.5)

perfectGas

1
= (7.6)

incompressiblePerfectGas

1
= (7.7)

perfectFluid

1
= + 0 (7.8)

0 = 0

linear

= + 0 (7.9)

adiabaticPerfectFluid

+ 1/
= 0 ( ) (7.10)
0 +

00 B

PengRobinsonGasPeng & Robinson

OpenFOAM-3.0.1
196

1
= (7.11)

FOAM_SRC/thermophysicalModels/specie/equationOfState/ PengRobinsonGa-
sI.H = (, )

icoPolynomial

= (7.12)
=0

7.1.6

energy
absolute energysensible energy

= + (7.13)

i
S energy sensibleEnthalpysensibleInternalEnergy
absoluteEnthalpy

7.1.7

O2H2O
mixture

specienMoles g/molmolWeight

thermoDynamics

transport

fuel sutherland janaf

fuel
{
specie
{
nMoles 1;

OpenFOAM-3.0.1
197

molWeight 16.0428;
}
thermodynamics
{
Tlow 200;
Thigh 6000;
Tcommon 1000;
highCpCoeffs (1.63543 0.0100844 -3.36924e-06 5.34973e-10
-3.15528e-14 -10005.6 9.9937);
lowCpCoeffs (5.14988 -0.013671 4.91801e-05 -4.84744e-08
1.66694e-11 -10246.6 -4.64132);
}
transport
{
As 1.67212e-06;
Ts 170.672;
}
}

const hConst air

air
{
specie
{
nMoles 1;
molWeight 28.96;
}
thermodynamics
{
Cp 1004.5;
Hf 2.544e+06;
}
transport
{
mu 1.8e-05;
Pr 0.7;
}
}

7.2

TurbulenceProperties
simulationType

laminar

RASRAS

LESLES

OpenFOAM-3.0.0 RASModel LESModel


RAS constant RAS
RAS 3.9 LES LES
LES LES
OpenFOAM-3.0.0 constant RASProperties
turbulenceProperties RAS LES
LESProperties
7.2 RAS LES 7.3

OpenFOAM-3.0.1
198

RASModel RAS
turblence
printCoeffs
<RASModel>Coeffs RASModel

7.2 RAS

LESModel LES
delta delta
<LESModel>Coeffs LES
<delta>Coeffs delta

7.3 LES

RAS LES delta 3.9


$FOAM_TUTORIALS

7.2.1

RAS
RASProperties
Coeffs kEpsilon kEpsilonCoeffs RASProperties
printCoeffs onCoeffs
RASProperties

7.2.2

OpenFOAM
0 nut
OpenFOAM-3.0.0 RAS
0/nut RAS 0/mut LES
0/nuSgs LES 0/muSgs
0/nut

17
18 dimensions [0 2 -1 0 0 0 0];
19
20 internalField uniform 0;
21
22 boundaryField
23 {
24 movingWall
25 {
26 type nutkWallFunction;
27 value uniform 0;
28 }
29 fixedWalls
30 {

OpenFOAM-3.0.1
199

31 type nutkWallFunction;
32 value uniform 0;
33 }
34 frontAndBack
35 {
36 type empty;
37 }
38 }
39
40
41 // ************************************************************************* //

OpenFOAM , nutWallFunction, nutRoughWallFunction, nutSpalart


-AllmarasStandardRoughWallFunction, nutSpalartAllmarasStandardWallFunction nutSpalart
-AllmarasWallFunction

find $FOAM SRC/turbulenceModels -name wallFunctions

Ekappa Cmu , ,

nut mut patch epsilon


patch epsilonWallFunction kqR patch
kqRwallFunction

7.3

OpenFOAM /
transportProperties

7.3.1

transportProperties dimensionedScalar
nu

transportModel Newtonian;

nu nu [ 0 2 -1 0 0 0 0 ] 1.5e-05;

L2 /T

7.3.2 Bird-Carreau

Bird-Carreau

= + (0 )[1 + ( ) ](1)/ (7.14)

OpenFOAM-3.0.1
200

a 2

transportModel BirdCarreau;
BirdCarreauCoeffs
{
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-03;
nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-05;
k k [ 0 0 1 0 0 0 0 ] 1;
n n [ 0 0 0 0 0 0 0 ] 0.5;
}

7.3.3 Cross

Cross

(0 )
= + (7.15)
1 + ( )

transportModel CrossPowerLaw;
CrossPowerLawCoeffs
{
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-03;
nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-05;
m m [ 0 0 1 0 0 0 0 ] 1;
n n [ 0 0 0 0 0 0 0 ] 0.5;
}

7.3.4

min max

= 1 min < < min (7.16)

transportModel powerLaw;
powerLawCoeffs
{
nuMax nuMax [ 0 2 -1 0 0 0 0 ] 1e-03;
nuMin nuMin [ 0 2 -1 0 0 0 0 ] 1e-05;
k k [ 0 2 -1 0 0 0 0 ] 1e-05;

OpenFOAM-3.0.1
201

n n [ 0 0 0 0 0 0 0 ] 1;
}

7.3.5 Herschel-Bulkley

Herschel-Bulkley
0 0

0
= min(0 + 1 ) (7.17)

transportModel HerschelBulkley;
HerschelBulkleyCoeffs
{
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-03;
tau0 tau0 [ 0 2 -2 0 0 0 0 ] 1;
k k [ 0 2 -1 0 0 0 0 ] 1e-05;
n n [ 0 0 0 0 0 0 0 ] 1;
}

OpenFOAM-3.0.1
202

OpenFOAM-3.0.1

A B C D E F G H I J K L M N O P Q R S T U V W X Z

access functions, P-21


addLayersControls keyword, U-150
* adiabaticFlameT utility, U-97
tensor member function, P-23 adiabaticPerfectFluid model, U-101, U-195
+ adjointShapeOptimizationFoam solver, U-
tensor member function, P-23 86
- adjustableRunTime
tensor member function, P-23 keyword entry, U-62, U-114
/ adjustTimeStep keyword, U-62, U-115
tensor member function, P-23 agglomerator keyword, U-125
/*...*/ algorithms tools, U-98
C++ syntax, U-78 alphaContactAngle
// boundary condition, U-59
C++ syntax, U-78 analytical solution, P-43
OpenFOAM file syntax, U-106 Animations window panel, U-174
# include anisotropicFilter model, U-103
C++ syntax, U-72, U-78 Annotation window panel, U-24
& ansysToFoam utility, U-91
tensor member function, P-23 APIfunctions model, U-102
&& applications, U-69
tensor member function, P-23 Apply button, U-170, U-174
^ applyBoundaryLayer utility, U-90
tensor member function, P-23 applyWallFunctionBoundaryConditions
<LESModel>Coeffs keyword, U-198 utility,
<RASModel>Coeffs keyword, U-198 U-90
<delta>Coeffs keyword, U-198 arbitrarily unstructured, P-29
0.000000e+00 directory, U-106 arc
1-dimensional mesh, U-133 keyword entry, U-142
1D mesh, U-133 arc keyword, U-141
2-dimensional mesh, U-133 As keyword, U-193
2D mesh, U-133 ascii
keyword entry, U-114
attachMesh utility, U-92
0 directory, U-106 Auto Accept button, U-174
autoMesh
A library, U-99
autoPatch utility, U-92 boundary, U-133
autoRefineMesh utility, U-93 boundary
axes dictionary, U-132, U-140
right-handed, U-140 boundary keyword, U-145
right-handed rectangular Cartesian, P- boundary condition
13, alphaContactAngle, U-59
U-18 buoyantPressure, U-139
axi-symmetric cases, U-137, U-148 calculated, U-138
axi-symmetric mesh, U-133 cyclic, U-137, U-146
directionMixed, U-138
B empty, P-63, P-69, U-18, U-133, U-137
background fixedGradient, U-138
process, U-24, U-81 fixedValue, U-138
backward fluxCorrectedVelocity, U-139
keyword entry, U-122 inlet, P-69
Backward differencing, P-37 inletOutlet, U-139
barotropicCompressibilityModels mixed, U-138
library, U-101 movingWallVelocity, U-139
basicMultiComponentMixture model, U- outlet, P-69
100 outletInlet, U-139
basicSolidThermo partialSlip, U-139
library, U-102 patch, U-136
basicThermophysicalModels pressureDirectedInletVelocity, U-139
library, U-100 pressureInletVelocity, U-139
binary pressureOutlet, P-63
keyword entry, U-114 pressureTransmissive, U-139
BirdCarreau model, U-104 processor, U-138
blended differencing, P-36 setup, U-20
block slip, U-139
expansion ratio, U-143 supersonicFreeStream, U-139
block keyword, U-141 surfaceNormalFixedValue, U-139
blocking symmetryPlane, P-63, U-137
keyword entry, U-80 totalPressure, U-139
blockMesh turbulentInlet, U-139
library, U-99 wall, U-41
blockMesh solver, P-45 wall, P-63, P-69, U-59, U-137
blockMesh utility, U-38, U-91, U-140 wedge, U-133, U-137, U-148
blockMesh executable zeroGradient, U-138
vertex numbering, U-143 boundary conditions, P-41
blockMeshDict Dirichlet, P-41
dictionary, U-18, U-20, U-36, U-49, U- inlet, P-42
140,U-149 Neumann, P-41
blocks keyword, U-20, U-31, U-142 no-slip impermeable wall, P-42
boundaries, U-133 outlet, P-42
physical, P-42 boundary condition, U-138
symmetry plane, P-42 cAlpha keyword, U-63
boundaryField keyword, U-21, U-110 Camera Parallel Projection button, U-174
boundaryFoam solver, U-86 cases, U-105
bounded castellatedMesh keyword, U-150
keyword entry, U-120, U-121 castellatedMeshControls
boxToCell keyword, U-60 dictionary, U-152U-154
boxTurb utility, U-90 castellatedMeshControls keyword, U-150
breaking of a dam, U-56 cavitatingDyMFoam solver, U-87
BSpline cavitatingFoam solver, U-87
keyword entry, U-142 cavity flow, U-17
buoyantBoussinesqPimpleFoam solver, U- CEI ARCH
88 environment variable, U-184
buoyantBoussinesqSimpleFoam solver, U- CEI HOME
88 environment variable, U-184
buoyantPimpleFoam solver, U-88 cell
buoyantPressure expansion ratio, U-143
boundary condition, U-139 cell class, P-29
buoyantSimpleFoam solver, U-88 cell
burntProducts keyword, U-193 keyword entry, U-185
button cellLimited
Apply, U-170, U-174 keyword entry, U-120
Auto Accept, U-174 cellPoint
Camera Parallel Projection, U-174 keyword entry, U-185
Choose Preset, U-173 cellPointFace
Delete, U-170 keyword entry, U-185
Edit Color Map, U-172 cells
Enable Line Series, U-35 dictionary, U-140
Lights, U-174 central differencing, P-36
Orientation Axes, U-24 cfdTools tools, U-98
Refresh Times, U-25, U-171 cfx4ToFoam utility, U-91, U-159
Rescale to Data Range, U-25 changeDictionary utility, U-90
Reset, U-170 Charts window panel, U-174
Set Ambient Color, U-173 checkMesh utility, U-92, U-160
Update GUI, U-171 chemFoam solver, U-88
Use Parallel Projection, U-24 chemistryModel
library, U-102
C chemistryModel model, U-102
C++ syntax chemistrySolver model, U-102
/*...*/, U-78 chemkinToFoam utility, U-97
//, U-78 Choose Preset button, U-173
# include, U-72, U-78 chtMultiRegionSimpleFoam solver, U-88
cacheAgglomeration keyword, U-126 chtMultiRegionFoam solver, U-88
calculated Chung
library, U-101 Color Legend window, U-29
class Color Legend window panel, U-173
cell, P-29 Color Scale window panel, U-173
dimensionSet, P-24, P-30, P-31 Colors window panel, U-174
face, P-29 compressibleInterDyMFoam solver, U-87
finiteVolumeCalculus, P-34 compressibleInterFoam solver, U-87
finiteVolumeMethod, P-34 compressibleMultiphaseInterFoam solver,
fvMesh, P-29 U-87
fvSchemes, P-36 combinePatchFaces utility, U-93
fvc, P-34 comments, U-78
fvm, P-34 commsType keyword, U-80
pointField, P-29 compressed
polyBoundaryMesh, P-29 keyword entry, U-114
polyMesh, P-29, U-129, U-131 compressibleLESModels
polyPatchList, P-29 library, U-104
polyPatch, P-29 compressibleRASModels
scalarField, P-27 library, U-103
scalar, P-22 constant directory, U-105, U-191
slice, P-29 constant model, U-101
symmTensorField, P-27 constTransport model, U-101
symmTensorThirdField, P-27 containers tools, U-98
tensorField, P-27 continuum
tensorThirdField, P-27 mechanics, P-13
tensor, P-22 control
vectorField, P-27 of time, U-113
vector, P-22, U-109 controlDict
word, P-24, P-29 dictionary, P-65, U-22, U-31, U-42,
class keyword, U-107 U-51,U-60, U-105, U-165
clockTime controlDict file, P-48
keyword entry, U-114 convection, see divergence, P-36
cloud keyword, U-187 convergence, U-39
cloudFunctionObjects conversion
library, U-98 library, U-99
cmptAv convertToMeters keyword, U-140
tensor member function, P-23 coordinate
Co utility, U-93 system, P-13
coalChemistryFoam solver, U-89 coordinate system, U-18
coalCombustion corrected
library, U-99 keyword entry, U-120, U-121
cofactors Courant number, P-40, U-22
tensor member function, P-23 Cp keyword, U-193
coldEngineFoam solver, U-88 cpuTime
collapseEdges utility, U-93 keyword entry, U-114
Color By menu, U-173 Crank Nicholson
temporal discretisation, P-41 debug keyword, U-150
CrankNicholson decompose model, U-100
keyword entry, U-122 decomposePar utility, U-82, U-83, U-97
createExternalCoupledPatchGeometry decomposeParDict
utility, dictionary, U-82
U-90 decomposition
createBaffles utility, U-92 of field, U-82
createPatch utility, U-92 of mesh, U-82
createTurbulenceFields utility, U-94 decompositionMethods
cross product, see tensor, vector cross library, U-99
product decompression of a tank, P-58
CrossPowerLaw defaultFieldValues keyword, U-58
keyword entry, U-60 deformedGeom utility, U-90
CrossPowerLaw model, U-104 Delete button, U-164
cubeRootVolDelta model, U-103 delta keyword, U-81, U-184
cubicCorrected deltaT keyword, U-111
keyword entry, U-122 dependencies, U-70
cubicCorrection dependency lists, U-70
keyword entry, U-119 det
curl, P-35 tensor member function, P-21
curl determinant, see tensor, determinant
fvc member function, P-35 dev
Current Time Controls menu, U-25, U-171 tensor member function, P-21
curve keyword, U-187 diag
Cv keyword, U-193 tensor member function, P-21
cyclic diagonal
boundary condition, U-137, U-146 keyword entry, U-121, U-122
cyclic DIC
keyword entry, U-137 keyword entry, U-122
cylinder DICGaussSeidel
flow around a, P-43 keyword entry, U-122
dictionary
D LESProperties, U-184
d2dt2 PISO, U-23
fvc member function, P-35 blockMeshDict, U-18, U-20, U-36, U-
fvm member function, P-35 49, U-140, U-149
dam boundary, U-132, U-140
breaking of a, U-56 castellatedMeshControls, U-152U-154
datToFoam utility, U-91 cells, U-140
db tools, U-98 controlDict, P-65, U-22, U-31, U-42,
ddt U-51, U-62, U-105, U-165
fvc member function, P-35 decomposeParDict, U-82
fvm member function, P-35 faces, U-131, U-140
DeardorffDiffStress model, U-103, U-104 fvSchemes, U-63, U-105, U-116
fvSolution, U-105, U-123 discretisation
mechanicalProperties, U-51 equation, P-31
neighbour, U-132 Display window panel, U-24, U-25, U-170,
owner, U-131 U-172
points, U-131, U-140 distance
thermalProperties, U-51 keyword entry, U-154, U-187
thermophysicalProperties, U-191 distributed model, U-100
transportProperties, U-21, U-39, U-44, distributed keyword, U-83, U-84
U-199 distributionModels
turbulenceProperties, U-44, U-61, U- library, U-99
197 div
differencing fvc member function, P-35
Backward, P-37 fvm member function, P-35
blended, P-36 divergence, P-35, P-37
central, P-36 divSchemes keyword, U-116
Euler implicit, P-37 dnsFoam solver, U-88
Gamma, P-36 doLayers keyword, U-150
MINMOD, P-36 double inner product, see tensor,double
SUPERBEE, P-36 inner
upwind, P-36 product
van Leer, P-36 DPMFoam solver, U-89
DILU driftFluxFoam solver, U-87
keyword entry, U-125 dsmc
dimension library, U-99
checking in OpenFOAM, P-24, U-109 dsmcFieldsCalc utility, U-95
dimensional units, U-109 dsmcFoam solver, U-89
dimensioned<Type> template class, P-24 dsmcInitialise utility, U-90
dimensionedTypes tools, U-98 dx
dimensions keyword, U-21, U-109 keyword entry, U-185
dimensionSet class, P-24, P-30, P-31 dynamicFvMesh
dimensionSet tools, U-98 library, U-99
directionMixed dynamicMesh
boundary condition, U-138 library, U-99
directory dynLagrangian model, U-103
0.000000e+00, U-106 dynOneEqEddy model, U-103
0, U-106
Make, U-73
E
constant, U-105, U-191 eConstThermo model, U-101
fluentInterface, U-181 edgeGrading keyword, U-143
polyMesh, U-105, U-131 edgeMesh
processorN, U-83 library, U-99
run, U-105 edges keyword, U-141
system, P-48, U-105 Edit menu, U-174
tutorials, P-43, U-17 Edit Color Map button, U-172
egrMixture model, U-100 WM PROJECT, U-76
egrMixture keyword, U-193 wmake, U-76
electrostaticFoam solver, U-89 equationOfState keyword, U-192
empty equilibriumCO utility, U-97
boundary condition, P-63, P-69, U-18, equilibriumFlameT utility, U-97
U-133, U-137 errorReduction keyword, U-158
empty Euler
keyword entry, U-137 keyword entry, U-122
Enable Line Series button, U-35 Euler implicit
endTime keyword, U-22, U-113, U-114 differencing, P-37
energy keyword, U-192, U-196 temporal discretisation, P-40
engine examples
library, U-99 decompression of a tank, P-61
engineCompRatio utility, U-95 flow around a cylinder, P-43
engineFoam solver, U-88 flow over backward step, P-50
engineSwirl utility, U-90 Hartmann problem, P-67
ensight74FoamExec utility, U-183 supersonic flow over forward step, P-
ENSIGHT7 INPUT 58
environment variable, U-184 execFlowFunctionObjects utility, U-95
ENSIGHT7 READER expandDictionary utility, U-97
environment variable, U-184 expansionRatio keyword, U-157
ensightFoamReader utility, U-93 explicit
enstrophy utility, U-93 temporal discretisation, P-40
environment variable extrude2DMesh utility, U-91
CEI ARCH, U-184 extrudeMesh utility, U-91
CEI HOME, U-184 extrudeToRegionMesh utility, U-91
ENSIGHT7 INPUT, U-184
ENSIGHT7 READER, U-184
F
FOAM RUN, U-105 face class, P-29
WM ARCH OPTION, U-76 face keyword, U-187
WM ARCH, U-76 faceAgglomerate utility, U-90
WM COMPILER BIN, U-76 faceAreaPair
WM COMPILER DIR, U-76 keyword entry, U-125
WM COMPILER LIB, U-76 faceLimited
WM COMPILER, U-76 keyword entry, U-120
WM COMPILE OPTION, U-76 faces
WM DIR, U-76 dictionary, U-131, U-140
WM MPLIB, U-76 FDIC
WM OPTIONS, U-76 keyword entry, U-125
WM PRECISION OPTION, U-76 featureAngle keyword, U-157
WM PROJECT DIR, U-76 features keyword, U-152
WM PROJECT INST DIR, U-76 field
WM PROJECT USER DIR, U-76 U, U-23
WM PROJECT VERSION, U-76 p, U-23
decomposition, U-82 boundary condition, U-138
FieldField<Type> template class, P-30 flattenMesh utility, U-92
fieldFunctionObjects floatTransfer keyword, U-80
library, U-98 flow
fields, P-27 free surface, U-56
mapping, U-165 laminar, U-17
fields tools, U-98 steady, turbulent, P-50
fields keyword, U-185 supersonic, P-58
Field<Type> template class, P-27 turbulent, U-17
fieldValues keyword, U-60 flow around a cylinder, P-43
file flow over backward step, P-50
Make/files, U-75 flowType utility, U-93
controlDict, P-48 fluent3DMeshToFoam utility, U-91
files, U-73 fluentInterface directory, U-181
g, U-60 fluentMeshToFoam utility, U-91, U-159
options, U-73 fluxCorrectedVelocity
snappyHexMeshDict, U-150 boundary condition, U-139
transportProperties, U-60 fluxRequired keyword, U-116
file format, U-106 OpenFOAM
fileFormats cases, U-105
library, U-99 FOAM RUN
fileModificationChecking keyword, U-80 environment variable, U-105
fileModificationSkew keyword, U-80 foamCalc utility, U-33
files file, U-73 foamCalcFunctions
filteredLinear2 library, U-98
keyword entry, U-119 foamChemistryFile keyword, U-193
finalLayerThickness keyword, U-157 foamCorrectVrt script/alias, U-164
financialFoam solver, U-90 foamDataToFluent utility, U-93, U-181
find script/alias, U-179 foamDebugSwitches utility, U-97
finite volume FoamFile keyword, U-107
discretisation, P-25 foamFile
mesh, P-29 keyword entry, U-185
finiteVolume foamFormatConvert utility, U-97
library, U-9 foamHelp utility, U-97
finiteVolume tools, U-98 foamInfoExec utility, U-97
finiteVolumeCalculus class, P-34 foamJob script/alias, U-188
finiteVolumeMethod class, P-34 foamListTimes utility, U-95
fireFoam solver, U-88 foamLog script/alias, U-188
firstTime keyword, U-113 foamMeshToFluent utility, U-91, U-181
fixed foamToEnsight utility, U-93
keyword entry, U-114 foamToEnsightParts utility, U-93
fixedGradient foamToGMV utility, U-93
boundary condition, U-138 foamToStarMesh utility, U-91
fixedValue foamToSurface utility, U-91
foamToTecplot360 utility, U-93 SuSp, P-35
foamToVTK utility, U-93 fvMatrices tools, U-98
foamUpgradeCyclics utility, U-90 fvMatrix template class, P-34
foamUpgradeFvSolution utility, U-90 fvMesh class, P-29
foamyHexMeshBackgroundMesh utility, U- fvMesh tools, U-98
91 fvMotionSolvers
foamyHexMeshSurfaceSimplify utility, U- library, U-99
91 fvSchemes
foamyHexMesh utility, U-91 dictionary, U-63, U-105, U-116
foamyQuadMesh utility, U-91 fvSchemes class, P-36
forces fvSchemes
library, U-98 menu entry, U-52
foreground fvSolution
process, U-24 dictionary, U-105, U-123
format keyword, U-107
fourth
G
keyword entry, U-120, U-121 g file, U-60
fuel keyword, U-193 gambitToFoam utility, U-91, U-159
functionObjectLibs keyword, U-179 GAMG
functions keyword, U-193 keyword entry, U-53, U-124, U-125
fvc class, P-34 Gamma
fvc member function keyword entry, U-119
curl, P-35 Gamma differencing, P-36
d2dt2, P-35 Gauss
ddt, P-35 keyword entry, U-120
div, P-35 Gausss theorem, P-34
gGrad, P-35 GaussSeidel
grad, P-35 keyword entry, U-125
laplacian, P-35 General window panel, U-174
lsGrad, P-35 general
snGrad, P-35 keyword entry, U-114
snGradCorrection, P-35 genericFvPatchField
sqrGradGrad, P-35 library, U-99
fvDOM geometric-algebraic multi-grid, U-125
library, U-101 GeometricBoundaryField template class, P-
FVFunctionObjects 30
library, U-98 geometricField<Type> template class, P-30
fvm class, P-34 geometry keyword, U-150
fvm member function gGrad
d2dt2, P-35 fvc member function, P-35
ddt, P-35 global tools, U-98
div, P-35 gmshToFoam utility, U-91
laplacian, P-35 gnuplot
Su, P-35 keyword entry, U-115, U-185
grad I
fvc member function, P-35 tensor member function, P-23
(Grad Grad) squared, P-35 icoFoam solver, U-17, U-21, U-22, U-24,
gradient, P-35, P-38 U-86
Gauss scheme, P-38 icoPolynomial model, U-101, U-195
Gausss theorem, U-52 icoUncoupledKinematicParcelFoam solver,
least square fit, U-52 U-89
least squares method, P-38, U-52 ideasToFoam utility, U-159
surface normal, P-38 ideasUnvToFoam utility, U-91
gradSchemes keyword, U-116 identities, see tensor, identities
graph tools, U-98 identity, see tensor, identity
graphFormat keyword, U-115 incompressibleLESModels
GuldersEGRLaminarFlameSpeed model, U- library, U-103
101 incompressiblePerfectGas model, U-101, U-
GuldersLaminarFlameSpeed model, U-101 195
incompressibleRASModels
H library, U-102
hConstThermo model, U-101 incompressibleTransportModels
heheupsiReactionThermo model, U-100 library, P-53, U-104
heheuPsiThermo incompressibleTurbulenceModels
keyword entry, U-192 library, P-53
Help menu, U-173 index
hePsiThermo model, U-100 notation, P-14, P-15
hePsiThermo Information window panel, U-170
keyword entry, U-192 inhomogeneousMixture model, U-100
heRhoThermo model, U-100 inhomogeneousMixture keyword, U-193
heRhoThermo inlet
keyword entry, U-192 boundary condition, P-69
HerschelBulkley model, U-104 inletOutlet
hExponentialThermo boundary condition, U-139
library, U-102 inner product, tensor, inner product
Hf keyword, U-193 inotify
hierarchical keyword entry, U-80
keyword entry, U-82, U-83 inotifyMaster
highCpCoeffs keyword, U-194 keyword entry, U-80
homogenousDynOneEqEddy model, U-103, inside
U-104 keyword entry, U-154
homogenousDynSmagorinsky model, U- insideCells utility, U-92
103 interPhaseChangeDyMFoam solver, U-87
homogeneousMixture model, U-100 interPhaseChangeFoam solver, U-87
homogeneousMixture keyword, U-193 interDyMFoam solver, U-87
hPolynomialThermo model, U-101 interfaceProperties
library, U-104
I interfaceProperties model, U-104
interFoam solver, U-87 boxToCell, U-60
interMixingFoam solver, U-87 burntProducts, U-193
internalField keyword, U-21, U-110 cAlpha, U-63
interpolation tools, U-98 cacheAgglomeration, U-126
interpolationScheme keyword, U-185 castellatedMeshControls, U-150
interpolations tools, U-98 castellatedMesh, U-150
interpolationSchemes keyword, U-116 class, U-107
inv cloud, U-187
tensor member function, P-23 commsType, U-80
iterations convertToMeters, U-141
maximum, U-124 convertToMeters, U-140
curve, U-187
J debug, U-150
janafThermo model, U-101 defaultFieldValues, U-60
jobControl deltaT, U-114
library, U-98 delta, U-83, U-198
jplot dimensions, U-21, U-110
keyword entry, U-115, U-185 distributed, U-83, U-84
divSchemes, U-116
K doLayers, U-150
kEpsilon model, U-102, U-103 edgeGrading, U-143
keyword edges, U-141
As, U-193 egrMixture, U-193
Cp, U-193 endTime, U-22, U-113, U-114
Cv, U-193 energy, U-192, U-196
FoamFile, U-107 equationOfState, U-192
Hf, U-193 errorReduction, U-158
LESModel, U-198 expansionRatio, U-157
N2, U-193 face, U-187
O2, U-193 featureAngle, U-157
Pr, U-193 features, U-152
RASModel, U-198 fieldValues, U-60
Tcommon, U-194 fields, U-185
Thigh, U-194 fileModificationChecking, U-80
Tlow, U-194 fileModificationSkew, U-80
Ts, U-193 finalLayerThickness, U-157
addLayersControls, U-150 firstTime, U-113
adjustTimeStep, U-62, U-115 floatTransfer, U-80
agglomerator, U-125 fluxRequired, U-116
arc, U-141 foamChemistryFile, U-193
blocks, U-20, U-31, U-142 format, U-107
block, U-141 fuel, U-193
boundaryField, U-21, U-110 functionObjectLibs, U-179
boundary, U-145 functions, U-115, U-177
geometry, U-150 minThickness, U-157
gradSchemes, U-116 minTriangleTwist, U-158
graphFormat, U-115 minTwist, U-158
highCpCoeffs, U-194 minVolRatio, U-158
homogeneousMixture, U-193 minVol, U-158
nhomogeneousMixture, U-193 mixture, U-193
internalField, U-21, U-110 mode, U-154
interpolationSchemes, U-116 molWeight, U-196
interpolationScheme, U-185 multiComponentMixture, U-193
laplacianSchemes, U-116 mu, U-193
latestTime, U-39 nAlphaSubCycles, U-63
layers, U-157 nBufferCellsNoExtrude, U-157
leastSquares, U-52 nCellsBetweenLevels, U-152
levels, U-154 nFaces, U-132
libs, U-80, U-115 nFinestSweeps, U-126
locationInMesh, U-152, U-154 nGrow, U-157
location, U-107 nLayerIter, U-157
lowCpCoeffs, U-194 nMoles, U-196
manualCoeffs, U-83 nPostSweeps, U-126
maxAlphaCo, U-62 nPreSweeps, U-126
maxBoundarySkewness, U-158 nRelaxIter, U-155, U-157
maxConcave, U-158 nRelaxedIter, U-157
maxCo, U-62, U-115 nSmoothNormals, U-157
maxDeltaT, U-62 nSmoothPatch, U-155
maxFaceThicknessRatio, U-157 nSmoothScale, U-158
maxGlobalCells, U-152 nSmoothSurfaceNormals, U-157
maxInternalSkewness, U-158 nSmoothThickness, U-157
maxIter, U-124 nSolveIter, U-155
maxLocalCells, U-152 neighbourPatch, U-146
maxNonOrtho, U-158 numberOfSubdomains, U-83
maxThicknessToMedialRatio, U-157 nu, U-199
mergeLevels, U-126 n, U-83
mergePatchPairs, U-141 object, U-107
mergeTolerance, U-150 order, U-83
meshQualityControls, U-150 outputControl, U-179
method, U-83 oxidant, U-193
midPointAndFace, U-187 pRefCell, U-23, U-128
midPoint, U-187 pRefValue, U-23, U-127
minArea, U-158 p rhgRefCell, U-128
minDeterminant, U-158 p rhgRefValue, U-128
minFaceWeight, U-158 patchMap, U-166
minFlatness, U-158 patches, U-141
minMedianAxisAngle, U-157 preconditioner, U-124, U-125
minRefinementCells, U-152 pressure, U-51
printCoeffs, U-42, U-198 transport, U-192, U-196
processorWeights, U-82 turbulence, U-198
processorWeights, U-83 type, U-135, U-192
purgeWrite, U-114 uniform, U-187
refGradient, U-138 valueFraction, U-138
refinementRegions, U-152, U-154 value, U-21, U-138
refinementSurfaces, U-152, U-153 version, U-107
refinementRegions, U-154 vertices, U-20, U-141
regions, U-60 veryInhomogeneousMixture, U-193
relTol, U-53, U-124 writeCompression, U-114
relativeSizes, U-157 writeControl, U-22, U-62, U-114
relaxed, U-158 writeFormat, U-55, U-114
resolveFeatureAngle, U-152, U-153 writeInterval, U-23, U-32, U-114
roots, U-83, U-84 writePrecision, U-114
runTimeModifiable, U-115 <LESModel>Coeffs, U-198
scotchCoeffs, U-83 <RASModel>Coeffs, U-198
setFormat, U-185 <delta>Coeffs, U-198
sets, U-185 keyword entry
simpleGrading, U-143 BSpline, U-142
simulationType, U-41, U-61, U-197 CrankNicolson, U-122
singleStepReactingMixture, U-193 CrossPowerLaw, U-60
smoother, U-126 DICGaussSeidel, U-125 DIC, U-125
snGradSchemes, U-116 DILU, U-125
snapControls, U-150 Euler, U-122
snap, U-150 FDIC, U-125
solvers, U-123 GAMG, U-53, U-124, U-125
solver, U-53, U-123 Gamma, U-119
specie, U-196 GaussSeidel, U-125
spline, U-141 Gauss, U-120
startFace, U-132 LESModel, U-41
startFrom, U-22, U-113 LES, U-41, U-197
startTime, U-22, U-113 MGridGen, U-125
stopAt, U-113 MUSCL, U-119
strategy, U-82, U-83 Newtonian, U-60
surfaceFormat, U-185 PBiCG, U-124
surfaces, U-185 PCG, U-124
thermoType, U-191 QUICK, U-122
thermodynamics, U-196 RASModel, U-41
timeFormat, U-114 RAS, U-41, U-197
timePrecision, U-115 SFCD, U-119, U-122
timeScheme, U-116 UMIST, U-117
tolerance, U-53, U-124, U-155 adjustableRunTime, U-62, U-114
topoSetSource, U-60 arc, U-142
traction, U-51 ascii, U-114
backward, U-122 localEuler, U-122
binary, U-114 manual, U-82, U-83
blocking, U-80 metis, U-83
bounded, U-120, U-121 midPoint, U-119
cellLimited, U-120 nextWrite, U-114
cellPointFace, U-185 noWriteNow, U-114
cellPoint, U-185 nonBlocking, U-80
cell, U-185 none, U-117, U-125
clockTime, U-114 null, U-185
compressed, U-114 outputTime, U-179
corrected, U-120, U-121 outside, U-154
cpuTime, U-114 patch, U-137, U-186
cubicCorrected, U-122 polyLine, U-142
cubicCorrection, U-119 processor, U-137
cyclic, U-137 pureMixture, U-193
diagonal, U-124, U-125 raw, U-115, U-185
distance, U-154, U-187 reactingMixture, U-193
dx, U-185 runTime, U-32, U-114
empty, U-137 scheduled, U-80
faceAreaPair, U-125 scientific, U-114
faceLimited, U-120 scotch, U-82, U-83
filteredLinear2, U-119 simple, U-82, U-83
fixed, U-114 skewLinear, U-119, U-122
foamFile, U-185 smoothSolver, U-124
fourth, U-120, U-121 spline, U-142
general, U-114 startTime, U-22, U-113
gnuplot, U-115, U-185 steadyState, U-122
hePsiThermo, U-192 stl, U-185
heRhoThermo, U-192 symmetryPlane, U-137
heheuPsiThermo, U-192 timeStampMaster, U-80
hierarchical, U-82, U-83 timeStamp, U-80
inotifyMaster, U-80 timeStep, U-23, U-32, U-114, U-179
inotify, U-80 uncompressed, U-114
inside, U-154 uncorrected, U-120, U-121
jplot, U-115, U-185 upwind, U-119, U-122
laminar, U-41, U-197 vanLeer, U-119
latestTime, U-113 vtk, U-185
leastSquares, U-120 wall, U-137
limitedCubic, U-119 wedge, U-137
limitedLinear, U-119 writeControl, U-114
limited, U-120, U-121 writeInterval, U-179
linearUpwind, U-119, U-122 writeNow, U-113
linear, U-119, U-122 xmgr, U-115, U-185
line, U-142 xyz, U-187
x, U-187 library, U-103
y, U-187 LESModel
z, U-187 keyword entry, U-41
kivaToFoam utility, U-91 LESModel keyword, U-198
kkLOmega model, U-102 levels keyword, U-154
kOmega model, U-102 libraries, U-69
kOmegaSST model, U-102, U-103 library
kOmegaSSTSAS model, U-103 Chung, U-101
Kronecker delta, P-19 FVFunctionObjects, U-98
LESdeltas, U-103
L LESfilters, U-103
lagrangian MGridGenGAMGAgglomeration, U-
library, U-99 99
lagrangianIntermediate ODE, U-99
library, U-99 OSspecific, U-99
Lambda2 utility, U-94 OpenFOAM, U-98 P1, U-101
LamBremhorstKE model, U-102 PV4FoamReader, U-169
laminar model, U-102, U-103 SLGThermo, U-102
laminar Wallis, U-101
keyword entry, U-41, U-197 autoMesh, U-99
laminarFlameSpeedModels barotropicCompressibilityModels, U-
library, U-101 101
laplaceFilter model, U-103 basicSolidThermo, U-102
Laplacian, P-36 basicThermophysicalModels, U-100
laplacian, P-35 blockMesh, U-99
laplacian chemistryModel, U-102
fvc member function, P-35 cloudFunctionObjects, U-98
fvm member function, P-35 coalCombustion, U-99
laplacianFoam solver, U-86 compressibleLESModels, U-104
laplacianSchemes keyword, U-116 compressibleRASModels, U-103
latestTime conversion, U-99
keyword entry, U-113 decompositionMethods, U-99
latestTime keyword, U-39 distributionModels, U-99
LaunderGibsonRSTM model, U-102, U-103 dsmc, U-99
LaunderSharmaKE model, U-102, U-103 dynamicFvMesh, U-99
layers keyword, U-157 dynamicMesh, U-99
leastSquares edgeMesh, U-99
keyword entry, U-120 engine, U-99
leastSquares keyword, U-52 fieldFunctionObjects, U-98
LES fileFormats, U-99
keyword entry, U-41, U-197 finiteVolume, U-98
LESdeltas foamCalcFunctions, U-98
library, U-103 forces, U-98
LESfilters fvDOM, U-101
fvMotionSolvers, U-99 twoPhaseProperties, U-104
genericFvPatchField, U-99 utilityFunctionObjects, U-99
hExponentialThermo, U-102 viewFactor, U-101
incompressibleLESModels, U-103 vtkPV4Foam, U-169
incompressibleRASModels, U-102 libs keyword, U-80, U-115
incompressibleTransportModels, P-53, lid-driven cavity flow, U-17
U-104 LienCubicKE model, U-102
incompressibleTurbulenceModels, P-53 LienCubicKELowRe model, U-102
interfaceProperties, U-104 LienLeschzinerLowRe model, U-102
jobControl, U-98 Lights button, U-174
lagrangianIntermediate, U-99 limited
lagrangian, U-99 keyword entry, U-120, U-121
laminarFlameSpeedModels, U-101 limitedCubic
linear, U-101 keyword entry, U-119
liquidMixtureProperties, U-102 limitedLinear
liquidProperties, U-102 keyword entry, U-119
meshTools, U-99 line
molecularMeasurements, U-99 keyword entry, U-142
molecule, U-99 Line Style menu, U-35
opaqueSolid, U-101 linear
pairPatchAgglomeration, U-99 library, U-101
postCalc, U-98 linear model, U-195
potential, U-99 linear
primitive, P-21 keyword entry, U-119, U-122
radiationModels, U-100 linearUpwind
randomProcesses, U-99 keyword entry, U-119, U-122
reactionThermophysicalModels, U-100 liquid
sampling, U-98 electrically-conducting, P-67
solidChemistryModel, U-102 liquidMixtureProperties
solidMixtureProperties, U-102 library, U-102
solidParticle, U-99 liquidProperties
solidProperties, U-102 library, U-102
solidSpecie, U-102 lists, P-27
solidThermo, U-102 List<Type> template class, P-27
specie, U-101 localEuler
spray, U-99 keyword entry, U-122
surfMesh, U-99 location keyword, U-107
surfaceFilmModels, U-104 locationInMesh keyword, U-152, U-154
systemCall, U-99 lowCpCoeffs keyword, U-194
thermophysicalFunctions, U-101 lowReOneEqEddy model, U-104
thermophysical, U-191 LRDDiffStress model, U-103
topoChangerFvMesh, U-99 LRR model, U-102, U-103
triSurface, U-99 lsGrad
turbulence, U-99 fvc member function, P-35
memory tools, U-98
M menu
Mach utility, U-94 Color By, U-173
mag Current Time Controls, U-25, U-171
tensor member function, P-23 Edit, U-174
magneticFoam solver, U-89 Help, U-173
magnetohydrodynamics, P-67 Line Style, U-35
magSqr Marker Style, U-35
tensor member function, P-23 VCR Controls, U-25, U-171
Make directory, U-73 View, U-170, U-173
make script/alias, U-71 menu entry
Make/files file, U-75 Plot Over Line, U-34
manual Save Animation, U-175
keyword entry, U-82, U-83 Save Screenshot, U-175
manualCoeffs keyword, U-83 Settings, U-174
mapFields utility, U-31, U-38, U-42, U-56, Solid Color, U-173
U-90,U-165 Toolbars, U-173
mapFieldsPar utility, U-90 View Settings, U-24, U-173
mapping Wireframe, U-173
fields, U-165 fvSchemes, U-52
Marker Style menu, U-35 mergeLevels keyword, U-126
matrices tools, U-98 mergeMeshes utility, U-92
max mergeOrSplitBaffles utility, U-92
tensor member function, P-23 mergePatchPairs keyword, U-141
maxAlphaCo keyword, U-62 mergeTolerance keyword, U-150
maxBoundarySkewness keyword, U-158 mesh
maxCo keyword, U-62, U-115 1-dimensional, U-133
maxConcave keyword, U-158 1D, U-133
maxDeltaT keyword, U-62 2-dimensional, U-133
maxDeltaxyz model, U-103 2D, U-133
maxFaceThicknessRatio keyword, U-157 axi-symmetric, U-133
maxGlobalCells keyword, U-152 basic, P-29
maximum iterations, U-124 block structured, U-140
maxInternalSkewness keyword, U-158 decomposition, U-82
maxIter keyword, U-124 description, U-129
maxLocalCells keyword, U-152 finite volume, P-29
maxNonOrtho keyword, U-158 generation, U-140, U-149
maxThicknessToMedialRatio keyword, U- grading, U-140, U-143
157 grading, example of, P-50
mdEquilibrationFoam solver, U-89 non-orthogonal, P-43
mdFoam solver, U-89 refinement, P-61
mdInitialise utility, U-90 resolution, U-29
mechanicalProperties specification, U-129
dictionary, U-51 split-hex, U-149
Stereolithography (STL), U-149 model
surface, U-149 APIfunctions, U-102
validity constraints, U-129 BirdCarreau, U-104
Mesh Parts window panel, U-24 CrossPowerLaw, U-104
meshes tools, U-98 DeardorffDiffStress, U-103, U-104
meshQualityControls keyword, U-150 GuldersEGRLaminarFlameSpeed, U-101
meshTools GuldersLaminarFlameSpeed, U-101
library, U-99 HerschelBulkley, U-104
message passing interface LRDDiffStress, U-103
openMPI, U-84 LRR, U-102, U-103
method keyword, U-83 LamBremhorstKE, U-102
metis LaunderGibsonRSTM, U-102, U-103
keyword entry, U-83 LaunderSharmaKE, U-102, U-103
metisDecomp model, U-100 LienCubicKELowRe, U-102
MGridGenGAMGAgglomeration LienCubicKE, U-102
library, U-99 LienLeschzinerLowRe, U-102
MGridGen NSRDSfunctions, U-102
keyword entry, U-125 Newtonian, U-104
mhdFoam solver, P-69, U-89 NonlinearKEShih, U-102
midPoint PengRobinsonGas, U-195
keyword entry, U-119 PrandtlDelta, U-103
midPoint keyword, U-187 RNGkEpsilon, U-102, U-103
midPointAndFace keyword, U-187 RaviPetersen, U-101
min Smagorinsky2, U-103
tensor member function, P-23 Smagorinsky, U-103, U-104
minArea keyword, U-158 SpalartAllmarasDDES, U-104
minDeterminant keyword, U-158 SpalartAllmarasIDDES, U-104
minFaceWeight keyword, U-158 SpalartAllmaras, U-102U-104
minFlatness keyword, U-158 adiabaticPerfectFluid, U-101, U-195
minMedianAxisAngle keyword, U-157 anisotropicFilter, U-103
MINMOD differencing, P-36 basicMultiComponentMixture, U-100
minRefinementCells keyword, U-152 chemistryModel, U-102
minThickness keyword, U-157 chemistrySolver, U-102
minTriangleTwist keyword, U-158 constTransport, U-101
minTwist keyword, U-158 constant, U-101
minVol keyword, U-158 cubeRootVolDelta, U-103
minVolRatio keyword, U-158 decompose, U-100
mirrorMesh utility, U-92 distributed, U-100
mixed dynLagrangian, U-103
boundary condition, U-138 dynOneEqEddy, U-103
mixedSmagorinsky model, U-103 eConstThermo, U-101
mixture keyword, U-193 egrMixture, U-100
mixtureAdiabaticFlameT utility, U-97 hConstThermo, U-101
mode keyword, U-154 hPolynomialThermo, U-101
hePsiThermo, U-100 scotchDecomp, U-100
heRhoThermo, U-100 simpleFilter, U-103
heheuPsiThermo, U-100 singleStepReactingMixture, U-100
homogenousDynOneEqEddy, U-103, U- smoothDelta, U-103
104 specieThermo, U-101
homogenousDynSmagorinsky, U-103 spectEddyVisc, U-103
homogeneousMixture, U-100 sutherlandTransport, U-101
icoPolynomial, U-101, U-195 v2f, U-103
incompressiblePerfectGas, U-101, U-195 vanDriestDelta, U-104
inhomogeneousMixture, U-100 veryInhomogeneousMixture, U-100
interfaceProperties, U-104 modifyMesh utility, U-93
janafThermo, U-101 molecularMeasurements
kEpsilon, U-102, U-103 library, U-99
kOmegaSSTSAS, U-103 molecule
kOmegaSST, U-102, U-103 library, U-99
kOmega, U-102 molWeight keyword, U-196
kkLOmega, U-102 moveDynamicMesh utility, U-92
laminar, U-102, U-103 moveEngineMesh utility, U-92
laplaceFilter, U-103 moveMesh utility, U-92
linear, U-195 movingWallVelocity
lowReOneEqEddy, U-104 boundary condition, U-139
maxDeltaxyz, U-103 MPI
metisDecomp, U-100 openMPI, U-84
mixedSmagorinsky, U-103 mshToFoam utility, U-91
multiComponentMixture, U-100 mu keyword, U-193
multiphaseMixtureThermo, U-192 multiComponentMixture model, U-100
oneEqEddy, U-103, U-104 multiComponentMixture keyword, U-193
perfectFluid, U-101, U-195 multigrid
perfectGas, U-195 geometric-algebraic, U-125
polynomialTransport, U-101 multiphaseEulerFoam solver, U-87
powerLaw, U-104 multiphaseInterFoam solver, U-87
psiReactionThermo, U-100, U-192 multiphaseMixtureThermo model, U-192
psiThermo, U-192 MUSCL
psiuReactionThermo, U-100, U-192 keyword entry, U-119
ptsotchDecomp, U-100
pureMixture, U-100
N
qZeta, U-102 n keyword, U-83
reactingMixture, U-100 N2 keyword, U-193
realizableKE, U-102, U-103 nabla
reconstruct, U-100 operator, P-25
rhoConst, U-101, U-195 nAlphaSubCycles keyword, U-63
rhoReactionThermo, U-100, U-192 nBufferCellsNoExtrude keyword, U-157
rhoThermo, U-192 nCellsBetweenLevels keyword, U-152
scaleSimilarity, U-103 neighbour
dictionary, U-132 oneEqEddy model, U-103, U-104
neighbourPatch keyword, U-146 Opacity text box, U-173
netgenNeutralToFoam utility, U-91 opaqueSolid
Newtonian library, U-101
keyword entry, U-60 OpenFOAM
Newtonian model, U-104 applications, U-69
nextWrite file format, U-106
keyword entry, U-114 libraries, U-69
nFaces keyword, U-132 OpenFOAM
nFinestSweeps keyword, U-126 library, U-98
nGrow keyword, U-157 OpenFOAM file syntax
nLayerIter keyword, U-157 //, U-106
nMoles keyword, U-196 openMPI
non-orthogonal mesh, P-43 message passing interface, U-84
nonBlocking MPI, U-84
keyword entry, U-80 operator
none scalar, P-26
keyword entry, U-117, U-125 vector, P-25
NonlinearKEShih model, U-102 Options window, U-174
nonNewtonianIcoFoam solver, U-86 options file, U-73
noWriteNow order keyword, U-83
keyword entry, U-114 Orientation Axes button, U-24
nPostSweeps keyword, U-126 orientFaceZone utility, U-92
nPreSweeps keyword, U-126 OSspecific
nRelaxedIter keyword, U-157 library, U-99
nRelaxIter keyword, U-155, U-157 outer product, see tensor, outer product
nSmoothNormals keyword, U-157 outlet
nSmoothPatch keyword, U-155 boundary condition, P-69
nSmoothScale keyword, U-158 outletInlet
nSmoothSurfaceNormals keyword, U-157 boundary condition, U-139
nSmoothThickness keyword, U-157 outputControl keyword, U-179
nSolveIter keyword, U-155 outputTime
NSRDSfunctions model, U-102 keyword entry, U-179
nu keyword, U-199 outside
null keyword entry, U-154
keyword entry, U-185 owner
numberOfSubdomains keyword, U-83 dictionary, U-131
oxidant keyword, U-193
O
O2 keyword, U-193
P
object keyword, U-107 p field, U-23
objToVTK utility, U-92 P1
ODE library, U-101
library, U-99 p rhgRefCell keyword, U-128
p rhgRefValue keyword, U-128 polyDualMesh utility, U-92
pairPatchAgglomeration polyLine
library, U-99 keyword entry, U-142
paraFoam, U-23, U-169 polyMesh directory, U-105, U-131
parallel polyMesh class, P-29, U-129, U-131
running, U-81 polynomialTransport model, U-101
Paramters window panel, U-171 polyPatch class, P-29
partialSlip polyPatchList class, P-29
boundary condition, U-139 post-processing, U-169
particleTracks utility, U-95 post-processing
patch paraFoam, U-169
boundary condition, U-136 postCalc
patch library, U-98
keyword entry, U-137, U-186 postChannel utility, U-95
patchAverage utility, U-94 potential
patches keyword, U-141 library, U-99
patchIntegrate utility, U-94 potentialFreeSurfaceFoam solver, U-87
patchMap keyword, U-166 potentialFoam solver, P-44, U-86
patchSummary utility, U-97 pow
PBiCG tensor member function, P-23
keyword entry, U-124 powerLaw model, U-104
PCG pPrime2 utility, U-94
keyword entry, U-124 Pr keyword, U-193
pdfPlot utility, U-95 PrandtlDelta model, U-103
PDRFoam solver, U-88 preconditioner keyword, U-124, U-125
PDRMesh utility, U-93 pRefCell keyword, U-23, U-128
Pe utility, U-94 pRefValue keyword, U-23, U-127
PengRobinsonGas model, U-195 pressure keyword, U-51
perfectFluid model, U-101, U-195 pressure waves
perfectGas model, U-195 in liquids, P-62
permutation symbol, P-18 pressureDirectedInletVelocity
pimpleFoam solver, U-86 boundary condition, U-139
Pipeline Browser window, U-24, U-170 pressureInletVelocity
PISO boundary condition, U-139
dictionary, U-23 pressureOutlet
pisoFoam solver, U-17, U-86 boundary condition, P-63
Plot Over Line pressureTransmissive
menu entry, U-34 boundary condition, U-139
plot3dToFoam utility, U-91 primitive
pointField class, P-29 library, P-21
pointField<Type> template class, P-31 primitives tools, U-98
points printCoeffs keyword, U-42, U-198
dictionary, U-131, U-140 processorWeights keyword, U-82
polyBoundaryMesh class, P-29 probeLocations utility, U-95
process reactingFoam solver, U-88
background, U-24, U-81 reactingMixture model, U-100
foreground, U-24 reactingMixture
processor keyword entry, U-193
boundary condition, U-138 reactingParcelFilmFoam solver, U-89
processor reactingParcelFoam solver, U-89
keyword entry, U-137 reactionThermophysicalModels
processorN directory, U-83 library, U-100
processorWeights keyword, U-83 realizableKE model, U-102, U-103
Properties window, U-171, U-172 reconstruct model, U-100
Properties window panel, U-25, U-170 reconstructPar utility, U-85, U-97
psiReactionThermo model, U-100, U-192 reconstructParMesh utility, U-97
psiThermo model, U-192 redistributePar utility, U-97
psiuReactionThermo model, U-100, U-192 refGradient keyword, U-138
ptot utility, U-95 refineHexMesh utility, U-93
ptsotchDecomp model, U-100 refinementRegions keyword, U-154
pureMixture model, U-100 refinementLevel utility, U-93
pureMixture refinementRegions keyword, U-152, U-154
keyword entry, U-193 refinementSurfaces keyword, U-152, U-153
purgeWrite keyword, U-114 refineMesh utility, U-92
PV4FoamReader refineWallLayer utility, U-93
library, U-169 Refresh Times button, U-25, U-171
regions keyword, U-60
Q relative tolerance, U-124
Q utility, U-94 relativeSizes keyword, U-157
QUICK relaxed keyword, U-158
keyword entry, U-122 relTol keyword, U-53, U-124
qZeta model, U-102 removeFaces utility, U-93
Render View window, U-174
R Render View window panel, U-173, U-174
R utility, U-94 renumberMesh utility, U-92
radiationModels Rescale to Data Range button, U-25
library, U-100 Reset button, U-170
randomProcesses resolveFeatureAngle keyword, U-152, U-
library, U-99 153
RAS restart, U-39
keyword entry, U-41, U-197 Reynolds number, U-17, U-21
RASModel rhoPorousSimpleFoam solver, U-86
keyword entry, U-41 rhoReactingBuoyantFoam solver, U-88
RASModel keyword, U-198 rhoCentralDyMFoam solver, U-86
RaviPetersen model, U-101 rhoCentralFoam solver, U-86
raw rhoConst model, U-101, U-195
keyword entry, U-115, U-185 rhoPimpleFoam solver, U-86
reactingEulerFoam solver, U-88 rhoReactingFoam solver, U-88
rhoReactionThermo model, U-100, U-192 foamJob, U-188
rhoSimpleFoam solver, U-86 foamLog, U-188
rhoSimplecFoam solver, U-86 make, U-71
rhoThermo model, U-192 rmdepall, U-77
rmdepall script/alias, U-77 wclean, U-76
RNGkEpsilon model, U-102, U-103 wmake, U-71
roots keyword, U-83, U-84 second time derivative, P-35
rotateMesh utility, U-92 Seed window, U-175
run selectCells utility, U-93
parallel, U-81 Set Ambient Color button, U-173
run directory, U-105 setFields utility, U-60, U-90
runTime setFormat keyword, U-185
keyword entry, U-32, U-114 sets keyword, U-185
runTimeModifiable keyword, U-115 setSet utility, U-92
setsToZones utility, U-92
S Settings
sammToFoam utility, U-91 menu entry, U-174
sample utility, U-95, U-184 SFCD
sampling keyword entry, U-119, U-122
library, U-98 shallowWaterFoam solver, U-86
Save Animation shape, U-143
menu entry, U-175 SI units, U-110
Save Screenshot simple
menu entry, U-175 keyword entry, U-82, U-83
scalar, P-14 simpleFilter model, U-103
operator, P-26 simpleFoam solver, P-53, U-86
scalar class, P-22 simpleGrading keyword, U-143
scalarField class, P-27 simulationType keyword, U-41, U-61, U-
scalarTransportFoam solver, U-86 197
scale singleCellMesh utility, U-92
tensor member function, P-23 singleStepReactingMixture model, U-100
scalePoints utility, U-162 singleStepReactingMixture keyword, U-193
scaleSimilarity model, U-103 skew
scheduled tensor member function, P-23
keyword entry, U-80 skewLinear
scientific keyword entry, U-119, U-122
keyword entry, U-114 SLGThermo
scotch library, U-102
keyword entry, U-82, U-83 slice class, P-29
scotchCoeffs keyword, U-83 slip
scotchDecomp model, U-100 boundary condition, U-139
script/alias Smagorinsky model, U-103, U-104
find, U-179 Smagorinsky2 model, U-103
foamCorrectVrt, U-164 smapToFoam utility, U-93
smoothDelta model, U-103 boundaryFoam, U-86
smoother keyword, U-126 buoyantBoussinesqPimpleFoam, U-88
smoothSolver buoyantBoussinesqSimpleFoam, U-88
keyword entry, U-124 buoyantPimpleFoam, U-88
snap keyword, U-150 buoyantSimpleFoam, U-88
snapControls keyword, U-150 cavitatingDyMFoam, U-87
snappyHexMesh utility cavitatingFoam, U-87
background mesh, U-151 chemFoam, U-88
cell removal, U-154 chtMultiRegionFoam, U-88
cell splitting, U-152 chtMultiRegionSimpleFoam, U-88
mesh layers, U-155 coalChemistryFoam, U-89
meshing process, U-149 coldEngineFoam, U-88
snapping to surfaces, U-155 compressibleInterDyMFoam, U-87
snappyHexMesh utility, U-91, U-149 compressibleInterFoam, U-87
snappyHexMeshDict file, U-150 compressibleMultiphaseInterFoam, U-
snGrad 87
fvc member function, P-35 dnsFoam, U-88
snGradCorrection driftFluxFoam, U-87
fvc member function, P-35 dsmcFoam, U-89
snGradSchemes keyword, U-116 electrostaticFoam, U-89
Solid Color engineFoam, U-88
menu entry, U-173 financialFoam, U-90
solidChemistryModel fireFoam, U-88
library, U-102 icoFoam, U-17, U-21, U-22, U-24, U-
solidDisplacementFoam solver, U-89 86
solidDisplacementFoam solver, U-51 icoUncoupledKinematicParcelFoam,
solidEquilibriumDisplacementFoam solver, U-89
U-89 interFoam, U-87
solidMixtureProperties interMixingFoam, U-87
library, U-102 interPhaseChangeDyMFoam, U-87
solidParticle interPhaseChangeFoam, U-87
library, U-99 laplacianFoam, U-86
solidProperties magneticFoam, U-89
library, U-102 mdEquilibrationFoam, U-89
solidSpecie mdFoam, U-89
library, U-102 mhdFoam, P-69, U-89
solidThermo multiphaseEulerFoam, U-87
library, U-102 multiphaseInterFoam, U-87
solver nonNewtonianIcoFoam, U-86
DPMFoam, U-89 pimpleFoam, U-86
PDRFoam, U-88 pisoFoam, U-17, U-86
XiFoam, U-88 potentialFoam, P-44, U-86
adjointShapeOptimizationFoam, U-86 potentialFreeSurfaceFoam, U-87
blockMesh, P-45 reactingEulerFoam, U-88
reactingFoam, U-88 spline keyword, U-141
reactingParcelFilmFoam, U-89 splitCells utility, U-93
reactingParcelFoam, U-89 splitMesh utility, U-92
rhoCentralDyMFoam, U-86 splitMeshRegions utility, U-92
rhoCentralFoam, U-86 spray
rhoPimpleFoam, U-86 library, U-99
rhoReactingFoam, U-88 sprayFoam solver, U-89
rhoSimpleFoam, U-86 sqr
rhoSimplecFoam, U-86 tensor member function, P-23
rhoPorousSimpleFoam, U-86 sqrGradGrad
rhoReactingBuoyantFoam, U-88 fvc member function, P-35
scalarTransportFoam, U-86 star3ToFoam utility, U-91
shallowWaterFoam, U-86 star4ToFoam utility, U-91
simpleFoam, P-53, U-86 startFace keyword, U-132
solidDisplacementFoam, U-89 startFrom keyword, U-22, U-113
solidDisplacementFoam, U-51 starToFoam utility, U-159
solidEquilibriumDisplacementFoam, startTime
U-89 keyword entry, U-22, U-113
sonicDyMFoam, U-86 startTime keyword, U-22, U-113
sonicFoam, P-59, U-87 steady flow
sonicLiquidFoam, P-63, U-87 turbulent, P-50
sprayFoam, U-89 steadyParticleTracks utility, U-95
thermoFoam, U-88 steadyState
twoLiquidMixingFoam, U-88 keyword entry, U-122
twoPhaseEulerFoam, U-88 Stereolithography (STL), U-149
uncoupledKinematicParcelFoam, U-89 stitchMesh utility, U-92
solver keyword, U-53, U-123 stl
solver relative tolerance, U-124 keyword entry, U-185
solver tolerance, U-124 stopAt keyword, U-113
solvers keyword, U-123 strategy keyword, U-82, U-83
sonicDyMFoam solver, U-86 streamFunction utility, U-94
sonicFoam solver, P-59, U-87 stress analysis of plate with hole, U-46
sonicLiquidFoam solver, P-63, U-87 stressComponents utility, U-94
source, P-35 Style window panel, U-173
SpalartAllmaras model, U-102U-104 Su
SpalartAllmarasDDES model, U-104 fvm member function, P-35
SpalartAllmarasIDDES model, U-104 subsetMesh utility, U-93
specie summation convention, P-15
library, U-101 SUPERBEE differencing, P-36
specie keyword, U-196 supersonic flow, P-58
specieThermo model, U-101 supersonic flow over forward step, P-58
spectEddyVisc model, U-103 supersonicFreeStream
spline boundary condition, U-139
keyword entry, U-142 surfaceLambdaMuSmooth utility, U-96
surface mesh, U-149 symmetryPlane
surfaceAdd utility, U-95 boundary condition, P-63, U-137
surfaceAutoPatch utility, U-95 symmetryPlane
surfaceBooleanFeatures utility, U-95 keyword entry, U-137
surfaceCheck utility, U-95 symmTensorField class, P-27
surfaceClean utility, U-95 symmTensorThirdField class, P-27
surfaceCoarsen utility, U-95 system directory, P-48, U-105
surfaceConvert utility, U-95 systemCall
surfaceFeatureConvert utility, U-95 library, U-99
surfaceFeatureExtract utility, U-95, U-153
surfaceField<Type> template class, P-31
T
surfaceFilmModels T()
library, U-104 tensor member function, P-23
surfaceFind utility, U-95 Tcommon keyword, U-194
surfaceFormat keyword, U-185 template class
surfaceHookUp utility, U-95 GeometricBoundaryField, P-30
surfaceInertia utility, U-96 fvMatrix, P-34
surfaceMesh tools, U-98 dimensioned<Type>, P-24
surfaceMeshConvert utility, U-96 FieldField<Type>, P-30
surfaceMeshConvertTesting utility, U-96 Field<Type>, P-27
surfaceMeshExport utility, U-96 geometricField<Type>, P-30
surfaceMeshImport utility, U-96 List<Type>, P-27
surfaceMeshInfo utility, U-96 pointField<Type>, P-31
surfaceMeshTriangulate utility, U-96 surfaceField<Type>, P-31
surfaceNormalFixedValue volField<Type>, P-31
boundary condition, U-139 temporal discretisation, P-40
surfaceOrient utility, U-96 Crank Nicholson, P-41
surfacePointMerge utility, U-96 Euler implicit, P-40
surfaceRedistributePar utility, U-96 explicit, P-40
surfaceRefineRedGreen utility, U-96 in OpenFOAM, P-41
surfaces keyword, U-185 temporalInterpolate utility, U-95
surfaceSplitByPatch utility, U-96 tensor, P-13
surfaceSplitByTopology utility, U-96 addition, P-16
surfaceSplitNonManifolds utility, U-96 algebraic operations, P-16
surfaceSubset utility, U-96 algebraic operations in OpenFOAM, P-
surfaceToPatch utility, U-96 22
surfaceTransformPoints utility, U-96 antisymmetric, see tensor, skew
surfMesh calculus, P-25
library, U-99 classes in OpenFOAM, P-21
SuSp cofactors, P-20
fvm member function, P-35 component average, P-18
sutherlandTransport model, U-101 component maximum, P-18
symm component minimum, P-18
tensor member function, P-23 determinant, P-20
deviatoric, P-20 cofactors, P-23
diagonal, P-20 det, P-23
dimension, P-14 dev, P-23
double inner product, P-17 diag, P-23
geometric transformation, P-19 I, P-23
Hodge dual, P-21 inv, P-23
hydrostatic, P-20 mag, P-23
identities, P-19 magSqr, P-23
identity, P-19 max, P-23
inner product, P-16 min, P-23
inverse, P-21 pow, P-23
magnitude, P-18 scale, P-23
magnitude squared, P-18 skew, P-23
mathematics, P-13 sqr, P-23
notation, P-15 symm, P-23
nth power, P-18 T(), P-23
outer product, P-17 tr, P-23
rank, P-14 transform, P-23
rank 3, P-15 tensorField class, P-27
scalar division, P-16 tensorThirdField class, P-27
scalar multiplication, P-16 tetgenToFoam utility, U-91
scale function, P-18 text box
second rank, P-14 Opacity, U-173
skew, P-20 thermalProperties
square of, P-18 dictionary, U-51
subtraction, P-16 thermodynamics keyword, U-196
symmetric, P-20 thermoFoam solver, U-88
symmetric rank 2, P-14 thermophysical
symmetric rank 3, P-15 library, U-191
trace, P-20 thermophysicalFunctions
transformation, P-19 library, U-101
transpose, P-14, P-20 thermophysicalProperties
triple inner product, P-17 dictionary, U-191
vector cross product, P-18 thermoType keyword, U-191
tensor class, P-22 Thigh keyword, U-194
tensor member function time
*, P-23 control, U-113
+, P-23 time derivative, P-35
-, P-23 first, P-37
/, P-23 second, P-35, P-37
&, P-23 time step, U-22
&&, P-23 timeFormat keyword, U-114
^, P-23 timePrecision keyword, U-115
cmptAv, P-23 timeScheme keyword, U-116
timeStamp traction keyword, U-51
keyword entry, U-80 transform
timeStampMaster tensor member function, P-23
keyword entry, U-80 transformPoints utility, U-93
timeStep transport keyword, U-192, U-196
keyword entry, U-23, U-32, U-114, U- transportProperties
179 dictionary, U-21, U-39, U-42, U-199
Tlow keyword, U-194 transportProperties file, U-60
tolerance triple inner product, P-17
solver, U-124 triSurface
solver relative, U-124 library, U-99
tolerance keyword, U-53, U-124, U-155 Ts keyword, U-193
Toolbars turbulence
menu entry, U-173 dissipation, U-40
tools kinetic energy, U-40
algorithms, U-98 length scale, U-41
cfdTools, U-98 turbulence
containers, U-98 library, U-99
db, U-98 turbulence keyword, U-198
dimensionSet, U-98 turbulence model
dimensionedTypes, U-98 RAS, U-40
fields, U-98 turbulenceProperties
finiteVolume, U-98 dictionary, U-41, U-61, U-197
fvMatrices, U-98 turbulent flow
fvMesh, U-98 steady, P-50
global, U-98 turbulentInlet
graph, U-98 boundary condition, U-139
interpolations, U-98 tutorials
interpolation, U-98 breaking of a dam, U-56
matrices, U-98 lid-driven cavity flow, U-17
memory, U-98 stress analysis of plate with hole, U-46
meshes, U-98 tutorials directory, P-43, U-17
primitives, U-98 twoLiquidMixingFoam solver, U-88
surfaceMesh, U-98 twoPhaseEulerFoam solver, U-88
volMesh, U-98 twoPhaseProperties
topoChangerFvMesh library, U-104
library, U-99 type keyword, U-135, U-192
topoSet utility, U-93
topoSetSource keyword, U-60
U
totalPressure U field, U-23
boundary condition, U-139 Ucomponents utility, P-70
tr UMIST
tensor member function, P-23 keyword entry, U-117
trace, see tensor, trace uncompressed
keyword entry, U-114 chemkinToFoam, U-97
uncorrected collapseEdges, U-93
keyword entry, U-120, U-121 combinePatchFaces, U-93
uncoupledKinematicParcelFoam solver, U- createBaffles, U-92
89 createPatch, U-92
uniform keyword, U-187 createTurbulenceFields, U-94
units createExternalCoupledPatchGeometry,
base, U-110 U-90
of measurement, P-24, U-109 datToFoam, U-91
S.I. base, P-24 decomposePar, U-82, U-83, U-97
SI, U-110 deformedGeom, U-92
Syst`eme International, U-110 dsmcFieldsCalc, U-95
United States Customary System, U- dsmcInitialise, U-90
110 engineCompRatio, U-95
USCS, U-110 engineSwirl, U-90
Update GUI button, U-171 ensight74FoamExec, U-183
uprime utility, U-94 ensightFoamReader, U-93
upwind enstrophy, U-93
keyword entry, U-119, U-122 equilibriumCO, U-97
upwind differencing, P-36, U-63 equilibriumFlameT, U-97
USCS units, U-110 execFlowFunctionObjects, U-95
Use Parallel Projection button, U-24 expandDictionary, U-97
utility extrude2DMesh, U-91
Co, U-93 extrudeMesh, U-91
Lambda2, U-94 extrudeToRegionMesh, U-91
Mach, U-94 faceAgglomerate, U-90
PDRMesh, U-93 flattenMesh, U-92
Pe, U-94 flowType, U-93
Q, U-94 fluent3DMeshToFoam, U-91
R, U-94 fluentMeshToFoam, U-91, U-159
Ucomponents, P-70 foamCalc, U-33
adiabaticFlameT, U-97 foamDataToFluent, U-93, U-181
ansysToFoam, U-91 foamDebugSwitches, U-97
applyBoundaryLayer, U-90 foamFormatConvert, U-97
applyWallFunctionBoundaryCondition foamHelp, U-97
s, U-90 foamInfoExec, U-97
attachMesh, U-92 foamListTimes, U-95
autoPatch, U-92 foamMeshToFluent, U-91, U-181
autoRefineMesh, U-93 foamToEnsightParts, U-93
blockMesh, U-38, U-91, U-140 foamToEnsight, U-93
boxTurb, U-90 foamToGMV, U-93
cfx4ToFoam, U-91, U-159 foamToStarMesh, U-91
changeDictionary, U-90 foamToSurface, U-91
checkMesh, U-92, U-160 foamToTecplot360, U-93
foamToTetDualMesh, U-93 redistributePar, U-97
foamToVTK, U-93 refineHexMesh, U-93
foamUpgradeCyclics, U-90 refineMesh, U-92
foamUpgradeFvSolution, U-90 refineWallLayer, U-93
foamyHexMesh, U-91 refinementLevel, U-93
foamyQuadMesh, U-91 removeFaces, U-93
foamyHexMeshBackgroundMesh, U- renumberMesh, U-92
91 rotateMesh, U-92
foamyHexMeshSurfaceSimplify, U-91 sammToFoam, U-91
gambitToFoam, U-91, U-159 sample, U-95, U-184
gmshToFoam, U-91 scalePoints, U-162
ideasToFoam, U-159 selectCells, U-93
ideasUnvToFoam, U-91 setFields, U-60, U-90
insideCells, U-92 setSet, U-92
kivaToFoam, U-91 setsToZones, U-92
mapFieldsPar, U-90 singleCellMesh, U-92
mapFields, U-31, U-38, U-42, U-56, U- smapToFoam, U-93
90, U-165 snappyHexMesh, U-91, U-149
mdInitialise, U-90 splitCells, U-93
mergeMeshes, U-92 splitMeshRegions, U-92
mergeOrSplitBaffles, U-92 splitMesh, U-92
mirrorMesh, U-92 star3ToFoam, U-91
mixtureAdiabaticFlameT, U-97 star4ToFoam, U-91
modifyMesh, U-93 starToFoam, U-159
moveDynamicMesh, U-92 steadyParticleTracks, U-95
moveEngineMesh, U-92 stitchMesh, U-92
moveMesh, U-92 streamFunction, U-94
mshToFoam, U-91 stressComponents, U-94
netgenNeutralToFoam, U-91 subsetMesh, U-93
objToVTK, U-92 surfaceLambdaMuSmooth, U-96
orientFaceZone, U-92 surfaceAdd, U-95
pPrime2, U-94 surfaceAutoPatch, U-95
particleTracks, U-95 surfaceBooleanFeatures, U-95
patchAverage, U-94 surfaceCheck, U-95
patchIntegrate, U-94 surfaceClean, U-95
patchSummary, U-97 surfaceCoarsen, U-95
pdfPlot, U-95 surfaceConvert, U-95
plot3dToFoam, U-91 surfaceFeatureConvert, U-95
polyDualMesh, U-92 surfaceFeatureExtract, U-95, U-153
postChannel, U-95 surfaceFind, U-95
probeLocations, U-95 surfaceHookUp, U-95
ptot, U-95 surfaceInertia, U-96
reconstructParMesh, U-97 surfaceMeshConvertTesting, U-96
reconstructPar, U-85, U-97 surfaceMeshConvert, U-96
surfaceMeshExport, U-96 operator, P-25
surfaceMeshImport, U-96 unit, P-18
surfaceMeshInfo, U-96 vector class, P-22, U-109
surfaceMeshTriangulate, U-96 vector product, see tensor, vector cross
surfaceOrient, U-96 product
surfacePointMerge, U-96 vectorField class, P-27
surfaceRedistributePar, U-96 version keyword, U-107
surfaceRefineRedGreen, U-96 vertices keyword, U-20, U-141
surfaceSplitByPatch, U-96 veryInhomogeneousMixture model, U-100
surfaceSplitByTopology, U-96 veryInhomogeneousMixture keyword, U-
surfaceSplitNonManifolds, U-96 193
surfaceSubset, U-96 View menu, U-170, U-173
surfaceToPatch, U-96 View Render window panel, U-24
surfaceTransformPoints, U-96 View Settings
temporalInterpolate, U-95 menu entry, U-24, U-173
tetgenToFoam, U-91 viewFactor
topoSet, U-93 library, U-101
transformPoints, U-93 viewFactorsGen utility, U-90
uprime, U-94 viscosity
viewFactorsGen, U-90 kinematic, U-22, U-42
vorticity, U-94 volField<Type> template class, P-31
vtkUnstructuredToFoam, U-92 volMesh tools, U-98
wallFunctionTable, U-90 vorticity utility, U-94
wallGradU, U-94 vtk
wallHeatFlux, U-94 keyword entry, U-185
wallShearStress, U-94 vtkPV3Foam
wdot, U-95 library, U-169
writeCellCentres, U-95 vtkUnstructuredToFoam utility, U-92
writeMeshObj, U-92
yPlus, U-94
W
zipUpMesh, U-93 wall
utilityFunctionObjects boundary condition, P-63, P-59, U-59,
library, U-99 U-137
wall
V keyword entry, U-137
v2f model, U-103 wallFunctionTable utility, U-90
value keyword, U-21, U-138 wallGradU utility, U-94
valueFraction keyword, U-138 wallHeatFlux utility, U-94
van Leer differencing, P-36 Wallis
vanDriestDelta model, U-104 library, U-101
vanLeer wallShearStress utility, U-94
keyword entry, U-119 wclean script/alias, U-76
VCR Controls menu, U-25, U-171 wdot utility, U-95
vector, P-14 wedge
boundary condition, U-133, U-137, U- WM MPLIB
148 environment variable, U-76
wedge WM OPTIONS
keyword entry, U-137 environment variable, U-76
window WM PRECISION OPTION
Color Legend, U-29 environment variable, U-76
Options, U-174 WM PROJECT
Pipeline Browser, U-24, U-170 environment variable, U-76
Render View, U-174 WM PROJECT DIR
Seed, U-175 environment variable, U-76
window panel WM PROJECT INST DIR
Animations, U-174 environment variable, U-76
Annotation, U-24 WM PROJECT USER DIR
Charts, U-174 environment variable, U-76
Color Legend, U-173 WM PROJECT VERSION
Color Scale, U-173 environment variable, U-76
Colors, U-174 wmake
Display, U-24, U-25, U-170, U-172 platforms, U-73
General, U-174 wmake script/alias, U-71
Information, U-170 word class, P-24, P-29
Mesh Parts, U-24 writeCellCentres utility, U-95
Paramters, U-171 writeCompression keyword, U-114
Properties, U-25, U-170 writeControl
Render View, U-173, U-174 keyword entry, U-114
Style, U-173 writeControl keyword, U-22, U-62, U-114
View Render, U-24 writeFormat keyword, U-55, U-114
Wireframe writeInterval
menu entry, U-173 keyword entry, U-179
WM ARCH writeInterval keyword, U-23, U-32, U-114
environment variable, U-76 writeMeshObj utility, U-92
WM ARCH OPTION writeNow
environment variable, U-76 keyword entry, U-113
WM COMPILE OPTION writePrecision keyword, U-1124
environment variable, U-76
WM COMPILER
X
environment variable, U-76 x
WM COMPILER BIN keyword entry, U-187
environment variable, U-76 XiFoam solver, U-88
WM COMPILER DIR xmgr
environment variable, U-76 keyword entry, U-115, U-185
WM COMPILER LIB xyz
environment variable, U-76 keyword entry, U-187
WM DIR
environment variable, U-76
Y
y
keyword entry, U-187
yPlus utility, U-94

Z
z
keyword entry, U-187
zeroGradient
boundary condition, U-138
zipUpMesh utility, U-93