includeEtcEntry: New dictionary include directive: #includeEtc "etcFile"

Description
    Specify an etc file to include when reading dictionaries, expects a
    single string to follow.

    Searches for files from user/group/shipped directories.
    The search scheme allows for version-specific and
    version-independent files using the following hierarchy:
    - \b user settings:
      - ~/.OpenFOAM/\<VERSION\>
      - ~/.OpenFOAM/
    - \b group (site) settings (when $WM_PROJECT_SITE is set):
      - $WM_PROJECT_SITE/\<VERSION\>
      - $WM_PROJECT_SITE
    - \b group (site) settings (when $WM_PROJECT_SITE is not set):
      - $WM_PROJECT_INST_DIR/site/\<VERSION\>
      - $WM_PROJECT_INST_DIR/site/
    - \b other (shipped) settings:
      - $WM_PROJECT_DIR/etc/

    An example of the \c \#includeEtc directive:
    \verbatim
        #includeEtc "etcFile"
    \endverbatim

    The usual expansion of environment variables and other constructs is
    retained.
This commit is contained in:
Henry
2015-04-26 10:44:11 +01:00
parent 091b6bc857
commit 0fe1967c22
72 changed files with 380 additions and 69 deletions

View File

@ -38,7 +38,7 @@ boundaryField
staticWalls { $:wall.T; }
movingWalls { $staticWalls; }
#include "${WM_PROJECT_DIR}/etc/caseDicts/setConstraintTypes"
#includeEtc "caseDicts/setConstraintTypes"
}
// ************************************************************************* //

View File

@ -39,7 +39,7 @@ boundaryField
staticWalls { $:wall.U; }
movingWalls { $:movingWall.U; }
#include "${WM_PROJECT_DIR}/etc/caseDicts/setConstraintTypes"
#includeEtc "caseDicts/setConstraintTypes"
}
// ************************************************************************* //

View File

@ -28,7 +28,7 @@ boundaryField
movingWalls { $:wall.alphat; }
staticWalls { $movingWalls; }
#include "${WM_PROJECT_DIR}/etc/caseDicts/setConstraintTypes"
#includeEtc "caseDicts/setConstraintTypes"
}

View File

@ -39,7 +39,7 @@ boundaryField
staticWalls { $:wall.epsilon; }
movingWalls { $staticWalls; }
#include "${WM_PROJECT_DIR}/etc/caseDicts/setConstraintTypes"
#includeEtc "caseDicts/setConstraintTypes"
}
// ************************************************************************* //

View File

@ -39,7 +39,7 @@ boundaryField
staticWalls { $:wall.k; }
movingWalls { $staticWalls; }
#include "${WM_PROJECT_DIR}/etc/caseDicts/setConstraintTypes"
#includeEtc "caseDicts/setConstraintTypes"
}
// ************************************************************************* //

View File

@ -28,7 +28,7 @@ boundaryField
movingWalls { $:wall.nut; }
staticWalls { $movingWalls; }
#include "${WM_PROJECT_DIR}/etc/caseDicts/setConstraintTypes"
#includeEtc "caseDicts/setConstraintTypes"
}
// ************************************************************************* //

View File

@ -28,7 +28,7 @@ boundaryField
staticWalls { $:wall.p; }
movingWalls { $staticWalls; }
#include "${WM_PROJECT_DIR}/etc/caseDicts/setConstraintTypes"
#includeEtc "caseDicts/setConstraintTypes"
}
// ************************************************************************* //