TUT: fix use of "constant/triSurface" etc (#1887)

- use bracketed syntax (eg, "<constant>/triSurface") instead for
  implicit case resolution.
This commit is contained in:
Mark Olesen 2020-10-24 13:16:24 +02:00
parent 5579e7a62b
commit 9eb73a92e2
19 changed files with 26 additions and 26 deletions

View File

@ -60,7 +60,7 @@ Foam::pointFile::pointFile
cellShapeControls,
decomposition
),
pointFileName_(detailsDict().get<fileName>("pointFile")),
pointFileName_(detailsDict().get<fileName>("pointFile").expand()),
insideOutsideCheck_(detailsDict().get<Switch>("insideOutsideCheck")),
randomiseInitialGrid_(detailsDict().get<Switch>("randomiseInitialGrid")),
randomPerturbationCoeff_

View File

@ -24,7 +24,7 @@ constructFrom patch;
//constructFrom surface;
// If construct from patch/mesh:
sourceCase "$FOAM_CASE";
sourceCase "<case>";
sourcePatches (movingWall);
// If construct from patch: patch to use for back (can be same as sourcePatch)

View File

@ -238,7 +238,7 @@ initialPoints
// Reads points from file. Still rejects points that are too
// close to the surface (minimumSurfaceDistanceCoeff) or on the
// wrong side of the surfaces.
pointFile "constant/internalDelaunayVertices";
pointFile "<constant>/internalDelaunayVertices";
}
}

View File

@ -72,7 +72,7 @@ surface2.nas
extractionMethod extractFromFile;
// Load from an existing feature edge file
featureEdgeFile "constant/triSurface/featureEdges.nas";
featureEdgeFile "<constant>/triSurface/featureEdges.nas";
trimFeatures
{

View File

@ -31,7 +31,7 @@ sourcePatches (movingWall);
exposedPatchName movingWall;
// If construct from surface:
surface "constant/triSurface/cylinder.vtk";
surface "<constant>/triSurface/cylinder.vtk";
// Flip surface normals before usage. Valid only for extrude from surface or
// patch.

View File

@ -30,9 +30,9 @@ inertSpecie air;
chemistryReader foamChemistryReader;
foamChemistryFile "$FOAM_CASE/constant/include/reactions.air";
foamChemistryFile "<constant>/include/reactions.air";
foamChemistryThermoFile "$FOAM_CASE/constant/include/thermo.air";
foamChemistryThermoFile "<constant>/include/thermo.air";
// ************************************************************************* //

View File

@ -30,9 +30,9 @@ inertSpecie N2;
chemistryReader foamChemistryReader;
foamChemistryFile "$FOAM_CASE/constant/reactions";
foamChemistryFile "<constant>/reactions";
foamChemistryThermoFile "$FOAM_CASE/constant/thermo.compressibleGas";
foamChemistryThermoFile "<constant>/thermo.compressibleGas";
// ************************************************************************* //

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#include "../0.orig/include"
#include "<case>/0.orig/include"
defaultFieldValues
(

View File

@ -31,7 +31,7 @@ sourcePatches (movingWall);
exposedPatchName movingWall;
// If construct from surface:
surface "constant/triSurface/cylinder.vtk";
surface "<constant>/triSurface/cylinder.vtk";
// Flip surface normals before usage. Valid only for extrude from surface or
// patch.

View File

@ -15,7 +15,7 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
constructFrom patch;
sourceCase "$FOAM_CASE";
sourceCase "<case>";
sourcePatches (back);
exposedPatchName front;

View File

@ -15,7 +15,7 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
constructFrom patch;
sourceCase "$FOAM_CASE";
sourceCase "<case>";
sourcePatches (back);
exposedPatchName front;

View File

@ -34,13 +34,13 @@ baffles
type wall;
patchFields
{
#include "./0/include/wallBafflePatches"
#include "./0/include/1DBaffle/1DTemperatureMasterBafflePatches"
#include "<case>/0/include/wallBafflePatches"
#include "<case>/0/include/1DBaffle/1DTemperatureMasterBafflePatches"
}
}
}
#include "./0/include/baffle3DSetup"
#include "<case>/0/include/baffle3DSetup"
baffleFacesThermoBaffle3D
{
@ -57,8 +57,8 @@ baffles
sameGroup off;
patchFields
{
#include "./0/include/wallBafflePatches"
#include "./0/include/3DBaffle/3DTemperatureMasterBafflePatches"
#include "<case>/0/include/wallBafflePatches"
#include "<case>/0/include/3DBaffle/3DTemperatureMasterBafflePatches"
}
}
}

View File

@ -30,9 +30,9 @@ inertSpecie N2;
chemistryReader foamChemistryReader;
foamChemistryFile "$FOAM_CASE/constant/gas/reactions";
foamChemistryFile "<constant>/gas/reactions";
foamChemistryThermoFile "$FOAM_CASE/constant/gas/thermo.compressibleGas";
foamChemistryThermoFile "<constant>/gas/thermo.compressibleGas";
// ************************************************************************* //

View File

@ -31,7 +31,7 @@ sourcePatches (movingWall);
exposedPatchName movingWall;
// If construct from surface:
surface "constant/triSurface/cylinder.vtk";
surface "<constant>/triSurface/cylinder.vtk";
// Flip surface normals before usage. Valid only for extrude from surface or
// patch.

View File

@ -58,7 +58,7 @@ initialPoints
pointFileCoeffs
{
pointFile "constant/internalDelaunayVertices";
pointFile "<constant>/internalDelaunayVertices";
}
}

View File

@ -23,7 +23,7 @@ actions
source surfaceToCell;
sourceInfo
{
file "constant/triSurface/flange.obj";
file "<constant>/triSurface/flange.obj";
outsidePoints ((-0.026 -0.0275 -0.0235));
includeCut true;
includeInside true;

View File

@ -15,7 +15,7 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
constructFrom patch;
sourceCase "$FOAM_CASE";
sourceCase "<case>";
sourcePatches (front);
exposedPatchName back;

View File

@ -15,7 +15,7 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
constructFrom patch;
sourceCase "$FOAM_CASE";
sourceCase "<case>";
sourcePatches (front);
exposedPatchName back;

View File

@ -60,7 +60,7 @@ functions
libs (utilityFunctionObjects);
enabled yes;
deltaT tableFile;
file "system/deltaTvalues";
file "<system>/deltaTvalues";
}
minMaxp