mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
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.
58 lines
1.6 KiB
C++
58 lines
1.6 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
| \\ / O peration | Version: dev |
|
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class volScalarField;
|
|
location "0";
|
|
object p_rgh;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
dimensions [1 -1 -2 0 0 0 0];
|
|
|
|
internalField uniform 0;
|
|
|
|
boundaryField
|
|
{
|
|
//- Set patchGroups for constraint patches
|
|
#includeEtc "caseDicts/setConstraintTypes"
|
|
|
|
inlet
|
|
{
|
|
type fixedFluxPressure;
|
|
value $internalField;
|
|
}
|
|
|
|
outlet
|
|
{
|
|
type zeroGradient;
|
|
}
|
|
|
|
atmosphere
|
|
{
|
|
type totalPressure;
|
|
p0 uniform 0;
|
|
U U;
|
|
phi phi;
|
|
rho rho;
|
|
psi none;
|
|
gamma 1;
|
|
value $internalField;
|
|
}
|
|
|
|
hull
|
|
{
|
|
type fixedFluxPressure;
|
|
value $internalField;
|
|
}
|
|
}
|
|
|
|
// ************************************************************************* //
|