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:
Mark Olesen
2018-04-10 13:41:41 +02:00
parent d814bce3ee
commit a9741cea79
67 changed files with 259 additions and 170 deletions

View File

@ -69,7 +69,7 @@ communication
inputFormat dictionary;
outputFormat dictionary;
debugTable "$FOAM_CASE/output.txt";
debugTable "<case>/output.txt";
}
// ************************************************************************* //

View File

@ -118,10 +118,10 @@ sigmaRadialCoeffs
offsetSurfaceCoeffs
{
// Surface that mesh has been meshed to
baseSurface "$FOAM_CASE/constant/triSurface/DTC-scaled-inflated.obj";
baseSurface "<constant>/triSurface/DTC-scaled-inflated.obj";
// Surface to fill in to
offsetSurface "$FOAM_CASE/constant/triSurface/DTC-scaled.obj";
offsetSurface "<constant>/triSurface/DTC-scaled.obj";
}

View File

@ -28,7 +28,7 @@ boundaryField
direction in;
readerType openFoam;
hasHeaderLine true;
file "$FOAM_CASE/constant/FluxVsdP.dat";
file "<constant>/FluxVsdP.dat";
//nonDimensional true;
//rpm 300;
//dm 2e-2;

View File

@ -73,7 +73,7 @@ postPro1
surface1
{
type geometry;
files ("$FOAM_CASE/constant/triSurface/motorBike.obj.gz");
files ("<constant>/triSurface/motorBike.obj.gz");
renderMode phong;
representation surface;
edgeColour (0 0 0);