Initial commit for version 2.0.x patch release
[OpenFOAM-2.0.x.git] / applications / test / dictionary / testDict
blob83a182764d43a79187926d913c3190d7630aef11
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========                 |                                                 |
3 | \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
4 |  \\    /   O peration     | Version:  2.0.0                                 |
5 |   \\  /    A nd           | Web:      www.OpenFOAM.com                      |
6 |    \\/     M anipulation  |                                                 |
7 \*---------------------------------------------------------------------------*/
8 FoamFile
10     version     2.0;
11     format      ascii;
12     class       dictionary;
13     object      testDict;
15 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16 #inputMode  merge
17 #includeIfPresent "someUnknownFile"
18 #includeIfPresent "$FOAM_CASE/someUnknownFile"
19 #includeIfPresent "$FOAM_CASE/someUnknownFile-$FOAM_CASENAME"
21 internalField   uniform 1;
23 // use 'protect' to supply defaults
24 #inputMode  protect
25 internalField   uniform 10;
26 dimensions      [ 0 2 -2 0 0 0 0 ];
27 #inputMode  merge
29 active
31     type            turbulentIntensityKineticEnergyInlet;
32     intensity       0.1;
33     value           $internalField;
36 inactive
38     type            zeroGradient;
41 boundaryField
43     Default_Boundary_Region
44     {
45         type            zeroGradient;
46     }
48     inlet_1  { $active }
49     inlet_2  { $inactive }
50     inlet_3  { $inactive }
51     inlet_4  { $inactive }
52     inlet_5  "a primitiveEntry is squashed by a directory entry";
53     inlet_5  { $inactive }
54     inlet_6  { $inactive }
55     inlet_7  { $inactive }
56     inlet_8  { $inactive }
58     #include "testDictInc"
60     outlet
61     {
62         type            inletOutlet;
63         inletValue      $internalField;
64         value           #include "value";
65         // error           #remove self;
66         x               5;
67         y               6;
68     }
70     // this should have no effect
71     #remove inactive
73     inlet_7  { $active }
74     #inputMode overwrite
75     inlet_8  { $active }
78 // NB: the inputMode has a global scope
79 #inputMode merge
80 #include "testDict2"
82 foo
84     $active
87 bar
89     $active
92 baz
94     $active
97 "anynumber.*"
99     $active
102 // this should work
103 #remove active
105 // this should work too
106 #remove ( bar baz )
108 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //