mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use zero-gradient for cellDist field (reconstructParMesh)
- consistent with what decomposePar and redistributePar create
This commit is contained in:
@ -69,7 +69,7 @@ Usage
|
|||||||
#include "faceCoupleInfo.H"
|
#include "faceCoupleInfo.H"
|
||||||
#include "fvMeshAdder.H"
|
#include "fvMeshAdder.H"
|
||||||
#include "polyTopoChange.H"
|
#include "polyTopoChange.H"
|
||||||
#include "extrapolatedCalculatedFvPatchFields.H"
|
#include "zeroGradientFvPatchFields.H"
|
||||||
#include "topoSet.H"
|
#include "topoSet.H"
|
||||||
#include "regionProperties.H"
|
#include "regionProperties.H"
|
||||||
#include "fvMeshTools.H"
|
#include "fvMeshTools.H"
|
||||||
@ -399,8 +399,8 @@ void writeDistribution
|
|||||||
<< cellDecomposition.objectRelPath()
|
<< cellDecomposition.objectRelPath()
|
||||||
<< " for use in manual decomposition." << endl;
|
<< " for use in manual decomposition." << endl;
|
||||||
|
|
||||||
// Write as volScalarField for postprocessing. Change time to 0
|
// Write as volScalarField for postprocessing.
|
||||||
// if was 'constant'
|
// Change time to 0 if was 'constant'
|
||||||
{
|
{
|
||||||
const scalar oldTime = runTime.value();
|
const scalar oldTime = runTime.value();
|
||||||
const label oldIndex = runTime.timeIndex();
|
const label oldIndex = runTime.timeIndex();
|
||||||
@ -421,8 +421,8 @@ void writeDistribution
|
|||||||
false
|
false
|
||||||
),
|
),
|
||||||
masterMesh,
|
masterMesh,
|
||||||
dimensionedScalar(dimless, Zero),
|
dimensionedScalar("cellDist", dimless, -1),
|
||||||
extrapolatedCalculatedFvPatchScalarField::typeName
|
zeroGradientFvPatchScalarField::typeName
|
||||||
);
|
);
|
||||||
|
|
||||||
forAll(cellDecomposition, celli)
|
forAll(cellDecomposition, celli)
|
||||||
|
|||||||
@ -414,7 +414,7 @@ void writeDecomposition
|
|||||||
mesh.time().timeName(),
|
mesh.time().timeName(),
|
||||||
mesh,
|
mesh,
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
IOobject::AUTO_WRITE,
|
IOobject::NO_WRITE,
|
||||||
false // do not register
|
false // do not register
|
||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
@ -422,9 +422,9 @@ void writeDecomposition
|
|||||||
zeroGradientFvPatchScalarField::typeName
|
zeroGradientFvPatchScalarField::typeName
|
||||||
);
|
);
|
||||||
|
|
||||||
forAll(procCells, cI)
|
forAll(procCells, celli)
|
||||||
{
|
{
|
||||||
procCells[cI] = decomp[cI];
|
procCells[celli] = decomp[celli];
|
||||||
}
|
}
|
||||||
|
|
||||||
procCells.correctBoundaryConditions();
|
procCells.correctBoundaryConditions();
|
||||||
|
|||||||
Reference in New Issue
Block a user