Two pitzDaily variants have been added; pitzDailySteadyMappedToPart, and pitzDailySteadyMappedToRefined. These demonstrate usage of workflows which involve mapping between cases with mapFieldsPar. The pitzDailySteadyMappedToPart case demonstrates mapping onto a small section of the mesh; in this case in the vicinity of the the corner of the backstep. This mesh is not consistent with the source data, so fields are required in the zero directory and cutting patches are used to specify the properties at the inlets. The pitzDailySteadyMappedToRefined case demonstrates mapping onto a geometrically similar case with a different mesh density. This mesh is consistent with the source, so no fields are needed and no cutting patches are used. This case does, however, perturb the geometry of the block mesh a bit, so that some of the refined case is not overlapping the original case. This provides a test of the stabilisation procedures within the mesh-to-mesh mapping functions.
113 lines
2.2 KiB
C++
113 lines
2.2 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: dev
|
|
\\/ M anipulation |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
format ascii;
|
|
class dictionary;
|
|
location "system";
|
|
object controlDict;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
application foamRun;
|
|
|
|
solver incompressibleFluid;
|
|
|
|
startFrom startTime;
|
|
|
|
startTime 0;
|
|
|
|
stopAt endTime;
|
|
|
|
endTime 0.1;
|
|
|
|
deltaT 1e-05;
|
|
|
|
writeControl timeStep;
|
|
|
|
writeInterval 100;
|
|
|
|
purgeWrite 0;
|
|
|
|
writeFormat ascii;
|
|
|
|
writePrecision 6;
|
|
|
|
writeCompression off;
|
|
|
|
timeFormat general;
|
|
|
|
timePrecision 6;
|
|
|
|
runTimeModifiable true;
|
|
|
|
functions
|
|
{
|
|
probes
|
|
{
|
|
type probes;
|
|
libs ("libsampling.so");
|
|
writeControl timeStep;
|
|
writeInterval 1;
|
|
|
|
fields
|
|
(
|
|
p
|
|
);
|
|
|
|
probeLocations
|
|
(
|
|
(0.0254 0.0253 0)
|
|
(0.0508 0.0253 0)
|
|
(0.0762 0.0253 0)
|
|
(0.1016 0.0253 0)
|
|
(0.127 0.0253 0)
|
|
(0.1524 0.0253 0)
|
|
(0.1778 0.0253 0)
|
|
);
|
|
|
|
}
|
|
|
|
#includeFunc fieldAverage(U, p, prime2Mean = yes)
|
|
|
|
surfaceSampling
|
|
{
|
|
// Sample near-wall velocity
|
|
|
|
type surfaces;
|
|
|
|
// Where to load it from (if not already in solver)
|
|
libs ("libsampling.so");
|
|
writeControl writeTime;
|
|
|
|
interpolationScheme cellPoint;
|
|
|
|
surfaceFormat vtk;
|
|
|
|
// Fields to be sampled
|
|
fields
|
|
(
|
|
U
|
|
);
|
|
|
|
surfaces
|
|
(
|
|
nearWall
|
|
{
|
|
type patchInternalField;
|
|
patches ( lowerWall );
|
|
distance 1e-6;
|
|
interpolate true;
|
|
triangulate false;
|
|
}
|
|
);
|
|
}
|
|
}
|
|
|
|
// ************************************************************************* //
|