mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: update tutorials
- use simpler decomposeParDict in tutorials, several had old 'boilerplate' decomposeParDict - use simpler libs () format - update surface sampling to use dictionary format
This commit is contained in:
@ -1,155 +0,0 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
|
||||||
| ========= | |
|
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
||||||
| \\ / O peration | Version: v1912 |
|
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
|
||||||
| \\/ M anipulation | |
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
FoamFile
|
|
||||||
{
|
|
||||||
version 2.0;
|
|
||||||
format ascii;
|
|
||||||
class dictionary;
|
|
||||||
note "mesh decomposition control dictionary";
|
|
||||||
object decomposeParDict;
|
|
||||||
}
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
numberOfSubdomains 2;
|
|
||||||
|
|
||||||
//- Use the volScalarField named here as a weight for each cell in the
|
|
||||||
// decomposition. For example, use a particle population field to decompose
|
|
||||||
// for a balanced number of particles in a lagrangian simulation.
|
|
||||||
// weightField dsmcRhoNMean;
|
|
||||||
|
|
||||||
//method scotch;
|
|
||||||
//method hierarchical;
|
|
||||||
// method simple;
|
|
||||||
//method metis;
|
|
||||||
method manual;
|
|
||||||
// method multiLevel;
|
|
||||||
// method structured; // does 2D decomposition of structured mesh
|
|
||||||
|
|
||||||
multiLevelCoeffs
|
|
||||||
{
|
|
||||||
// Decomposition methods to apply in turn. This is like hierarchical but
|
|
||||||
// fully general - every method can be used at every level.
|
|
||||||
|
|
||||||
level0
|
|
||||||
{
|
|
||||||
numberOfSubdomains 64;
|
|
||||||
//method simple;
|
|
||||||
//simpleCoeffs
|
|
||||||
//{
|
|
||||||
// n (2 1 1);
|
|
||||||
// delta 0.001;
|
|
||||||
//}
|
|
||||||
method scotch;
|
|
||||||
}
|
|
||||||
level1
|
|
||||||
{
|
|
||||||
numberOfSubdomains 4;
|
|
||||||
method scotch;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Desired output
|
|
||||||
|
|
||||||
simpleCoeffs
|
|
||||||
{
|
|
||||||
n (2 1 1);
|
|
||||||
delta 0.001;
|
|
||||||
}
|
|
||||||
|
|
||||||
hierarchicalCoeffs
|
|
||||||
{
|
|
||||||
n (1 2 1);
|
|
||||||
delta 0.001;
|
|
||||||
order xyz;
|
|
||||||
}
|
|
||||||
|
|
||||||
metisCoeffs
|
|
||||||
{
|
|
||||||
method recursive;
|
|
||||||
/*
|
|
||||||
processorWeights
|
|
||||||
(
|
|
||||||
1
|
|
||||||
1
|
|
||||||
1
|
|
||||||
1
|
|
||||||
);
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
|
|
||||||
scotchCoeffs
|
|
||||||
{
|
|
||||||
//processorWeights
|
|
||||||
//(
|
|
||||||
// 1
|
|
||||||
// 1
|
|
||||||
// 1
|
|
||||||
// 1
|
|
||||||
//);
|
|
||||||
//writeGraph true;
|
|
||||||
//strategy "b";
|
|
||||||
}
|
|
||||||
|
|
||||||
manualCoeffs
|
|
||||||
{
|
|
||||||
dataFile "manualDecomposition";
|
|
||||||
}
|
|
||||||
|
|
||||||
structuredCoeffs
|
|
||||||
{
|
|
||||||
// Patches to do 2D decomposition on. Structured mesh only; cells have
|
|
||||||
// to be in 'columns' on top of patches.
|
|
||||||
patches (movingWall);
|
|
||||||
|
|
||||||
// Method to use on the 2D subset
|
|
||||||
method scotch;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
constraints
|
|
||||||
{
|
|
||||||
//- Keep owner and neighbour on same processor for faces in zones:
|
|
||||||
faces
|
|
||||||
{
|
|
||||||
type preserveFaceZones;
|
|
||||||
zones (heater solid1 solid3);
|
|
||||||
}
|
|
||||||
//- Keep owner and neighbour on same processor for faces in patches:
|
|
||||||
// (makes sense only for cyclic patches)
|
|
||||||
patches
|
|
||||||
{
|
|
||||||
type preservePatches,
|
|
||||||
patches (cyclic_half0 cyclic_half1);
|
|
||||||
}
|
|
||||||
//- Keep all of faceSet on a single processor. This puts all cells
|
|
||||||
// connected with a point, edge or face on the same processor.
|
|
||||||
// (just having face connected cells might not guarantee a balanced
|
|
||||||
// decomposition)
|
|
||||||
// The processor can be -1 (the decompositionMethod chooses the processor
|
|
||||||
// for a good load balance) or explicitly provided (upsets balance).
|
|
||||||
processors
|
|
||||||
{
|
|
||||||
type singleProcessorFaceSets;
|
|
||||||
sets ((f0 -1));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
//// Is the case distributed? Note: command-line argument -roots takes
|
|
||||||
//// precedence
|
|
||||||
//distributed yes;
|
|
||||||
//// Per slave (so nProcs-1 entries) the directory above the case.
|
|
||||||
//roots
|
|
||||||
//(
|
|
||||||
// "/tmp"
|
|
||||||
// "/tmp"
|
|
||||||
//);
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
|
||||||
@ -17,137 +17,6 @@ FoamFile
|
|||||||
|
|
||||||
numberOfSubdomains 2;
|
numberOfSubdomains 2;
|
||||||
|
|
||||||
//- Use the volScalarField named here as a weight for each cell in the
|
|
||||||
// decomposition. For example, use a particle population field to decompose
|
|
||||||
// for a balanced number of particles in a lagrangian simulation.
|
|
||||||
// weightField dsmcRhoNMean;
|
|
||||||
|
|
||||||
method scotch;
|
method scotch;
|
||||||
//method hierarchical;
|
|
||||||
// method simple;
|
|
||||||
// method metis;
|
|
||||||
// method manual;
|
|
||||||
// method multiLevel;
|
|
||||||
// method structured; // does 2D decomposition of structured mesh
|
|
||||||
|
|
||||||
multiLevelCoeffs
|
|
||||||
{
|
|
||||||
// Decomposition methods to apply in turn. This is like hierarchical but
|
|
||||||
// fully general - every method can be used at every level.
|
|
||||||
|
|
||||||
level0
|
|
||||||
{
|
|
||||||
numberOfSubdomains 64;
|
|
||||||
//method simple;
|
|
||||||
//simpleCoeffs
|
|
||||||
//{
|
|
||||||
// n (2 1 1);
|
|
||||||
// delta 0.001;
|
|
||||||
//}
|
|
||||||
method scotch;
|
|
||||||
}
|
|
||||||
level1
|
|
||||||
{
|
|
||||||
numberOfSubdomains 4;
|
|
||||||
method scotch;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Desired output
|
|
||||||
|
|
||||||
simpleCoeffs
|
|
||||||
{
|
|
||||||
n (2 1 1);
|
|
||||||
delta 0.001;
|
|
||||||
}
|
|
||||||
|
|
||||||
hierarchicalCoeffs
|
|
||||||
{
|
|
||||||
n (1 2 1);
|
|
||||||
delta 0.001;
|
|
||||||
order xyz;
|
|
||||||
}
|
|
||||||
|
|
||||||
metisCoeffs
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
processorWeights
|
|
||||||
(
|
|
||||||
1
|
|
||||||
1
|
|
||||||
1
|
|
||||||
1
|
|
||||||
);
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
|
|
||||||
scotchCoeffs
|
|
||||||
{
|
|
||||||
//processorWeights
|
|
||||||
//(
|
|
||||||
// 1
|
|
||||||
// 1
|
|
||||||
// 1
|
|
||||||
// 1
|
|
||||||
//);
|
|
||||||
//writeGraph true;
|
|
||||||
//strategy "b";
|
|
||||||
}
|
|
||||||
|
|
||||||
manualCoeffs
|
|
||||||
{
|
|
||||||
dataFile "decompositionData";
|
|
||||||
}
|
|
||||||
|
|
||||||
structuredCoeffs
|
|
||||||
{
|
|
||||||
// Patches to do 2D decomposition on. Structured mesh only; cells have
|
|
||||||
// to be in 'columns' on top of patches.
|
|
||||||
patches (movingWall);
|
|
||||||
|
|
||||||
// Method to use on the 2D subset
|
|
||||||
method scotch;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
constraints
|
|
||||||
{
|
|
||||||
//- Keep owner and neighbour on same processor for faces in zones:
|
|
||||||
faces
|
|
||||||
{
|
|
||||||
type preserveFaceZones;
|
|
||||||
zones (heater solid1 solid3);
|
|
||||||
}
|
|
||||||
//- Keep owner and neighbour on same processor for faces in patches:
|
|
||||||
// (makes sense only for cyclic patches)
|
|
||||||
patches
|
|
||||||
{
|
|
||||||
type preservePatches,
|
|
||||||
patches (cyclic_half0 cyclic_half1);
|
|
||||||
}
|
|
||||||
//- Keep all of faceSet on a single processor. This puts all cells
|
|
||||||
// connected with a point, edge or face on the same processor.
|
|
||||||
// (just having face connected cells might not guarantee a balanced
|
|
||||||
// decomposition)
|
|
||||||
// The processor can be -1 (the decompositionMethod chooses the processor
|
|
||||||
// for a good load balance) or explicitly provided (upsets balance).
|
|
||||||
processors
|
|
||||||
{
|
|
||||||
type singleProcessorFaceSets;
|
|
||||||
sets ((f0 -1));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
//// Is the case distributed? Note: command-line argument -roots takes
|
|
||||||
//// precedence
|
|
||||||
//distributed yes;
|
|
||||||
//// Per slave (so nProcs-1 entries) the directory above the case.
|
|
||||||
//roots
|
|
||||||
//(
|
|
||||||
// "/tmp"
|
|
||||||
// "/tmp"
|
|
||||||
//);
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -19,6 +19,7 @@ numberOfSubdomains 2;
|
|||||||
|
|
||||||
//method scotch;
|
//method scotch;
|
||||||
method hierarchical;
|
method hierarchical;
|
||||||
|
|
||||||
hierarchicalCoeffs
|
hierarchicalCoeffs
|
||||||
{
|
{
|
||||||
n (2 1 1);
|
n (2 1 1);
|
||||||
|
|||||||
@ -29,16 +29,10 @@ numberOfSubdomains 2;
|
|||||||
|
|
||||||
method hierarchical;
|
method hierarchical;
|
||||||
|
|
||||||
hierarchicalCoeffs
|
coeffs
|
||||||
{
|
{
|
||||||
n (1 2 1);
|
n (1 2 1);
|
||||||
delta 0.001;
|
// order xyz; //< default order = xyz
|
||||||
order xyz;
|
|
||||||
}
|
|
||||||
|
|
||||||
manualCoeffs
|
|
||||||
{
|
|
||||||
dataFile "decompositionData";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -17,136 +17,13 @@ FoamFile
|
|||||||
|
|
||||||
numberOfSubdomains 2;
|
numberOfSubdomains 2;
|
||||||
|
|
||||||
//- Use the volScalarField named here as a weight for each cell in the
|
|
||||||
// decomposition. For example, use a particle population field to decompose
|
|
||||||
// for a balanced number of particles in a lagrangian simulation.
|
|
||||||
// weightField dsmcRhoNMean;
|
|
||||||
|
|
||||||
//method scotch;
|
|
||||||
method hierarchical;
|
method hierarchical;
|
||||||
// method simple;
|
|
||||||
// method metis;
|
|
||||||
// method manual;
|
|
||||||
// method multiLevel;
|
|
||||||
// method structured; // does 2D decomposition of structured mesh
|
|
||||||
|
|
||||||
multiLevelCoeffs
|
coeffs
|
||||||
{
|
|
||||||
// Decomposition methods to apply in turn. This is like hierarchical but
|
|
||||||
// fully general - every method can be used at every level.
|
|
||||||
|
|
||||||
level0
|
|
||||||
{
|
|
||||||
numberOfSubdomains 64;
|
|
||||||
//method simple;
|
|
||||||
//simpleCoeffs
|
|
||||||
//{
|
|
||||||
// n (2 1 1);
|
|
||||||
// delta 0.001;
|
|
||||||
//}
|
|
||||||
method scotch;
|
|
||||||
}
|
|
||||||
level1
|
|
||||||
{
|
|
||||||
numberOfSubdomains 4;
|
|
||||||
method scotch;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Desired output
|
|
||||||
|
|
||||||
simpleCoeffs
|
|
||||||
{
|
{
|
||||||
n (2 1 1);
|
n (2 1 1);
|
||||||
delta 0.001;
|
|
||||||
}
|
|
||||||
|
|
||||||
hierarchicalCoeffs
|
|
||||||
{
|
|
||||||
n (2 1 1);
|
|
||||||
delta 0.001;
|
|
||||||
order xyz;
|
order xyz;
|
||||||
}
|
}
|
||||||
|
|
||||||
metisCoeffs
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
processorWeights
|
|
||||||
(
|
|
||||||
1
|
|
||||||
1
|
|
||||||
1
|
|
||||||
1
|
|
||||||
);
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
|
|
||||||
scotchCoeffs
|
|
||||||
{
|
|
||||||
//processorWeights
|
|
||||||
//(
|
|
||||||
// 1
|
|
||||||
// 1
|
|
||||||
// 1
|
|
||||||
// 1
|
|
||||||
//);
|
|
||||||
//writeGraph true;
|
|
||||||
//strategy "b";
|
|
||||||
}
|
|
||||||
|
|
||||||
manualCoeffs
|
|
||||||
{
|
|
||||||
dataFile "decompositionData";
|
|
||||||
}
|
|
||||||
|
|
||||||
structuredCoeffs
|
|
||||||
{
|
|
||||||
// Patches to do 2D decomposition on. Structured mesh only; cells have
|
|
||||||
// to be in 'columns' on top of patches.
|
|
||||||
patches (movingWall);
|
|
||||||
|
|
||||||
// Method to use on the 2D subset
|
|
||||||
method scotch;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
constraints
|
|
||||||
{
|
|
||||||
//- Keep owner and neighbour on same processor for faces in zones:
|
|
||||||
faces
|
|
||||||
{
|
|
||||||
type preserveFaceZones;
|
|
||||||
zones (heater solid1 solid3);
|
|
||||||
}
|
|
||||||
//- Keep owner and neighbour on same processor for faces in patches:
|
|
||||||
// (makes sense only for cyclic patches)
|
|
||||||
patches
|
|
||||||
{
|
|
||||||
type preservePatches,
|
|
||||||
patches (cyclic_half0 cyclic_half1);
|
|
||||||
}
|
|
||||||
//- Keep all of faceSet on a single processor. This puts all cells
|
|
||||||
// connected with a point, edge or face on the same processor.
|
|
||||||
// (just having face connected cells might not guarantee a balanced
|
|
||||||
// decomposition)
|
|
||||||
// The processor can be -1 (the decompositionMethod chooses the processor
|
|
||||||
// for a good load balance) or explicitly provided (upsets balance).
|
|
||||||
processors
|
|
||||||
{
|
|
||||||
type singleProcessorFaceSets;
|
|
||||||
sets ((f0 -1));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
//// Is the case distributed? Note: command-line argument -roots takes
|
|
||||||
//// precedence
|
|
||||||
//distributed yes;
|
|
||||||
//// Per slave (so nProcs-1 entries) the directory above the case.
|
|
||||||
//roots
|
|
||||||
//(
|
|
||||||
// "/tmp"
|
|
||||||
// "/tmp"
|
|
||||||
//);
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v1912 |
|
| \\ / O peration | Version: v2006 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -19,7 +19,7 @@ cuttingPlane
|
|||||||
interpolationScheme cellPoint;
|
interpolationScheme cellPoint;
|
||||||
|
|
||||||
surfaces
|
surfaces
|
||||||
(
|
{
|
||||||
zNormal
|
zNormal
|
||||||
{
|
{
|
||||||
type cuttingPlane;
|
type cuttingPlane;
|
||||||
@ -31,7 +31,7 @@ cuttingPlane
|
|||||||
}
|
}
|
||||||
interpolate true;
|
interpolate true;
|
||||||
}
|
}
|
||||||
);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v1912 |
|
| \\ / O peration | Version: v2006 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -97,7 +97,7 @@ plane
|
|||||||
fields ( cellZoneID );
|
fields ( cellZoneID );
|
||||||
|
|
||||||
surfaces
|
surfaces
|
||||||
(
|
{
|
||||||
zNormal
|
zNormal
|
||||||
{
|
{
|
||||||
type cuttingPlane;
|
type cuttingPlane;
|
||||||
@ -109,7 +109,7 @@ plane
|
|||||||
}
|
}
|
||||||
interpolate false;
|
interpolate false;
|
||||||
}
|
}
|
||||||
);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v1912 |
|
| \\ / O peration | Version: v2006 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -13,11 +13,11 @@ flux
|
|||||||
libs (fieldFunctionObjects);
|
libs (fieldFunctionObjects);
|
||||||
mode functionObjectSurface;
|
mode functionObjectSurface;
|
||||||
surfaces
|
surfaces
|
||||||
(
|
{
|
||||||
sampled.plane-0.25
|
sampled.plane-0.25
|
||||||
sampled.plane-0.45
|
sampled.plane-0.45
|
||||||
sampled.plane-0.55
|
sampled.plane-0.55
|
||||||
);
|
}
|
||||||
|
|
||||||
// Optional entries
|
// Optional entries
|
||||||
phi rhoU;
|
phi rhoU;
|
||||||
|
|||||||
@ -51,7 +51,7 @@ debug
|
|||||||
}
|
}
|
||||||
|
|
||||||
surfaces
|
surfaces
|
||||||
(
|
{
|
||||||
angledPlane
|
angledPlane
|
||||||
{
|
{
|
||||||
type distanceSurface;
|
type distanceSurface;
|
||||||
@ -120,7 +120,7 @@ debug
|
|||||||
${_plane}
|
${_plane}
|
||||||
bounds (-1 -1 -1) (0 0 1);
|
bounds (-1 -1 -1) (0 0 1);
|
||||||
}
|
}
|
||||||
);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -17,14 +17,12 @@ FoamFile
|
|||||||
|
|
||||||
numberOfSubdomains 4;
|
numberOfSubdomains 4;
|
||||||
|
|
||||||
|
|
||||||
method scotch;
|
method scotch;
|
||||||
|
|
||||||
hierarchicalCoeffs
|
coeffs
|
||||||
{
|
{
|
||||||
n (2 1 1);
|
n (2 2 1);
|
||||||
delta 0.001;
|
// order xyz; //< default order = xyz
|
||||||
order xyz;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -17,11 +17,11 @@ FoamFile
|
|||||||
numberOfSubdomains 4;
|
numberOfSubdomains 4;
|
||||||
|
|
||||||
method hierarchical;
|
method hierarchical;
|
||||||
hierarchicalCoeffs
|
|
||||||
|
coeffs
|
||||||
{
|
{
|
||||||
n (4 1 1);
|
n (4 1 1);
|
||||||
delta 0.001;
|
// order xyz; //< default order = xyz
|
||||||
order xyz;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -17,11 +17,11 @@ FoamFile
|
|||||||
numberOfSubdomains 4;
|
numberOfSubdomains 4;
|
||||||
|
|
||||||
method hierarchical;
|
method hierarchical;
|
||||||
hierarchicalCoeffs
|
|
||||||
|
coeffs
|
||||||
{
|
{
|
||||||
n (4 1 1);
|
n (4 1 1);
|
||||||
delta 0.001;
|
// order xyz; //< default order = xyz
|
||||||
order xyz;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v1912 |
|
| \\ / O peration | Version: v2006 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -29,7 +29,7 @@ cuttingPlane
|
|||||||
interpolationScheme cellPoint;
|
interpolationScheme cellPoint;
|
||||||
|
|
||||||
surfaces
|
surfaces
|
||||||
(
|
{
|
||||||
yNormal
|
yNormal
|
||||||
{
|
{
|
||||||
type cuttingPlane;
|
type cuttingPlane;
|
||||||
@ -41,7 +41,7 @@ cuttingPlane
|
|||||||
}
|
}
|
||||||
interpolate true;
|
interpolate true;
|
||||||
}
|
}
|
||||||
);
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v1912 |
|
| \\ / O peration | Version: v2006 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -99,7 +99,7 @@ functions
|
|||||||
interpolationScheme cellPoint;
|
interpolationScheme cellPoint;
|
||||||
|
|
||||||
surfaces
|
surfaces
|
||||||
(
|
{
|
||||||
zNormal
|
zNormal
|
||||||
{
|
{
|
||||||
type cuttingPlane;
|
type cuttingPlane;
|
||||||
@ -111,7 +111,7 @@ functions
|
|||||||
}
|
}
|
||||||
interpolate false;
|
interpolate false;
|
||||||
}
|
}
|
||||||
);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
forces
|
forces
|
||||||
|
|||||||
@ -19,10 +19,9 @@ numberOfSubdomains 4;
|
|||||||
|
|
||||||
method hierarchical;
|
method hierarchical;
|
||||||
|
|
||||||
hierarchicalCoeffs
|
coeffs
|
||||||
{
|
{
|
||||||
n (2 2 1);
|
n (2 2 1);
|
||||||
delta 0.001;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v1912 |
|
| \\ / O peration | Version: v2006 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -19,7 +19,7 @@ cuttingPlane
|
|||||||
interpolationScheme cellPoint;
|
interpolationScheme cellPoint;
|
||||||
|
|
||||||
surfaces
|
surfaces
|
||||||
(
|
{
|
||||||
zNormal
|
zNormal
|
||||||
{
|
{
|
||||||
type cuttingPlane;
|
type cuttingPlane;
|
||||||
@ -31,7 +31,7 @@ cuttingPlane
|
|||||||
}
|
}
|
||||||
interpolate true;
|
interpolate true;
|
||||||
}
|
}
|
||||||
);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v1912 |
|
| \\ / O peration | Version: v2006 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -96,13 +96,10 @@ functions
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Sample near-wall velocity
|
||||||
surfaceSampling
|
surfaceSampling
|
||||||
{
|
{
|
||||||
// Sample near-wall velocity
|
type surfaces;
|
||||||
|
|
||||||
type surfaces;
|
|
||||||
|
|
||||||
// Where to load it from (if not already in solver)
|
|
||||||
libs (sampling);
|
libs (sampling);
|
||||||
writeControl writeTime;
|
writeControl writeTime;
|
||||||
|
|
||||||
@ -117,7 +114,7 @@ functions
|
|||||||
);
|
);
|
||||||
|
|
||||||
surfaces
|
surfaces
|
||||||
(
|
{
|
||||||
nearWall
|
nearWall
|
||||||
{
|
{
|
||||||
type patchInternalField;
|
type patchInternalField;
|
||||||
@ -126,7 +123,7 @@ functions
|
|||||||
interpolate true;
|
interpolate true;
|
||||||
triangulate false;
|
triangulate false;
|
||||||
}
|
}
|
||||||
);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#includeFunc scalarTransport
|
#includeFunc scalarTransport
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v1912 |
|
| \\ / O peration | Version: v2006 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -96,13 +96,10 @@ functions
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Sample near-wall velocity
|
||||||
surfaceSampling
|
surfaceSampling
|
||||||
{
|
{
|
||||||
// Sample near-wall velocity
|
type surfaces;
|
||||||
|
|
||||||
type surfaces;
|
|
||||||
|
|
||||||
// Where to load it from (if not already in solver)
|
|
||||||
libs (sampling);
|
libs (sampling);
|
||||||
writeControl writeTime;
|
writeControl writeTime;
|
||||||
|
|
||||||
@ -117,7 +114,7 @@ functions
|
|||||||
);
|
);
|
||||||
|
|
||||||
surfaces
|
surfaces
|
||||||
(
|
{
|
||||||
nearWall
|
nearWall
|
||||||
{
|
{
|
||||||
type patchInternalField;
|
type patchInternalField;
|
||||||
@ -126,7 +123,7 @@ functions
|
|||||||
interpolate true;
|
interpolate true;
|
||||||
triangulate false;
|
triangulate false;
|
||||||
}
|
}
|
||||||
);
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -50,15 +50,15 @@ functions
|
|||||||
momErr
|
momErr
|
||||||
{
|
{
|
||||||
type momentumError;
|
type momentumError;
|
||||||
|
libs (fieldFunctionObjects);
|
||||||
executeControl writeTime;
|
executeControl writeTime;
|
||||||
writeControl writeTime;
|
writeControl writeTime;
|
||||||
libs (libfieldFunctionObjects);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
contErr
|
contErr
|
||||||
{
|
{
|
||||||
libs (libfieldFunctionObjects);
|
|
||||||
type div;
|
type div;
|
||||||
|
libs (fieldFunctionObjects);
|
||||||
field phi;
|
field phi;
|
||||||
executeControl writeTime;
|
executeControl writeTime;
|
||||||
writeControl writeTime;
|
writeControl writeTime;
|
||||||
|
|||||||
@ -19,10 +19,12 @@ numberOfSubdomains 8;
|
|||||||
|
|
||||||
method hierarchical;
|
method hierarchical;
|
||||||
|
|
||||||
hierarchicalCoeffs
|
coeffs
|
||||||
{
|
{
|
||||||
n (8 1 1);
|
n (8 1 1);
|
||||||
// delta 0.001; //< default value = 0.001
|
// delta 0.001; //< default value = 0.001
|
||||||
// order xyz; //< default order = xyz
|
// order xyz; //< default order = xyz
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v1912 |
|
| \\ / O peration | Version: v2006 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -18,7 +18,7 @@ cuttingPlane
|
|||||||
interpolationScheme cellPoint;
|
interpolationScheme cellPoint;
|
||||||
|
|
||||||
surfaces
|
surfaces
|
||||||
(
|
{
|
||||||
yNormal
|
yNormal
|
||||||
{
|
{
|
||||||
type cuttingPlane;
|
type cuttingPlane;
|
||||||
@ -30,7 +30,7 @@ cuttingPlane
|
|||||||
}
|
}
|
||||||
interpolate true;
|
interpolate true;
|
||||||
}
|
}
|
||||||
);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -91,7 +91,7 @@ sampled
|
|||||||
}
|
}
|
||||||
|
|
||||||
surfaces
|
surfaces
|
||||||
(
|
{
|
||||||
// Top channel
|
// Top channel
|
||||||
plane1
|
plane1
|
||||||
{
|
{
|
||||||
@ -117,7 +117,7 @@ sampled
|
|||||||
surfaceType triSurfaceMesh;
|
surfaceType triSurfaceMesh;
|
||||||
surfaceName angledPlane.obj;
|
surfaceName angledPlane.obj;
|
||||||
}
|
}
|
||||||
);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -27,7 +27,7 @@ debug
|
|||||||
}
|
}
|
||||||
|
|
||||||
surfaces
|
surfaces
|
||||||
(
|
{
|
||||||
angledPlane
|
angledPlane
|
||||||
{
|
{
|
||||||
type distanceSurface;
|
type distanceSurface;
|
||||||
@ -46,7 +46,7 @@ debug
|
|||||||
regularise true;
|
regularise true;
|
||||||
interpolate true;
|
interpolate true;
|
||||||
}
|
}
|
||||||
);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v1912 |
|
| \\ / O peration | Version: v2006 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -18,7 +18,7 @@ cuttingPlane
|
|||||||
interpolationScheme cellPoint;
|
interpolationScheme cellPoint;
|
||||||
|
|
||||||
surfaces
|
surfaces
|
||||||
(
|
{
|
||||||
yNormal
|
yNormal
|
||||||
{
|
{
|
||||||
type cuttingPlane;
|
type cuttingPlane;
|
||||||
@ -30,7 +30,7 @@ cuttingPlane
|
|||||||
}
|
}
|
||||||
interpolate true;
|
interpolate true;
|
||||||
}
|
}
|
||||||
);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v1912 |
|
| \\ / O peration | Version: v2006 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -85,14 +85,14 @@ functions
|
|||||||
interpolationScheme cellPoint;
|
interpolationScheme cellPoint;
|
||||||
|
|
||||||
surfaces
|
surfaces
|
||||||
(
|
{
|
||||||
walls
|
walls
|
||||||
{
|
{
|
||||||
type patch;
|
type patch;
|
||||||
patches (walls);
|
patches (walls);
|
||||||
triangulate false;
|
triangulate false;
|
||||||
}
|
}
|
||||||
);
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -19,27 +19,9 @@ numberOfSubdomains 4;
|
|||||||
|
|
||||||
method simple;
|
method simple;
|
||||||
|
|
||||||
simpleCoeffs
|
coeffs
|
||||||
{
|
{
|
||||||
n (2 2 1);
|
n (2 2 1);
|
||||||
delta 0.001;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
hierarchicalCoeffs
|
|
||||||
{
|
|
||||||
n (1 1 1);
|
|
||||||
delta 0.001;
|
|
||||||
order xyz;
|
|
||||||
}
|
|
||||||
|
|
||||||
manualCoeffs
|
|
||||||
{
|
|
||||||
dataFile "";
|
|
||||||
}
|
|
||||||
|
|
||||||
distributed no;
|
|
||||||
|
|
||||||
roots ( );
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v1912 |
|
| \\ / O peration | Version: v2006 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -85,14 +85,14 @@ functions
|
|||||||
interpolationScheme cellPoint;
|
interpolationScheme cellPoint;
|
||||||
|
|
||||||
surfaces
|
surfaces
|
||||||
(
|
{
|
||||||
walls
|
walls
|
||||||
{
|
{
|
||||||
type patch;
|
type patch;
|
||||||
patches (walls);
|
patches (walls);
|
||||||
triangulate false;
|
triangulate false;
|
||||||
}
|
}
|
||||||
);
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v1912 |
|
| \\ / O peration | Version: v2006 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -85,14 +85,14 @@ functions
|
|||||||
interpolationScheme cellPoint;
|
interpolationScheme cellPoint;
|
||||||
|
|
||||||
surfaces
|
surfaces
|
||||||
(
|
{
|
||||||
walls
|
walls
|
||||||
{
|
{
|
||||||
type patch;
|
type patch;
|
||||||
patches (walls);
|
patches (walls);
|
||||||
triangulate false;
|
triangulate false;
|
||||||
}
|
}
|
||||||
);
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v1912 |
|
| \\ / O peration | Version: v2006 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -86,14 +86,14 @@ functions
|
|||||||
interpolationScheme cellPoint;
|
interpolationScheme cellPoint;
|
||||||
|
|
||||||
surfaces
|
surfaces
|
||||||
(
|
{
|
||||||
walls
|
walls
|
||||||
{
|
{
|
||||||
type patch;
|
type patch;
|
||||||
patches (walls);
|
patches (walls);
|
||||||
triangulate false;
|
triangulate false;
|
||||||
}
|
}
|
||||||
);
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user