mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: additional text expansion shortcuts (issue #792)
Support the following expansions when they occur at the start of a
string:
Short-form Equivalent
========= ===========
<etc>/ ~OpenFOAM/ (as per foamEtcFile)
<case>/ $FOAM_CASE/
<constant>/ $FOAM_CASE/constant/
<system>/ $FOAM_CASE/system/
These can be used in fileName expansions to improve clarity and reduce
some typing
"<constant>/reactions" vs "$FOAM_CASE/constant/reactions"
This commit is contained in:
@ -15,8 +15,8 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#include "$FOAM_CASE/constant/dynamicMeshDict"
|
||||
#include "$FOAM_CASE/system/blockMeshDict"
|
||||
#include "<constant>/dynamicMeshDict"
|
||||
#include "<system>/blockMeshDict"
|
||||
|
||||
dimensions [0 1 0 0 0 0 0];
|
||||
|
||||
|
||||
@ -20,7 +20,7 @@ FoamFile
|
||||
pointSync false;
|
||||
|
||||
// Patches to create. An empty patch list just removes patches with zero
|
||||
// faces from $FOAM_CASE/constant/polyMesh/boundary.
|
||||
// faces from <constant>/polyMesh/boundary.
|
||||
patches
|
||||
(
|
||||
);
|
||||
|
||||
@ -22,7 +22,7 @@ motionSolver solidBody;
|
||||
solidBodyMotionFunction tabulated6DoFMotion;
|
||||
|
||||
CofG (0 0 0);
|
||||
timeDataFileName "$FOAM_CASE/constant/6DoF.dat";
|
||||
timeDataFileName "<constant>/6DoF.dat";
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -30,9 +30,9 @@ inertSpecie AIR;
|
||||
|
||||
chemistryReader foamChemistryReader;
|
||||
|
||||
foamChemistryFile "$FOAM_CASE/constant/reactions.gas";
|
||||
foamChemistryFile "<constant>/reactions.gas";
|
||||
|
||||
foamChemistryThermoFile "$FOAM_CASE/constant/thermo.gas";
|
||||
foamChemistryThermoFile "<constant>/thermo.gas";
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -37,7 +37,7 @@ inertSpecie water;
|
||||
|
||||
chemistryReader foamChemistryReader;
|
||||
|
||||
foamChemistryFile "$FOAM_CASE/constant/reactions.gas";
|
||||
foamChemistryFile "<constant>/reactions.gas";
|
||||
|
||||
water
|
||||
{
|
||||
|
||||
@ -37,7 +37,7 @@ inertSpecie water;
|
||||
|
||||
chemistryReader foamChemistryReader;
|
||||
|
||||
foamChemistryFile "$FOAM_CASE/constant/reactions.gas";
|
||||
foamChemistryFile "<constant>/reactions.gas";
|
||||
|
||||
water
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user