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, cellShapeControls,
decomposition decomposition
), ),
pointFileName_(detailsDict().get<fileName>("pointFile")), pointFileName_(detailsDict().get<fileName>("pointFile").expand()),
insideOutsideCheck_(detailsDict().get<Switch>("insideOutsideCheck")), insideOutsideCheck_(detailsDict().get<Switch>("insideOutsideCheck")),
randomiseInitialGrid_(detailsDict().get<Switch>("randomiseInitialGrid")), randomiseInitialGrid_(detailsDict().get<Switch>("randomiseInitialGrid")),
randomPerturbationCoeff_ randomPerturbationCoeff_

View File

@ -24,7 +24,7 @@ constructFrom patch;
//constructFrom surface; //constructFrom surface;
// If construct from patch/mesh: // If construct from patch/mesh:
sourceCase "$FOAM_CASE"; sourceCase "<case>";
sourcePatches (movingWall); sourcePatches (movingWall);
// If construct from patch: patch to use for back (can be same as sourcePatch) // 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 // Reads points from file. Still rejects points that are too
// close to the surface (minimumSurfaceDistanceCoeff) or on the // close to the surface (minimumSurfaceDistanceCoeff) or on the
// wrong side of the surfaces. // wrong side of the surfaces.
pointFile "constant/internalDelaunayVertices"; pointFile "<constant>/internalDelaunayVertices";
} }
} }

View File

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

View File

@ -31,7 +31,7 @@ sourcePatches (movingWall);
exposedPatchName movingWall; exposedPatchName movingWall;
// If construct from surface: // 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 // Flip surface normals before usage. Valid only for extrude from surface or
// patch. // patch.

View File

@ -30,9 +30,9 @@ inertSpecie air;
chemistryReader foamChemistryReader; 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; 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 defaultFieldValues
( (

View File

@ -31,7 +31,7 @@ sourcePatches (movingWall);
exposedPatchName movingWall; exposedPatchName movingWall;
// If construct from surface: // 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 // Flip surface normals before usage. Valid only for extrude from surface or
// patch. // patch.

View File

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

View File

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

View File

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

View File

@ -30,9 +30,9 @@ inertSpecie N2;
chemistryReader foamChemistryReader; 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; exposedPatchName movingWall;
// If construct from surface: // 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 // Flip surface normals before usage. Valid only for extrude from surface or
// patch. // patch.

View File

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

View File

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

View File

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

View File

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

View File

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