TUT: use slash-scoped dictionary references

This commit is contained in:
Mark Olesen 2023-01-02 12:08:11 +01:00
parent 27a7ae2d1d
commit aafcd0b9e0
28 changed files with 104 additions and 99 deletions

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2212 |
| \\ / O peration | Version: v2306 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -68,7 +68,7 @@ baffles
patchFields
{
${...master.patchFields}
${../../master/patchFields}
}
}
}

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2212 |
| \\ / O peration | Version: v2306 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -18,7 +18,7 @@ FoamFile
dimensions [0 0 0 1 0 0 0];
internalField uniform $:internalField.T;
internalField uniform $/internalField/T;
boundaryField
{
@ -34,7 +34,7 @@ boundaryField
liner
{
$:wall.T;
$/wall/T;
}
cylinderHead
@ -48,5 +48,6 @@ boundaryField
}
}
#remove (wall piston)
// ************************************************************************* //

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM:.Uhe Open Source CFD Toolbox |
| \\ / O peration | Version: v2212 |
| \\ / O peration | Version: v2306 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -18,7 +18,7 @@ FoamFile
dimensions [0 1 -1 0 0 0 0];
internalField uniform $:internalField.U;
internalField uniform $/internalField/U;
boundaryField
{
@ -34,7 +34,7 @@ boundaryField
liner
{
$:wall.U;
$/wall/U;
}
cylinderHead
@ -44,9 +44,10 @@ boundaryField
piston
{
$:piston.U;
$/piston/U;
}
}
#remove (wall piston)
// ************************************************************************* //

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2212 |
| \\ / O peration | Version: v2306 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -34,7 +34,7 @@ boundaryField
liner
{
$:wall.p;
$/wall/p;
}
cylinderHead
@ -48,5 +48,6 @@ boundaryField
}
}
#remove (wall piston)
// ************************************************************************* //

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2212 |
| \\ / O peration | Version: v2306 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -34,7 +34,7 @@ boundaryField
liner
{
$:wall.alphat;
$/wall/alphat;
}
cylinderHead
@ -48,5 +48,6 @@ boundaryField
}
}
#remove (wall piston)
// ************************************************************************* //

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2212 |
| \\ / O peration | Version: v2306 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -18,7 +18,7 @@ FoamFile
dimensions [0 2 -3 0 0 0 0];
internalField uniform $:internalField.epsilon;
internalField uniform $/internalField/epsilon;
boundaryField
{
@ -34,7 +34,7 @@ boundaryField
liner
{
$:wall.epsilon;
$/wall/epsilon;
}
cylinderHead
@ -48,5 +48,6 @@ boundaryField
}
}
#remove (wall piston)
// ************************************************************************* //

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2212 |
| \\ / O peration | Version: v2306 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -35,13 +35,13 @@ wall
k
{
type kqRWallFunction;
value uniform $:internalField.k;
value uniform $/internalField/k;
}
epsilon
{
type epsilonWallFunction;
value uniform $:internalField.epsilon;
value uniform $/internalField/epsilon;
}
nut

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM:.khe Open Source CFD Toolbox |
| \\ / O peration | Version: v2212 |
| \\ / O peration | Version: v2306 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -18,7 +18,7 @@ FoamFile
dimensions [0 2 -2 0 0 0 0];
internalField uniform $:internalField.k;
internalField uniform $/internalField/k;
boundaryField
{
@ -34,7 +34,7 @@ boundaryField
liner
{
$:wall.k;
$/wall/k;
}
cylinderHead
@ -48,5 +48,6 @@ boundaryField
}
}
#remove (wall piston)
// ************************************************************************* //

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2212 |
| \\ / O peration | Version: v2306 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -34,7 +34,7 @@ boundaryField
liner
{
$:wall.nut;
$/wall/nut;
}
cylinderHead
@ -48,5 +48,6 @@ boundaryField
}
}
#remove (wall piston)
// ************************************************************************* //

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM:.phe Open Source CFD Toolbox |
| \\ / O peration | Version: v2212 |
| \\ / O peration | Version: v2306 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -18,7 +18,7 @@ FoamFile
dimensions [1 -1 -2 0 0 0 0];
internalField uniform $:internalField.p;
internalField uniform $/internalField/p;
boundaryField
{
@ -34,7 +34,7 @@ boundaryField
liner
{
$:wall.p;
$/wall/p;
}
cylinderHead
@ -48,5 +48,6 @@ boundaryField
}
}
#remove (wall piston)
// ************************************************************************* //

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2212 |
| \\ / O peration | Version: v2306 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -26,7 +26,7 @@ LES
LESModel kEqn;
${:$LESModel}
${/$LESModel}
}

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2212 |
| \\ / O peration | Version: v2306 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -80,7 +80,7 @@ functions
viscousDissipationCoeffs
{
fields (T);
rhoInf $....rhoInf;
rhoInf ${../../../rhoInf};
}
}
}

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2212 |
| \\ / O peration | Version: v2306 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -48,7 +48,7 @@ postPro1
// they are locally overridden
colours
{
${..colourScheme.paraview};
${../colourScheme/paraview};
}
// Line data

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2212 |
| \\ / O peration | Version: v2306 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -26,7 +26,7 @@ postPro1
// Default colours. Used for colourBy == colour unless locally overridden
colours
{
${..colourScheme.blueGradient};
${../colourScheme/blueGradient};
}
camera

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2212 |
| \\ / O peration | Version: v2306 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -38,7 +38,7 @@ binField1
fields (forceCoeff);
patches (motorBikeGroup);
decomposePatchValues true;
CofR ${..forceCoeffs1.CofR};
CofR ${../forceCoeffs1/CofR};
binData
{

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2212 |
| \\ / O peration | Version: v2306 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -38,7 +38,7 @@ binField1
fields (forceCoeff);
patches (body);
decomposePatchValues yes;
CofR ${..forceCoeffs1.CofR};
CofR ${../forceCoeffs1/CofR};
cellZones (porousZone);
binData

View File

@ -64,7 +64,7 @@ postPro1
// Default colours
colours
{
${..colourScheme.paraview};
${../colourScheme/paraview};
}
// Line data

View File

@ -36,7 +36,7 @@ postPro1
// they are locally overridden
colours
{
${..colourScheme.greyGradient};
${../colourScheme/greyGradient};
}
// Points (cloud) data

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2212 |
| \\ / O peration | Version: v2306 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -39,7 +39,7 @@ baffles
}
slave
{
${..master}
${../master}
}
}
}
@ -60,7 +60,7 @@ baffles
}
slave
{
${..master}
${../master}
}
}
}

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2212 |
| \\ / O peration | Version: v2306 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -14,8 +14,23 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#include "<constant>/dynamicMeshDict"
#include "<system>/blockMeshDict"
__blockMeshDict
{
#include "<system>/blockMeshDict"
}
// Sphere properties
sphereProperties
{
centreOfMass (0 ${/__blockMeshDict/sphereCentreHeight} 0);
momentOfInertia (2e-3 2e-3 2e-3);
velocity (0 -3.77 0);
mass 2.08e-3; // sphere mass 0.15 kg, 5 degree wedge
}
#remove __blockMeshDict
// ------------------------------------------------------------------------- //
dimensions [0 1 0 0 0 0 0];
@ -44,13 +59,10 @@ boundaryField
sphere
{
type sixDoFRigidBodyDisplacement;
centreOfMass (0 $:sphereCentreHeight 0);
momentOfInertia (2e-3 2e-3 2e-3);
velocity (0 -3.77 0);
$/sphereProperties;
accelerationRelaxation 1;
accelerationDamping 1;
mass 2.08e-3; // sphere mass 0.15 kg, 5 degree wedge
// rhoInf -1; // needed only for solvers solving for
// kinematic pressure
report on;

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2212 |
| \\ / O peration | Version: v2306 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -68,7 +68,7 @@ baffles
patchFields
{
${...master.patchFields}
${../../master/patchFields}
}
}
}

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2212 |
| \\ / O peration | Version: v2306 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -240,47 +240,32 @@ castellatedMeshControls
shaftRotating
{
${../vessel};
level (1 1);
patchInfo
{
${...vessel.patchInfo}
}
}
shaft
{
${../vessel};
level (1 1);
patchInfo
{
${...vessel.patchInfo}
}
}
sparger
{
${../vessel};
level (1 1);
patchInfo
{
${...vessel.patchInfo}
}
}
stirrer
{
${../vessel};
level (1 1);
patchInfo
{
${...vessel.patchInfo}
}
}
baffles
{
${../vessel};
level (1 1);
patchInfo
{
${...vessel.patchInfo}
}
}
rotating

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2212 |
| \\ / O peration | Version: v2306 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -37,7 +37,7 @@ boundaryConditions
}
values
{
$:initialConditions;
$/initialConditions;
}
}
@ -52,7 +52,7 @@ boundaryConditions
}
values
{
$:initialConditions;
$/initialConditions;
}
}
@ -68,7 +68,7 @@ boundaryConditions
}
values
{
$:initialConditions;
$/initialConditions;
}
}
@ -83,7 +83,7 @@ boundaryConditions
}
values
{
$:initialConditions;
$/initialConditions;
}
}
@ -94,7 +94,7 @@ boundaryConditions
patches (upperWall);
values
{
$:initialConditions;
$/initialConditions;
}
}
@ -105,7 +105,7 @@ boundaryConditions
patches (frontAndBack);
values
{
$:initialConditions;
$/initialConditions;
}
}
}

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2212 |
| \\ / O peration | Version: v2306 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -40,7 +40,7 @@ boundaryConditions
}
values
{
$:initialConditions;
$/initialConditions;
}
}
thermalCoupledWalls
@ -56,7 +56,7 @@ boundaryConditions
}
values
{
$:initialConditions;
$/initialConditions;
}
}
}

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2212 |
| \\ / O peration | Version: v2306 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -34,7 +34,7 @@ boundaryConditions
}
values
{
$:initialConditions;
$/initialConditions;
T uniform 500;
}
}
@ -49,7 +49,7 @@ boundaryConditions
}
values
{
$:initialConditions;
$/initialConditions;
}
}
thermalCoupledWalls
@ -63,7 +63,7 @@ boundaryConditions
}
values
{
$:initialConditions;
$/initialConditions;
}
}
}

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2212 |
| \\ / O peration | Version: v2306 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -35,7 +35,7 @@ boundaryConditions
}
values
{
$:initialConditions;
$/initialConditions;
}
}
thermalCoupledWalls
@ -49,7 +49,7 @@ boundaryConditions
}
values
{
$:initialConditions;
$/initialConditions;
}
}
}

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2212 |
| \\ / O peration | Version: v2306 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -35,7 +35,7 @@ boundaryConditions
}
values
{
$:initialConditions;
$/initialConditions;
}
}
thermalCoupledWalls
@ -49,7 +49,7 @@ boundaryConditions
}
values
{
$:initialConditions;
$/initialConditions;
}
}
}

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2212 |
| \\ / O peration | Version: v2306 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -37,7 +37,7 @@ boundaryConditions
}
values
{
$:initialConditions;
$/initialConditions;
}
}
outlet
@ -51,7 +51,7 @@ boundaryConditions
}
values
{
$:initialConditions;
$/initialConditions;
}
}
thermalWalls
@ -67,7 +67,7 @@ boundaryConditions
}
values
{
$:initialConditions;
$/initialConditions;
}
}
thermalCoupledWalls
@ -83,7 +83,7 @@ boundaryConditions
}
values
{
$:initialConditions;
$/initialConditions;
}
}
}