mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use calculatedType() and zeroGradientType() methods
This commit is contained in:
@ -29,7 +29,7 @@ if (mesh.changing())
|
|||||||
wordList pcorrTypes
|
wordList pcorrTypes
|
||||||
(
|
(
|
||||||
p.boundaryField().size(),
|
p.boundaryField().size(),
|
||||||
zeroGradientFvPatchScalarField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
);
|
);
|
||||||
|
|
||||||
// Set BCs of pcorr to fixed-value for patches at which p is fixed
|
// Set BCs of pcorr to fixed-value for patches at which p is fixed
|
||||||
|
|||||||
@ -29,7 +29,7 @@ if (mesh.changing())
|
|||||||
wordList pcorrTypes
|
wordList pcorrTypes
|
||||||
(
|
(
|
||||||
p.boundaryField().size(),
|
p.boundaryField().size(),
|
||||||
zeroGradientFvPatchScalarField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
);
|
);
|
||||||
|
|
||||||
// Set BCs of pcorr to fixed-value for patches at which p is fixed
|
// Set BCs of pcorr to fixed-value for patches at which p is fixed
|
||||||
|
|||||||
@ -57,7 +57,7 @@
|
|||||||
),
|
),
|
||||||
solidRegions[i],
|
solidRegions[i],
|
||||||
dimensionedSymmTensor(tkappaByCp().dimensions(), Zero),
|
dimensionedSymmTensor(tkappaByCp().dimensions(), Zero),
|
||||||
zeroGradientFvPatchSymmTensorField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -34,7 +34,7 @@ if (!thermo.isotropic())
|
|||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedSymmTensor(tkappaByCp().dimensions(), Zero),
|
dimensionedSymmTensor(tkappaByCp().dimensions(), Zero),
|
||||||
zeroGradientFvPatchSymmTensorField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
volSymmTensorField& aniAlpha = *taniAlpha;
|
volSymmTensorField& aniAlpha = *taniAlpha;
|
||||||
|
|||||||
@ -24,7 +24,7 @@ if (mesh.changing())
|
|||||||
wordList pcorrTypes
|
wordList pcorrTypes
|
||||||
(
|
(
|
||||||
p.boundaryField().size(),
|
p.boundaryField().size(),
|
||||||
zeroGradientFvPatchScalarField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
);
|
);
|
||||||
|
|
||||||
// Set BCs of pcorr to fixed-value for patches at which p is fixed
|
// Set BCs of pcorr to fixed-value for patches at which p is fixed
|
||||||
|
|||||||
@ -130,7 +130,7 @@ int main(int argc, char *argv[])
|
|||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedVector(cloudSU.dimensions()/dimVolume, Zero),
|
dimensionedVector(cloudSU.dimensions()/dimVolume, Zero),
|
||||||
zeroGradientFvPatchVectorField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
);
|
);
|
||||||
|
|
||||||
cloudVolSUSu.primitiveFieldRef() = -cloudSU.source()/mesh.V();
|
cloudVolSUSu.primitiveFieldRef() = -cloudSU.source()/mesh.V();
|
||||||
|
|||||||
@ -111,7 +111,7 @@ int main(int argc, char *argv[])
|
|||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedVector(cloudSU.dimensions()/dimVolume, Zero),
|
dimensionedVector(cloudSU.dimensions()/dimVolume, Zero),
|
||||||
zeroGradientFvPatchVectorField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
);
|
);
|
||||||
|
|
||||||
cloudVolSUSu.primitiveFieldRef() = -cloudSU.source()/mesh.V();
|
cloudVolSUSu.primitiveFieldRef() = -cloudSU.source()/mesh.V();
|
||||||
|
|||||||
@ -141,7 +141,7 @@ int main(int argc, char *argv[])
|
|||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedVector(cloudSU.dimensions()/dimVolume, Zero),
|
dimensionedVector(cloudSU.dimensions()/dimVolume, Zero),
|
||||||
zeroGradientFvPatchVectorField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
);
|
);
|
||||||
|
|
||||||
cloudVolSUSu.primitiveFieldRef() = -cloudSU.source()/mesh.V();
|
cloudVolSUSu.primitiveFieldRef() = -cloudSU.source()/mesh.V();
|
||||||
|
|||||||
@ -64,8 +64,7 @@ volScalarField mu
|
|||||||
mesh,
|
mesh,
|
||||||
IOobject::READ_IF_PRESENT
|
IOobject::READ_IF_PRESENT
|
||||||
),
|
),
|
||||||
mixture.mu(),
|
mixture.mu()
|
||||||
calculatedFvPatchScalarField::typeName
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@ -139,7 +138,7 @@ volScalarField alphac
|
|||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar(dimless, Zero),
|
dimensionedScalar(dimless, Zero),
|
||||||
zeroGradientFvPatchScalarField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
);
|
);
|
||||||
alphac.oldTime();
|
alphac.oldTime();
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
wordList pcorrTypes
|
wordList pcorrTypes
|
||||||
(
|
(
|
||||||
p.boundaryField().size(),
|
p.boundaryField().size(),
|
||||||
zeroGradientFvPatchScalarField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
);
|
);
|
||||||
|
|
||||||
for (label i=0; i<p.boundaryField().size(); i++)
|
for (label i=0; i<p.boundaryField().size(); i++)
|
||||||
|
|||||||
@ -140,7 +140,7 @@ Foam::fv::VoFSolidificationMeltingSource::VoFSolidificationMeltingSource
|
|||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar(dimless, Zero),
|
dimensionedScalar(dimless, Zero),
|
||||||
zeroGradientFvPatchScalarField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
),
|
),
|
||||||
curTimeIndex_(-1)
|
curTimeIndex_(-1)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -105,8 +105,7 @@ incompressibleTwoPhaseInteractingMixture
|
|||||||
U_.db()
|
U_.db()
|
||||||
),
|
),
|
||||||
U_.mesh(),
|
U_.mesh(),
|
||||||
dimensionedScalar(dimensionSet(1, -1, -1, 0, 0), Zero),
|
dimensionedScalar(dimensionSet(1, -1, -1, 0, 0), Zero)
|
||||||
calculatedFvPatchScalarField::typeName
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
correct();
|
correct();
|
||||||
|
|||||||
@ -48,7 +48,7 @@ Foam::wordList Foam::relativeVelocityModel::UdmPatchFieldTypes() const
|
|||||||
wordList UdmTypes
|
wordList UdmTypes
|
||||||
(
|
(
|
||||||
U.boundaryField().size(),
|
U.boundaryField().size(),
|
||||||
calculatedFvPatchScalarField::typeName
|
fvPatchFieldBase::calculatedType()
|
||||||
);
|
);
|
||||||
|
|
||||||
forAll(U.boundaryField(), i)
|
forAll(U.boundaryField(), i)
|
||||||
|
|||||||
@ -119,8 +119,7 @@ Foam::incompressibleThreePhaseMixture::incompressibleThreePhaseMixture
|
|||||||
U.db()
|
U.db()
|
||||||
),
|
),
|
||||||
U.mesh(),
|
U.mesh(),
|
||||||
dimensionedScalar(dimensionSet(0, 2, -1, 0, 0), Zero),
|
dimensionedScalar(dimensionSet(0, 2, -1, 0, 0), Zero)
|
||||||
calculatedFvPatchScalarField::typeName
|
|
||||||
),
|
),
|
||||||
|
|
||||||
nuModel1_
|
nuModel1_
|
||||||
|
|||||||
@ -27,7 +27,7 @@
|
|||||||
wordList pcorrTypes
|
wordList pcorrTypes
|
||||||
(
|
(
|
||||||
p_rgh.boundaryField().size(),
|
p_rgh.boundaryField().size(),
|
||||||
zeroGradientFvPatchScalarField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
);
|
);
|
||||||
|
|
||||||
for (label i=0; i<p_rgh.boundaryField().size(); i++)
|
for (label i=0; i<p_rgh.boundaryField().size(); i++)
|
||||||
|
|||||||
@ -76,7 +76,7 @@
|
|||||||
mesh
|
mesh
|
||||||
),
|
),
|
||||||
fluid.dragCoeff(phase, dragCoeffs())/phase.rho(),
|
fluid.dragCoeff(phase, dragCoeffs())/phase.rho(),
|
||||||
zeroGradientFvPatchScalarField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
);
|
);
|
||||||
dragCoeffi.correctBoundaryConditions();
|
dragCoeffi.correctBoundaryConditions();
|
||||||
|
|
||||||
|
|||||||
@ -41,7 +41,6 @@ Description
|
|||||||
#include "mapPolyMesh.H"
|
#include "mapPolyMesh.H"
|
||||||
#include "polyTopoChange.H"
|
#include "polyTopoChange.H"
|
||||||
#include "fvCFD.H"
|
#include "fvCFD.H"
|
||||||
#include "zeroGradientFvPatchFields.H"
|
|
||||||
#include "Random.H"
|
#include "Random.H"
|
||||||
|
|
||||||
using namespace Foam;
|
using namespace Foam;
|
||||||
@ -93,7 +92,7 @@ int main(int argc, char *argv[])
|
|||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar("one", dimless, 1.0),
|
dimensionedScalar("one", dimless, 1.0),
|
||||||
zeroGradientFvPatchScalarField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
);
|
);
|
||||||
Info<< "Writing one field "
|
Info<< "Writing one field "
|
||||||
<< one.name() << " in " << runTime.timeName() << endl;
|
<< one.name() << " in " << runTime.timeName() << endl;
|
||||||
@ -131,8 +130,7 @@ int main(int argc, char *argv[])
|
|||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar("one", dimless, 1.0),
|
dimensionedScalar("one", dimless, 1.0)
|
||||||
calculatedFvsPatchScalarField::typeName
|
|
||||||
);
|
);
|
||||||
Info<< "Writing surface one field "
|
Info<< "Writing surface one field "
|
||||||
<< surfaceOne.name() << " in " << runTime.timeName() << endl;
|
<< surfaceOne.name() << " in " << runTime.timeName() << endl;
|
||||||
|
|||||||
@ -41,7 +41,6 @@ Description
|
|||||||
#include "mapPolyMesh.H"
|
#include "mapPolyMesh.H"
|
||||||
#include "polyTopoChange.H"
|
#include "polyTopoChange.H"
|
||||||
#include "Random.H"
|
#include "Random.H"
|
||||||
#include "zeroGradientFvPatchFields.H"
|
|
||||||
#include "calculatedPointPatchFields.H"
|
#include "calculatedPointPatchFields.H"
|
||||||
#include "pointConstraints.H"
|
#include "pointConstraints.H"
|
||||||
#include "fvCFD.H"
|
#include "fvCFD.H"
|
||||||
@ -99,7 +98,7 @@ int main(int argc, char *argv[])
|
|||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar("one", dimless, 1.0),
|
dimensionedScalar("one", dimless, 1.0),
|
||||||
zeroGradientFvPatchScalarField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
);
|
);
|
||||||
Info<< "Writing one field "
|
Info<< "Writing one field "
|
||||||
<< one.name() << " in " << runTime.timeName() << endl;
|
<< one.name() << " in " << runTime.timeName() << endl;
|
||||||
@ -137,8 +136,7 @@ int main(int argc, char *argv[])
|
|||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar("one", dimless, 1.0),
|
dimensionedScalar("one", dimless, 1.0)
|
||||||
calculatedFvsPatchScalarField::typeName
|
|
||||||
);
|
);
|
||||||
Info<< "Writing surface one field "
|
Info<< "Writing surface one field "
|
||||||
<< surfaceOne.name() << " in " << runTime.timeName() << endl;
|
<< surfaceOne.name() << " in " << runTime.timeName() << endl;
|
||||||
@ -157,8 +155,7 @@ int main(int argc, char *argv[])
|
|||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
),
|
),
|
||||||
pointMesh::New(mesh),
|
pointMesh::New(mesh),
|
||||||
dimensionedScalar("one", dimless, 1.0),
|
dimensionedScalar("one", dimless, 1.0)
|
||||||
calculatedPointPatchScalarField::typeName
|
|
||||||
);
|
);
|
||||||
pointX.primitiveFieldRef() = mesh.points().component(0);
|
pointX.primitiveFieldRef() = mesh.points().component(0);
|
||||||
pointX.correctBoundaryConditions();
|
pointX.correctBoundaryConditions();
|
||||||
|
|||||||
@ -59,7 +59,7 @@ int main(int argc, char *argv[])
|
|||||||
wordList patchFieldTypes
|
wordList patchFieldTypes
|
||||||
(
|
(
|
||||||
mesh.boundaryMesh().size(),
|
mesh.boundaryMesh().size(),
|
||||||
calculatedFvPatchVectorField::typeName
|
fvPatchFieldBase::calculatedType()
|
||||||
);
|
);
|
||||||
|
|
||||||
forAll(mesh.boundaryMesh(), patchi)
|
forAll(mesh.boundaryMesh(), patchi)
|
||||||
|
|||||||
@ -185,7 +185,7 @@ int main(int argc, char *argv[])
|
|||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensioned<symmTensor>(dimless, symmTensor::one),
|
dimensioned<symmTensor>(dimless, symmTensor::one),
|
||||||
zeroGradientFvPatchSymmTensorField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
);
|
);
|
||||||
|
|
||||||
volTensorField tensf
|
volTensorField tensf
|
||||||
@ -200,7 +200,7 @@ int main(int argc, char *argv[])
|
|||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensioned<tensor>(dimless, tensor(1,2,3,4,5,6,7,8,9)),
|
dimensioned<tensor>(dimless, tensor(1,2,3,4,5,6,7,8,9)),
|
||||||
zeroGradientFvPatchScalarField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
);
|
);
|
||||||
|
|
||||||
SolverPerformance<symmTensor> sP =
|
SolverPerformance<symmTensor> sP =
|
||||||
|
|||||||
@ -98,8 +98,8 @@ void Foam::backgroundMeshDecomposition::initialRefinement()
|
|||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
),
|
),
|
||||||
mesh_,
|
mesh_,
|
||||||
dimensionedScalar("one", dimless, 1.0),
|
dimensionedScalar(word::null, dimless, 1.0),
|
||||||
zeroGradientFvPatchScalarField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
);
|
);
|
||||||
|
|
||||||
const conformationSurfaces& geometry = geometryToConformTo_;
|
const conformationSurfaces& geometry = geometryToConformTo_;
|
||||||
|
|||||||
@ -1098,7 +1098,7 @@ void Foam::conformalVoronoiMesh::writeCellSizes
|
|||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar(dimLength, Zero),
|
dimensionedScalar(dimLength, Zero),
|
||||||
zeroGradientFvPatchScalarField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
);
|
);
|
||||||
|
|
||||||
scalarField& cellSize = targetCellSize.primitiveFieldRef();
|
scalarField& cellSize = targetCellSize.primitiveFieldRef();
|
||||||
@ -1124,7 +1124,7 @@ void Foam::conformalVoronoiMesh::writeCellSizes
|
|||||||
// ),
|
// ),
|
||||||
// mesh,
|
// mesh,
|
||||||
// dimensionedScalar(dimLength, Zero),
|
// dimensionedScalar(dimLength, Zero),
|
||||||
// zeroGradientFvPatchScalarField::typeName
|
// fvPatchFieldBase::zeroGradientType()
|
||||||
// );
|
// );
|
||||||
|
|
||||||
// targetCellVolume.primitiveFieldRef() = pow3(cellSize);
|
// targetCellVolume.primitiveFieldRef() = pow3(cellSize);
|
||||||
@ -1143,7 +1143,7 @@ void Foam::conformalVoronoiMesh::writeCellSizes
|
|||||||
// ),
|
// ),
|
||||||
// mesh,
|
// mesh,
|
||||||
// dimensionedScalar(dimVolume, Zero),
|
// dimensionedScalar(dimVolume, Zero),
|
||||||
// zeroGradientFvPatchScalarField::typeName
|
// fvPatchFieldBase::zeroGradientType()
|
||||||
// );
|
// );
|
||||||
|
|
||||||
// actualCellVolume.primitiveFieldRef() = mesh.cellVolumes();
|
// actualCellVolume.primitiveFieldRef() = mesh.cellVolumes();
|
||||||
@ -1162,7 +1162,7 @@ void Foam::conformalVoronoiMesh::writeCellSizes
|
|||||||
// ),
|
// ),
|
||||||
// mesh,
|
// mesh,
|
||||||
// dimensionedScalar(dimLength, Zero),
|
// dimensionedScalar(dimLength, Zero),
|
||||||
// zeroGradientFvPatchScalarField::typeName
|
// fvPatchFieldBase::zeroGradientType()
|
||||||
// );
|
// );
|
||||||
|
|
||||||
// equivalentCellSize.primitiveFieldRef() = pow
|
// equivalentCellSize.primitiveFieldRef() = pow
|
||||||
@ -1240,11 +1240,12 @@ void Foam::conformalVoronoiMesh::writeCellAlignments
|
|||||||
// mesh.polyMesh::instance(),
|
// mesh.polyMesh::instance(),
|
||||||
// mesh,
|
// mesh,
|
||||||
// IOobject::NO_READ,
|
// IOobject::NO_READ,
|
||||||
// IOobject::AUTO_WRITE
|
// IOobject::NO_WRITE,
|
||||||
|
// IOobject::NO_REGISTER
|
||||||
// ),
|
// ),
|
||||||
// mesh,
|
// mesh,
|
||||||
// tensor::I,
|
// tensor::I,
|
||||||
// zeroGradientFvPatchTensorField::typeName
|
// fvPatchFieldBase::zeroGradientType()
|
||||||
// );
|
// );
|
||||||
//
|
//
|
||||||
// tensorField& cellAlignment = cellAlignments.primitiveFieldRef();
|
// tensorField& cellAlignment = cellAlignments.primitiveFieldRef();
|
||||||
|
|||||||
@ -79,8 +79,8 @@ bool Foam::conformalVoronoiMesh::distributeBackground(const Triangulation& mesh)
|
|||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
),
|
),
|
||||||
bMesh,
|
bMesh,
|
||||||
dimensionedScalar("weight", dimless, 1e-2),
|
dimensionedScalar(word::null, dimless, 1e-2),
|
||||||
zeroGradientFvPatchScalarField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
);
|
);
|
||||||
|
|
||||||
meshSearch cellSearch(bMesh, polyMesh::FACE_PLANES);
|
meshSearch cellSearch(bMesh, polyMesh::FACE_PLANES);
|
||||||
|
|||||||
@ -2,7 +2,6 @@
|
|||||||
#include "volFields.H"
|
#include "volFields.H"
|
||||||
#include "surfaceFields.H"
|
#include "surfaceFields.H"
|
||||||
#include "polyMeshTools.H"
|
#include "polyMeshTools.H"
|
||||||
#include "zeroGradientFvPatchFields.H"
|
|
||||||
#include "syncTools.H"
|
#include "syncTools.H"
|
||||||
#include "tetrahedron.H"
|
#include "tetrahedron.H"
|
||||||
#include "regionSplit.H"
|
#include "regionSplit.H"
|
||||||
@ -138,8 +137,7 @@ void writeSurfaceField
|
|||||||
IOobject::NO_REGISTER
|
IOobject::NO_REGISTER
|
||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar(dimless, Zero),
|
dimensionedScalar(dimless, Zero)
|
||||||
calculatedFvsPatchScalarField::typeName
|
|
||||||
);
|
);
|
||||||
fld.primitiveFieldRef() = faceData;
|
fld.primitiveFieldRef() = faceData;
|
||||||
//fld.correctBoundaryConditions();
|
//fld.correctBoundaryConditions();
|
||||||
@ -197,8 +195,7 @@ void Foam::writeFields
|
|||||||
IOobject::NO_REGISTER
|
IOobject::NO_REGISTER
|
||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar(dimless, Zero),
|
dimensionedScalar(dimless, Zero)
|
||||||
calculatedFvPatchScalarField::typeName
|
|
||||||
);
|
);
|
||||||
//- Take max
|
//- Take max
|
||||||
maxFaceToCell(nonOrthoAngle, cellNonOrthoAngle);
|
maxFaceToCell(nonOrthoAngle, cellNonOrthoAngle);
|
||||||
@ -235,7 +232,7 @@ void Foam::writeFields
|
|||||||
wordList // wanted bc types
|
wordList // wanted bc types
|
||||||
(
|
(
|
||||||
mesh.boundary().size(),
|
mesh.boundary().size(),
|
||||||
calculatedFvPatchScalarField::typeName
|
fvPatchFieldBase::calculatedType()
|
||||||
),
|
),
|
||||||
mesh.weights().boundaryField().types() // current bc types
|
mesh.weights().boundaryField().types() // current bc types
|
||||||
);
|
);
|
||||||
@ -283,8 +280,7 @@ void Foam::writeFields
|
|||||||
IOobject::NO_REGISTER
|
IOobject::NO_REGISTER
|
||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar(dimless, Zero),
|
dimensionedScalar(dimless, Zero)
|
||||||
calculatedFvPatchScalarField::typeName
|
|
||||||
);
|
);
|
||||||
//- Take max
|
//- Take max
|
||||||
maxFaceToCell(faceSkewness, cellSkewness);
|
maxFaceToCell(faceSkewness, cellSkewness);
|
||||||
@ -321,7 +317,7 @@ void Foam::writeFields
|
|||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar(dimless, Zero),
|
dimensionedScalar(dimless, Zero),
|
||||||
zeroGradientFvPatchScalarField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
);
|
);
|
||||||
cellDeterminant.primitiveFieldRef() =
|
cellDeterminant.primitiveFieldRef() =
|
||||||
primitiveMeshTools::cellDeterminant
|
primitiveMeshTools::cellDeterminant
|
||||||
@ -356,7 +352,7 @@ void Foam::writeFields
|
|||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar(dimless, Zero),
|
dimensionedScalar(dimless, Zero),
|
||||||
zeroGradientFvPatchScalarField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@ -391,7 +387,7 @@ void Foam::writeFields
|
|||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar(dimless, Zero),
|
dimensionedScalar(dimless, Zero),
|
||||||
zeroGradientFvPatchScalarField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
);
|
);
|
||||||
|
|
||||||
aspectRatio.ref().field() = cellAspectRatio(mesh);
|
aspectRatio.ref().field() = cellAspectRatio(mesh);
|
||||||
@ -421,7 +417,7 @@ void Foam::writeFields
|
|||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar(dimless, Zero),
|
dimensionedScalar(dimless, Zero),
|
||||||
zeroGradientFvPatchScalarField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
);
|
);
|
||||||
const cellShapeList& cellShapes = mesh.cellShapes();
|
const cellShapeList& cellShapes = mesh.cellShapes();
|
||||||
forAll(cellShapes, cellI)
|
forAll(cellShapes, cellI)
|
||||||
@ -449,8 +445,7 @@ void Foam::writeFields
|
|||||||
IOobject::NO_REGISTER
|
IOobject::NO_REGISTER
|
||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar(dimVolume, Zero),
|
dimensionedScalar(dimVolume, Zero)
|
||||||
calculatedFvPatchScalarField::typeName
|
|
||||||
);
|
);
|
||||||
V.ref() = mesh.V();
|
V.ref() = mesh.V();
|
||||||
Info<< " Writing cell volume to " << V.name() << endl;
|
Info<< " Writing cell volume to " << V.name() << endl;
|
||||||
@ -480,8 +475,7 @@ void Foam::writeFields
|
|||||||
IOobject::NO_REGISTER
|
IOobject::NO_REGISTER
|
||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar(dimless, Zero),
|
dimensionedScalar(dimless, Zero)
|
||||||
calculatedFvPatchScalarField::typeName
|
|
||||||
);
|
);
|
||||||
//- Take min
|
//- Take min
|
||||||
minFaceToCell(faceVolumeRatio, cellVolumeRatio);
|
minFaceToCell(faceVolumeRatio, cellVolumeRatio);
|
||||||
@ -516,7 +510,7 @@ void Foam::writeFields
|
|||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar("minTetVolume", dimless, GREAT),
|
dimensionedScalar("minTetVolume", dimless, GREAT),
|
||||||
zeroGradientFvPatchScalarField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@ -582,7 +576,7 @@ void Foam::writeFields
|
|||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar("minPyrVolume", dimless, GREAT),
|
dimensionedScalar("minPyrVolume", dimless, GREAT),
|
||||||
zeroGradientFvPatchScalarField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
);
|
);
|
||||||
|
|
||||||
// Get owner and neighbour pyr volumes
|
// Get owner and neighbour pyr volumes
|
||||||
@ -654,8 +648,7 @@ void Foam::writeFields
|
|||||||
IOobject::NO_REGISTER
|
IOobject::NO_REGISTER
|
||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar(dimless, Zero),
|
dimensionedScalar(dimless, Zero)
|
||||||
calculatedFvPatchScalarField::typeName
|
|
||||||
);
|
);
|
||||||
|
|
||||||
regionSplit rs(mesh);
|
regionSplit rs(mesh);
|
||||||
@ -705,8 +698,7 @@ void Foam::writeFields
|
|||||||
IOobject::NO_REGISTER
|
IOobject::NO_REGISTER
|
||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar(scalar(-1)),
|
dimensionedScalar(word::null, dimless, -1)
|
||||||
calculatedFvPatchScalarField::typeName
|
|
||||||
);
|
);
|
||||||
|
|
||||||
const cellZoneMesh& czs = mesh.cellZones();
|
const cellZoneMesh& czs = mesh.cellZones();
|
||||||
@ -744,8 +736,7 @@ void Foam::writeFields
|
|||||||
IOobject::NO_REGISTER
|
IOobject::NO_REGISTER
|
||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar(scalar(-1)),
|
dimensionedScalar(word::null, dimless, -1)
|
||||||
calculatedFvsPatchScalarField::typeName
|
|
||||||
);
|
);
|
||||||
|
|
||||||
faceZone.primitiveFieldRef() =
|
faceZone.primitiveFieldRef() =
|
||||||
|
|||||||
@ -100,7 +100,7 @@ label addPatch
|
|||||||
mesh,
|
mesh,
|
||||||
pp,
|
pp,
|
||||||
dictionary(), // do not set specialised patchFields
|
dictionary(), // do not set specialised patchFields
|
||||||
calculatedFvPatchField<scalar>::typeName,
|
fvPatchFieldBase::calculatedType(),
|
||||||
true // parallel sync'ed addition
|
true // parallel sync'ed addition
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1028,7 +1028,7 @@ int main(int argc, char *argv[])
|
|||||||
mesh,
|
mesh,
|
||||||
ppPtr(),
|
ppPtr(),
|
||||||
patchDict.subOrEmptyDict("patchFields"),
|
patchDict.subOrEmptyDict("patchFields"),
|
||||||
calculatedFvPatchScalarField::typeName,
|
fvPatchFieldBase::calculatedType(),
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -1079,7 +1079,7 @@ int main(int argc, char *argv[])
|
|||||||
mesh,
|
mesh,
|
||||||
ppPtr(),
|
ppPtr(),
|
||||||
patchDict.subOrEmptyDict("patchFields"),
|
patchDict.subOrEmptyDict("patchFields"),
|
||||||
calculatedFvPatchScalarField::typeName,
|
fvPatchFieldBase::calculatedType(),
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -1108,7 +1108,7 @@ int main(int argc, char *argv[])
|
|||||||
mesh,
|
mesh,
|
||||||
ppPtr(),
|
ppPtr(),
|
||||||
patchDict.subOrEmptyDict("patchFields"),
|
patchDict.subOrEmptyDict("patchFields"),
|
||||||
calculatedFvPatchScalarField::typeName,
|
fvPatchFieldBase::calculatedType(),
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -76,25 +76,14 @@ tmp<volScalarField> createScalarField
|
|||||||
const labelUList& elems
|
const labelUList& elems
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
tmp<volScalarField> tfld
|
auto tfld = volScalarField::New
|
||||||
(
|
|
||||||
new volScalarField
|
|
||||||
(
|
|
||||||
IOobject
|
|
||||||
(
|
(
|
||||||
name,
|
name,
|
||||||
mesh.time().timeName(),
|
|
||||||
mesh,
|
|
||||||
IOobject::NO_READ,
|
|
||||||
IOobject::AUTO_WRITE,
|
|
||||||
IOobject::NO_REGISTER
|
|
||||||
),
|
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar(dimless, Zero),
|
dimensionedScalar(dimless, Zero),
|
||||||
zeroGradientFvPatchScalarField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
)
|
|
||||||
);
|
);
|
||||||
volScalarField& fld = tfld.ref();
|
auto& fld = tfld.ref();
|
||||||
|
|
||||||
forAll(fld, celli)
|
forAll(fld, celli)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -114,7 +114,6 @@ Description
|
|||||||
#include "ReadFields.H"
|
#include "ReadFields.H"
|
||||||
#include "mappedWallPolyPatch.H"
|
#include "mappedWallPolyPatch.H"
|
||||||
#include "fvMeshTools.H"
|
#include "fvMeshTools.H"
|
||||||
#include "zeroGradientFvPatchFields.H"
|
|
||||||
#include "processorMeshes.H"
|
#include "processorMeshes.H"
|
||||||
|
|
||||||
using namespace Foam;
|
using namespace Foam;
|
||||||
@ -1055,7 +1054,7 @@ labelList addRegionPatches
|
|||||||
mesh,
|
mesh,
|
||||||
patch1,
|
patch1,
|
||||||
dictionary(), //optional per field value
|
dictionary(), //optional per field value
|
||||||
calculatedFvPatchField<scalar>::typeName,
|
fvPatchFieldBase::calculatedType(),
|
||||||
true //validBoundary
|
true //validBoundary
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -1076,7 +1075,7 @@ labelList addRegionPatches
|
|||||||
mesh,
|
mesh,
|
||||||
patch2,
|
patch2,
|
||||||
dictionary(), //optional per field value
|
dictionary(), //optional per field value
|
||||||
calculatedFvPatchField<scalar>::typeName,
|
fvPatchFieldBase::calculatedType(),
|
||||||
true //validBoundary
|
true //validBoundary
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -1433,7 +1432,7 @@ void writeCellToRegion(const fvMesh& mesh, const labelList& cellRegion)
|
|||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar(dimless, Zero),
|
dimensionedScalar(dimless, Zero),
|
||||||
zeroGradientFvPatchScalarField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
);
|
);
|
||||||
forAll(cellRegion, celli)
|
forAll(cellRegion, celli)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
\\ / A nd | www.openfoam.com
|
\\ / A nd | www.openfoam.com
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2021 OpenCFD Ltd.
|
Copyright (C) 2021-2023 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -28,7 +28,6 @@ License
|
|||||||
#include "domainDecompositionDryRun.H"
|
#include "domainDecompositionDryRun.H"
|
||||||
#include "foamVtkInternalMeshWriter.H"
|
#include "foamVtkInternalMeshWriter.H"
|
||||||
#include "volFields.H"
|
#include "volFields.H"
|
||||||
#include "zeroGradientFvPatchFields.H"
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -51,8 +50,8 @@ void Foam::domainDecompositionDryRun::writeVolField
|
|||||||
IOobject::NO_REGISTER
|
IOobject::NO_REGISTER
|
||||||
),
|
),
|
||||||
this->mesh(),
|
this->mesh(),
|
||||||
dimensionedScalar("cellDist", dimless, -1),
|
dimensionedScalar(word::null, dimless, -1),
|
||||||
zeroGradientFvPatchScalarField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
);
|
);
|
||||||
|
|
||||||
forAll(procIds, celli)
|
forAll(procIds, celli)
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
\\ / A nd | www.openfoam.com
|
\\ / A nd | www.openfoam.com
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2021 OpenCFD Ltd.
|
Copyright (C) 2021-2023 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -28,7 +28,6 @@ License
|
|||||||
#include "domainDecomposition.H"
|
#include "domainDecomposition.H"
|
||||||
#include "foamVtkInternalMeshWriter.H"
|
#include "foamVtkInternalMeshWriter.H"
|
||||||
#include "volFields.H"
|
#include "volFields.H"
|
||||||
#include "zeroGradientFvPatchFields.H"
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -52,8 +51,8 @@ void Foam::domainDecomposition::writeVolField
|
|||||||
IOobject::NO_REGISTER
|
IOobject::NO_REGISTER
|
||||||
),
|
),
|
||||||
this->mesh(),
|
this->mesh(),
|
||||||
dimensionedScalar("cellDist", dimless, -1),
|
dimensionedScalar(word::null, dimless, -1),
|
||||||
zeroGradientFvPatchScalarField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
);
|
);
|
||||||
|
|
||||||
forAll(procIds, celli)
|
forAll(procIds, celli)
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2011-2016 OpenFOAM Foundation
|
Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
Copyright (C) 2016-2022 OpenCFD Ltd.
|
Copyright (C) 2016-2023 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -69,7 +69,6 @@ Usage
|
|||||||
#include "faceCoupleInfo.H"
|
#include "faceCoupleInfo.H"
|
||||||
#include "fvMeshAdder.H"
|
#include "fvMeshAdder.H"
|
||||||
#include "polyTopoChange.H"
|
#include "polyTopoChange.H"
|
||||||
#include "zeroGradientFvPatchFields.H"
|
|
||||||
#include "topoSet.H"
|
#include "topoSet.H"
|
||||||
#include "regionProperties.H"
|
#include "regionProperties.H"
|
||||||
#include "fvMeshTools.H"
|
#include "fvMeshTools.H"
|
||||||
@ -421,8 +420,8 @@ void writeDistribution
|
|||||||
IOobject::NO_REGISTER
|
IOobject::NO_REGISTER
|
||||||
),
|
),
|
||||||
masterMesh,
|
masterMesh,
|
||||||
dimensionedScalar("cellDist", dimless, -1),
|
dimensionedScalar(word::null, dimless, -1),
|
||||||
zeroGradientFvPatchScalarField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
);
|
);
|
||||||
|
|
||||||
forAll(cellDecomposition, celli)
|
forAll(cellDecomposition, celli)
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2011-2017 OpenFOAM Foundation
|
Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||||
Copyright (C) 2015-2022 OpenCFD Ltd.
|
Copyright (C) 2015-2023 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -90,7 +90,6 @@ Usage
|
|||||||
#include "globalIndex.H"
|
#include "globalIndex.H"
|
||||||
#include "loadOrCreateMesh.H"
|
#include "loadOrCreateMesh.H"
|
||||||
#include "processorFvPatchField.H"
|
#include "processorFvPatchField.H"
|
||||||
#include "zeroGradientFvPatchFields.H"
|
|
||||||
#include "topoSet.H"
|
#include "topoSet.H"
|
||||||
#include "regionProperties.H"
|
#include "regionProperties.H"
|
||||||
|
|
||||||
@ -418,8 +417,8 @@ void writeDecomposition
|
|||||||
IOobject::NO_REGISTER
|
IOobject::NO_REGISTER
|
||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar(name, dimless, -1),
|
dimensionedScalar(word::null, dimless, -1),
|
||||||
zeroGradientFvPatchScalarField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
);
|
);
|
||||||
|
|
||||||
forAll(procCells, celli)
|
forAll(procCells, celli)
|
||||||
|
|||||||
@ -96,7 +96,7 @@ tmp<VolumeField<Type>> makeZeroGradientField
|
|||||||
df.mesh(),
|
df.mesh(),
|
||||||
df.dimensions(),
|
df.dimensions(),
|
||||||
std::move(df.field()),
|
std::move(df.field()),
|
||||||
zeroGradientFvPatchScalarField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
);
|
);
|
||||||
|
|
||||||
tfield.ref().oriented() = df.oriented();
|
tfield.ref().oriented() = df.oriented();
|
||||||
@ -130,7 +130,7 @@ tmp<VolumeField<Type>> makeZeroGradientField
|
|||||||
df.mesh(),
|
df.mesh(),
|
||||||
df.dimensions(),
|
df.dimensions(),
|
||||||
std::move(df.primitiveFieldRef(false)), // No update accessTime
|
std::move(df.primitiveFieldRef(false)), // No update accessTime
|
||||||
zeroGradientFvPatchScalarField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
);
|
);
|
||||||
|
|
||||||
tfield.ref().oriented() = df.oriented();
|
tfield.ref().oriented() = df.oriented();
|
||||||
|
|||||||
@ -52,7 +52,7 @@ volScalarField y
|
|||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar(dimLength, Zero),
|
dimensionedScalar(dimLength, Zero),
|
||||||
zeroGradientFvPatchScalarField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
);
|
);
|
||||||
y.primitiveFieldRef() = wallDist::New(mesh).y().primitiveField();
|
y.primitiveFieldRef() = wallDist::New(mesh).y().primitiveField();
|
||||||
y.correctBoundaryConditions();
|
y.correctBoundaryConditions();
|
||||||
@ -88,7 +88,7 @@ volScalarField mask
|
|||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar(dimless, Zero),
|
dimensionedScalar(dimless, Zero),
|
||||||
zeroGradientFvPatchScalarField::typeName
|
fvPatchFieldBase::zeroGradientType()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -57,8 +57,7 @@ Foam::LESdelta::LESdelta
|
|||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
),
|
),
|
||||||
turbulence.mesh(),
|
turbulence.mesh(),
|
||||||
dimensionedScalar(name, dimLength, SMALL),
|
dimensionedScalar(word::null, dimLength, SMALL)
|
||||||
calculatedFvPatchScalarField::typeName
|
|
||||||
)
|
)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|||||||
@ -59,8 +59,7 @@ Foam::anisotropicFilter::anisotropicFilter
|
|||||||
mesh
|
mesh
|
||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedVector(dimLength*dimLength, Zero),
|
dimensionedVector(dimLength*dimLength, Zero)
|
||||||
calculatedFvPatchVectorField::typeName
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
for (direction d=0; d<vector::nComponents; d++)
|
for (direction d=0; d<vector::nComponents; d++)
|
||||||
@ -99,8 +98,7 @@ Foam::anisotropicFilter::anisotropicFilter
|
|||||||
mesh
|
mesh
|
||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedVector(dimLength*dimLength, Zero),
|
dimensionedVector(dimLength*dimLength, Zero)
|
||||||
calculatedFvPatchScalarField::typeName
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
for (direction d=0; d<vector::nComponents; d++)
|
for (direction d=0; d<vector::nComponents; d++)
|
||||||
|
|||||||
@ -55,8 +55,7 @@ Foam::laplaceFilter::laplaceFilter(const fvMesh& mesh, scalar widthCoeff)
|
|||||||
mesh
|
mesh
|
||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar(dimLength*dimLength, Zero),
|
dimensionedScalar(dimLength*dimLength, Zero)
|
||||||
calculatedFvPatchScalarField::typeName
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
coeff_.ref() = pow(mesh.V(), 2.0/3.0)/widthCoeff_;
|
coeff_.ref() = pow(mesh.V(), 2.0/3.0)/widthCoeff_;
|
||||||
@ -79,8 +78,7 @@ Foam::laplaceFilter::laplaceFilter(const fvMesh& mesh, const dictionary& bd)
|
|||||||
mesh
|
mesh
|
||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar(dimLength*dimLength, Zero),
|
dimensionedScalar(dimLength*dimLength, Zero)
|
||||||
calculatedFvPatchScalarField::typeName
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
coeff_.ref() = pow(mesh.V(), 2.0/3.0)/widthCoeff_;
|
coeff_.ref() = pow(mesh.V(), 2.0/3.0)/widthCoeff_;
|
||||||
|
|||||||
@ -99,7 +99,7 @@ Foam::eddyViscosity<BasicTurbulenceModel>::R() const
|
|||||||
->found(patchFieldTypes[i])
|
->found(patchFieldTypes[i])
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
patchFieldTypes[i] = calculatedFvPatchField<symmTensor>::typeName;
|
patchFieldTypes[i] = fvPatchFieldBase::calculatedType();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -58,7 +58,7 @@ Foam::faMeshSubset::interpolate
|
|||||||
patchi,
|
patchi,
|
||||||
faPatchField<Type>::New
|
faPatchField<Type>::New
|
||||||
(
|
(
|
||||||
calculatedFaPatchField<Type>::typeName,
|
faPatchFieldBase::calculatedType(),
|
||||||
sMesh.boundary()[patchi],
|
sMesh.boundary()[patchi],
|
||||||
DimensionedField<Type, areaMesh>::null()
|
DimensionedField<Type, areaMesh>::null()
|
||||||
)
|
)
|
||||||
@ -165,7 +165,7 @@ Foam::faMeshSubset::interpolate
|
|||||||
patchi,
|
patchi,
|
||||||
faePatchField<Type>::New
|
faePatchField<Type>::New
|
||||||
(
|
(
|
||||||
calculatedFaePatchField<Type>::typeName,
|
faePatchFieldBase::calculatedType(),
|
||||||
sMesh.boundary()[patchi],
|
sMesh.boundary()[patchi],
|
||||||
DimensionedField<Type, edgeMesh>::null()
|
DimensionedField<Type, edgeMesh>::null()
|
||||||
)
|
)
|
||||||
|
|||||||
@ -114,7 +114,7 @@ EulerFaD2dt2Scheme<Type>::facD2dt2
|
|||||||
d2dt2IOobject,
|
d2dt2IOobject,
|
||||||
mesh(),
|
mesh(),
|
||||||
dimensioned<Type>(dt.dimensions()/dimTime/dimTime, Zero),
|
dimensioned<Type>(dt.dimensions()/dimTime/dimTime, Zero),
|
||||||
calculatedFaPatchField<Type>::typeName
|
faPatchFieldBase::calculatedType()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -83,7 +83,7 @@ EulerFaDdtScheme<Type>::facDdt
|
|||||||
ddtIOobject,
|
ddtIOobject,
|
||||||
mesh(),
|
mesh(),
|
||||||
dimensioned<Type>(dt.dimensions()/dimTime, Zero),
|
dimensioned<Type>(dt.dimensions()/dimTime, Zero),
|
||||||
calculatedFaPatchField<Type>::typeName
|
faPatchFieldBase::calculatedType()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -122,7 +122,7 @@ backwardFaDdtScheme<Type>::facDdt
|
|||||||
ddtIOobject,
|
ddtIOobject,
|
||||||
mesh(),
|
mesh(),
|
||||||
dimensioned<Type>(dt.dimensions()/dimTime, Zero),
|
dimensioned<Type>(dt.dimensions()/dimTime, Zero),
|
||||||
calculatedFaPatchField<Type>::typeName
|
faPatchFieldBase::calculatedType()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -105,7 +105,7 @@ tmp<areaScalarField> boundedBackwardFaDdtScheme::facDdt
|
|||||||
ddtIOobject,
|
ddtIOobject,
|
||||||
mesh(),
|
mesh(),
|
||||||
dimensionedScalar(dt.dimensions()/dimTime, Zero),
|
dimensionedScalar(dt.dimensions()/dimTime, Zero),
|
||||||
calculatedFaPatchScalarField::typeName
|
faPatchFieldBase::calculatedType()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -20,7 +20,7 @@ if (LTS)
|
|||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar("one", dimless/dimTime, 1),
|
dimensionedScalar("one", dimless/dimTime, 1),
|
||||||
extrapolatedCalculatedFvPatchScalarField::typeName
|
fvPatchFieldBase::extrapolatedCalculatedType()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -59,7 +59,7 @@ tmp<volScalarField> CoEulerDdtScheme<Type>::CorDeltaT() const
|
|||||||
),
|
),
|
||||||
mesh(),
|
mesh(),
|
||||||
dimensionedScalar(cofrDeltaT.dimensions(), Zero),
|
dimensionedScalar(cofrDeltaT.dimensions(), Zero),
|
||||||
extrapolatedCalculatedFvPatchScalarField::typeName
|
fvPatchFieldBase::extrapolatedCalculatedType()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -189,7 +189,7 @@ CoEulerDdtScheme<Type>::fvcDdt
|
|||||||
ddtIOobject,
|
ddtIOobject,
|
||||||
mesh(),
|
mesh(),
|
||||||
dimensioned<Type>(dt.dimensions()/dimTime, Zero),
|
dimensioned<Type>(dt.dimensions()/dimTime, Zero),
|
||||||
calculatedFvPatchField<Type>::typeName
|
fvPatchFieldBase::calculatedType()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -81,7 +81,7 @@ EulerDdtScheme<Type>::fvcDdt
|
|||||||
ddtIOobject,
|
ddtIOobject,
|
||||||
mesh(),
|
mesh(),
|
||||||
dimensioned<Type>(dt.dimensions()/dimTime, Zero),
|
dimensioned<Type>(dt.dimensions()/dimTime, Zero),
|
||||||
calculatedFvPatchField<Type>::typeName
|
fvPatchFieldBase::calculatedType()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -109,7 +109,7 @@ tmp<volScalarField> SLTSDdtScheme<Type>::SLrDeltaT() const
|
|||||||
),
|
),
|
||||||
mesh(),
|
mesh(),
|
||||||
dimensionedScalar(dimless/dimTime, Zero),
|
dimensionedScalar(dimless/dimTime, Zero),
|
||||||
extrapolatedCalculatedFvPatchScalarField::typeName
|
fvPatchFieldBase::extrapolatedCalculatedType()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -194,7 +194,7 @@ SLTSDdtScheme<Type>::fvcDdt
|
|||||||
ddtIOobject,
|
ddtIOobject,
|
||||||
mesh(),
|
mesh(),
|
||||||
dimensioned<Type>(dt.dimensions()/dimTime, Zero),
|
dimensioned<Type>(dt.dimensions()/dimTime, Zero),
|
||||||
calculatedFvPatchField<Type>::typeName
|
fvPatchFieldBase::calculatedType()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -122,7 +122,7 @@ backwardDdtScheme<Type>::fvcDdt
|
|||||||
ddtIOobject,
|
ddtIOobject,
|
||||||
mesh(),
|
mesh(),
|
||||||
dimensioned<Type>(dt.dimensions()/dimTime, Zero),
|
dimensioned<Type>(dt.dimensions()/dimTime, Zero),
|
||||||
calculatedFvPatchField<Type>::typeName
|
fvPatchFieldBase::calculatedType()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -74,7 +74,7 @@ localEulerDdtScheme<Type>::fvcDdt
|
|||||||
ddtIOobject,
|
ddtIOobject,
|
||||||
mesh(),
|
mesh(),
|
||||||
dimensioned<Type>(dt.dimensions()/dimTime, Zero),
|
dimensioned<Type>(dt.dimensions()/dimTime, Zero),
|
||||||
calculatedFvPatchField<Type>::typeName
|
fvPatchFieldBase::calculatedType()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -60,7 +60,7 @@ Foam::fvc::cellReduce
|
|||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensioned<Type>("initialValue", ssf.dimensions(), nullValue),
|
dimensioned<Type>("initialValue", ssf.dimensions(), nullValue),
|
||||||
extrapolatedCalculatedFvPatchField<Type>::typeName
|
fvPatchFieldBase::extrapolatedCalculatedType()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -76,7 +76,7 @@ reconstruct
|
|||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
),
|
),
|
||||||
inv(surfaceSum(SfHat*mesh.Sf()))&surfaceSum(SfHat*ssf),
|
inv(surfaceSum(SfHat*mesh.Sf()))&surfaceSum(SfHat*ssf),
|
||||||
extrapolatedCalculatedFvPatchField<GradType>::typeName
|
fvPatchFieldBase::extrapolatedCalculatedType()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -69,7 +69,7 @@ tmp<volScalarField> reconstructMag(const surfaceScalarField& ssf)
|
|||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar(ssf.dimensions()/dimArea, Zero),
|
dimensionedScalar(ssf.dimensions()/dimArea, Zero),
|
||||||
extrapolatedCalculatedFvPatchScalarField::typeName
|
fvPatchFieldBase::extrapolatedCalculatedType()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
scalarField& rf = treconField.ref();
|
scalarField& rf = treconField.ref();
|
||||||
|
|||||||
@ -78,7 +78,7 @@ reconstruct
|
|||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensioned<GradType>(ssf.dimensions()/dimArea, Zero),
|
dimensioned<GradType>(ssf.dimensions()/dimArea, Zero),
|
||||||
extrapolatedCalculatedFvPatchField<GradType>::typeName
|
fvPatchFieldBase::extrapolatedCalculatedType()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -101,7 +101,7 @@ surfaceIntegrate
|
|||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensioned<Type>(ssf.dimensions()/dimVol, Zero),
|
dimensioned<Type>(ssf.dimensions()/dimVol, Zero),
|
||||||
extrapolatedCalculatedFvPatchField<Type>::typeName
|
fvPatchFieldBase::extrapolatedCalculatedType()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
GeometricField<Type, fvPatchField, volMesh>& vf = tvf.ref();
|
GeometricField<Type, fvPatchField, volMesh>& vf = tvf.ref();
|
||||||
@ -152,7 +152,7 @@ surfaceSum
|
|||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensioned<Type>(ssf.dimensions(), Zero),
|
dimensioned<Type>(ssf.dimensions(), Zero),
|
||||||
extrapolatedCalculatedFvPatchField<Type>::typeName
|
fvPatchFieldBase::extrapolatedCalculatedType()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
GeometricField<Type, fvPatchField, volMesh>& vf = tvf.ref();
|
GeometricField<Type, fvPatchField, volMesh>& vf = tvf.ref();
|
||||||
|
|||||||
@ -76,7 +76,7 @@ Foam::fv::LeastSquaresGrad<Type, Stencil>::calcGrad
|
|||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensioned<GradType>(vtf.dimensions()/dimLength, Zero),
|
dimensioned<GradType>(vtf.dimensions()/dimLength, Zero),
|
||||||
extrapolatedCalculatedFvPatchField<GradType>::typeName
|
fvPatchFieldBase::extrapolatedCalculatedType()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
GradFieldType& lsGrad = tlsGrad.ref();
|
GradFieldType& lsGrad = tlsGrad.ref();
|
||||||
|
|||||||
@ -66,7 +66,7 @@ Foam::fv::gaussGrad<Type>::gradf
|
|||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensioned<GradType>(ssf.dimensions()/dimLength, Zero),
|
dimensioned<GradType>(ssf.dimensions()/dimLength, Zero),
|
||||||
extrapolatedCalculatedFvPatchField<GradType>::typeName
|
fvPatchFieldBase::extrapolatedCalculatedType()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
GradFieldType& gGrad = tgGrad.ref();
|
GradFieldType& gGrad = tgGrad.ref();
|
||||||
|
|||||||
@ -72,7 +72,7 @@ Foam::fv::leastSquaresGrad<Type>::calcGrad
|
|||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensioned<GradType>(vsf.dimensions()/dimLength, Zero),
|
dimensioned<GradType>(vsf.dimensions()/dimLength, Zero),
|
||||||
extrapolatedCalculatedFvPatchField<GradType>::typeName
|
fvPatchFieldBase::extrapolatedCalculatedType()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
GradFieldType& lsGrad = tlsGrad.ref();
|
GradFieldType& lsGrad = tlsGrad.ref();
|
||||||
|
|||||||
@ -78,7 +78,7 @@ Foam::fvMeshSubset::interpolate
|
|||||||
patchi,
|
patchi,
|
||||||
fvPatchField<Type>::New
|
fvPatchField<Type>::New
|
||||||
(
|
(
|
||||||
calculatedFvPatchField<Type>::typeName,
|
fvPatchFieldBase::calculatedType(),
|
||||||
sMesh.boundary()[patchi],
|
sMesh.boundary()[patchi],
|
||||||
DimensionedField<Type, volMesh>::null()
|
DimensionedField<Type, volMesh>::null()
|
||||||
)
|
)
|
||||||
@ -259,7 +259,7 @@ Foam::fvMeshSubset::interpolate
|
|||||||
patchi,
|
patchi,
|
||||||
fvsPatchField<Type>::New
|
fvsPatchField<Type>::New
|
||||||
(
|
(
|
||||||
calculatedFvsPatchField<Type>::typeName,
|
fvsPatchFieldBase::calculatedType(),
|
||||||
sMesh.boundary()[patchi],
|
sMesh.boundary()[patchi],
|
||||||
DimensionedField<Type, surfaceMesh>::null()
|
DimensionedField<Type, surfaceMesh>::null()
|
||||||
)
|
)
|
||||||
@ -446,7 +446,7 @@ Foam::fvMeshSubset::interpolate
|
|||||||
patchi,
|
patchi,
|
||||||
pointPatchField<Type>::New
|
pointPatchField<Type>::New
|
||||||
(
|
(
|
||||||
calculatedPointPatchField<Type>::typeName,
|
pointPatchFieldBase::calculatedType(),
|
||||||
sMesh.boundary()[patchi],
|
sMesh.boundary()[patchi],
|
||||||
DimensionedField<Type, pointMesh>::null()
|
DimensionedField<Type, pointMesh>::null()
|
||||||
)
|
)
|
||||||
|
|||||||
@ -53,7 +53,7 @@ tmp<GeometricField<Type, fvPatchField, volMesh>> singleCellFvMesh::interpolate
|
|||||||
patchi,
|
patchi,
|
||||||
fvPatchField<Type>::New
|
fvPatchField<Type>::New
|
||||||
(
|
(
|
||||||
calculatedFvPatchField<Type>::typeName,
|
fvPatchFieldBase::calculatedType(),
|
||||||
boundary()[patchi],
|
boundary()[patchi],
|
||||||
DimensionedField<Type, volMesh>::null()
|
DimensionedField<Type, volMesh>::null()
|
||||||
)
|
)
|
||||||
|
|||||||
@ -94,7 +94,7 @@ Foam::nearWallDist::nearWallDist(const Foam::fvMesh& mesh)
|
|||||||
(
|
(
|
||||||
mesh.boundary(),
|
mesh.boundary(),
|
||||||
mesh.V(), // Dummy internal field,
|
mesh.V(), // Dummy internal field,
|
||||||
calculatedFvPatchScalarField::typeName
|
fvPatchFieldBase::calculatedType()
|
||||||
),
|
),
|
||||||
mesh_(mesh)
|
mesh_(mesh)
|
||||||
{
|
{
|
||||||
@ -125,7 +125,7 @@ void Foam::nearWallDist::correct()
|
|||||||
patchi,
|
patchi,
|
||||||
fvPatchField<scalar>::New
|
fvPatchField<scalar>::New
|
||||||
(
|
(
|
||||||
calculatedFvPatchScalarField::typeName,
|
fvPatchFieldBase::calculatedType(),
|
||||||
bnd[patchi],
|
bnd[patchi],
|
||||||
V
|
V
|
||||||
)
|
)
|
||||||
|
|||||||
@ -82,7 +82,7 @@ Foam::nearWallDistNoSearch::nearWallDistNoSearch(const Foam::fvMesh& mesh)
|
|||||||
(
|
(
|
||||||
mesh.boundary(),
|
mesh.boundary(),
|
||||||
mesh.V(), // Dummy internal field
|
mesh.V(), // Dummy internal field
|
||||||
calculatedFvPatchScalarField::typeName
|
fvPatchFieldBase::calculatedType()
|
||||||
),
|
),
|
||||||
mesh_(mesh)
|
mesh_(mesh)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -235,7 +235,7 @@ public:
|
|||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar(dimless, Zero),
|
dimensionedScalar(dimless, Zero),
|
||||||
extrapolatedCalculatedFvPatchScalarField::typeName
|
fvPatchFieldBase::extrapolatedCalculatedType()
|
||||||
);
|
);
|
||||||
|
|
||||||
scalarField sumPhi
|
scalarField sumPhi
|
||||||
|
|||||||
@ -75,7 +75,7 @@ void Foam::functionObjects::nearWallFields::createFields
|
|||||||
io,
|
io,
|
||||||
fld,
|
fld,
|
||||||
patchSet_.toc(),
|
patchSet_.toc(),
|
||||||
calculatedFvPatchField<Type>::typeName
|
fvPatchFieldBase::calculatedType()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -143,7 +143,7 @@ Foam::tmp<Foam::volScalarField> Foam::functionObjects::pressure::rhoScale
|
|||||||
IOobject::NO_REGISTER
|
IOobject::NO_REGISTER
|
||||||
),
|
),
|
||||||
p,
|
p,
|
||||||
fvPatchField<scalar>::calculatedType()
|
fvPatchFieldBase::calculatedType()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -121,7 +121,7 @@ void Foam::functionObjects::regionSizeDistribution::writeAlphaFields
|
|||||||
IOobject::NO_READ
|
IOobject::NO_READ
|
||||||
),
|
),
|
||||||
alpha,
|
alpha,
|
||||||
fvPatchField<scalar>::calculatedType()
|
fvPatchFieldBase::calculatedType()
|
||||||
);
|
);
|
||||||
|
|
||||||
volScalarField backgroundAlpha
|
volScalarField backgroundAlpha
|
||||||
@ -134,7 +134,7 @@ void Foam::functionObjects::regionSizeDistribution::writeAlphaFields
|
|||||||
IOobject::NO_READ
|
IOobject::NO_READ
|
||||||
),
|
),
|
||||||
alpha,
|
alpha,
|
||||||
fvPatchField<scalar>::calculatedType()
|
fvPatchFieldBase::calculatedType()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -77,7 +77,7 @@ bool Foam::functionObjects::writeCellCentres::write()
|
|||||||
(
|
(
|
||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
"C",
|
mesh_.C().name(),
|
||||||
time_.timeName(),
|
time_.timeName(),
|
||||||
mesh_,
|
mesh_,
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
@ -85,11 +85,11 @@ bool Foam::functionObjects::writeCellCentres::write()
|
|||||||
IOobject::NO_REGISTER
|
IOobject::NO_REGISTER
|
||||||
),
|
),
|
||||||
mesh_.C(),
|
mesh_.C(),
|
||||||
calculatedFvPatchScalarField::typeName
|
fvPatchFieldBase::calculatedType()
|
||||||
);
|
);
|
||||||
|
|
||||||
Log << type() << " " << name() << " write:" << nl
|
Log << type() << " " << name() << " write:" << nl
|
||||||
<< " writing cell-volumes field " << C.name()
|
<< " writing cell-centres field " << C.name()
|
||||||
<< " to " << time_.timeName() << endl;
|
<< " to " << time_.timeName() << endl;
|
||||||
|
|
||||||
C.write();
|
C.write();
|
||||||
|
|||||||
@ -86,11 +86,13 @@ bool Foam::functionObjects::writeCellVolumes::write()
|
|||||||
),
|
),
|
||||||
mesh_,
|
mesh_,
|
||||||
dimensionedScalar(mesh_.V().dimensions(), Zero),
|
dimensionedScalar(mesh_.V().dimensions(), Zero),
|
||||||
calculatedFvPatchField<scalar>::typeName
|
fvPatchFieldBase::calculatedType()
|
||||||
);
|
);
|
||||||
|
|
||||||
V.ref() = mesh_.V();
|
V.ref() = mesh_.V();
|
||||||
|
|
||||||
|
// Without correctBoundaryConditions() - boundary faces have zero volume
|
||||||
|
|
||||||
Log << type() << " " << name() << " write:" << nl
|
Log << type() << " " << name() << " write:" << nl
|
||||||
<< " writing cell-volumes field " << V.name()
|
<< " writing cell-volumes field " << V.name()
|
||||||
<< " to " << time_.timeName() << endl;
|
<< " to " << time_.timeName() << endl;
|
||||||
|
|||||||
@ -28,7 +28,6 @@ License
|
|||||||
#include "electricPotential.H"
|
#include "electricPotential.H"
|
||||||
#include "fvc.H"
|
#include "fvc.H"
|
||||||
#include "fvm.H"
|
#include "fvm.H"
|
||||||
#include "calculatedFvPatchField.H"
|
|
||||||
#include "addToRunTimeSelectionTable.H"
|
#include "addToRunTimeSelectionTable.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
@ -95,7 +94,7 @@ Foam::functionObjects::electricPotential::sigma() const
|
|||||||
(
|
(
|
||||||
sigmaIO,
|
sigmaIO,
|
||||||
tsigma,
|
tsigma,
|
||||||
calculatedFvPatchField<scalar>::typeName
|
fvPatchFieldBase::calculatedType()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -104,7 +103,7 @@ Foam::functionObjects::electricPotential::sigma() const
|
|||||||
sigmaIO,
|
sigmaIO,
|
||||||
mesh_,
|
mesh_,
|
||||||
sigma_,
|
sigma_,
|
||||||
calculatedFvPatchField<scalar>::typeName
|
fvPatchFieldBase::calculatedType()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -142,7 +141,7 @@ Foam::functionObjects::electricPotential::epsilonm() const
|
|||||||
(
|
(
|
||||||
epsilonrIO,
|
epsilonrIO,
|
||||||
epsilon0*tepsilonr,
|
epsilon0*tepsilonr,
|
||||||
calculatedFvPatchField<scalar>::typeName
|
fvPatchFieldBase::calculatedType()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -151,7 +150,7 @@ Foam::functionObjects::electricPotential::epsilonm() const
|
|||||||
epsilonrIO,
|
epsilonrIO,
|
||||||
mesh_,
|
mesh_,
|
||||||
epsilon0*epsilonr_,
|
epsilon0*epsilonr_,
|
||||||
calculatedFvPatchField<scalar>::typeName
|
fvPatchFieldBase::calculatedType()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -359,7 +358,7 @@ bool Foam::functionObjects::electricPotential::write()
|
|||||||
IOobject::NO_REGISTER
|
IOobject::NO_REGISTER
|
||||||
),
|
),
|
||||||
-fvc::grad(eV),
|
-fvc::grad(eV),
|
||||||
calculatedFvPatchField<vector>::typeName
|
fvPatchFieldBase::calculatedType()
|
||||||
);
|
);
|
||||||
|
|
||||||
Log << tab << E.name() << endl;
|
Log << tab << E.name() << endl;
|
||||||
@ -382,7 +381,7 @@ bool Foam::functionObjects::electricPotential::write()
|
|||||||
IOobject::NO_REGISTER
|
IOobject::NO_REGISTER
|
||||||
),
|
),
|
||||||
-tsigma*fvc::grad(eV),
|
-tsigma*fvc::grad(eV),
|
||||||
calculatedFvPatchField<vector>::typeName
|
fvPatchFieldBase::calculatedType()
|
||||||
);
|
);
|
||||||
|
|
||||||
Log << tab << eJ().name() << endl;
|
Log << tab << eJ().name() << endl;
|
||||||
@ -405,7 +404,7 @@ bool Foam::functionObjects::electricPotential::write()
|
|||||||
IOobject::NO_REGISTER
|
IOobject::NO_REGISTER
|
||||||
),
|
),
|
||||||
fvc::div(tepsilonm*E),
|
fvc::div(tepsilonm*E),
|
||||||
calculatedFvPatchField<scalar>::typeName
|
fvPatchFieldBase::calculatedType()
|
||||||
);
|
);
|
||||||
|
|
||||||
Log << tab << erho().name() << endl;
|
Log << tab << erho().name() << endl;
|
||||||
|
|||||||
@ -95,7 +95,7 @@ Foam::fv::solidificationMeltingSource::Cp() const
|
|||||||
dimEnergy/dimMass/dimTemperature,
|
dimEnergy/dimMass/dimTemperature,
|
||||||
CpRef
|
CpRef
|
||||||
),
|
),
|
||||||
extrapolatedCalculatedFvPatchScalarField::typeName
|
fvPatchFieldBase::extrapolatedCalculatedType()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@ -533,7 +533,7 @@ Foam::KinematicCloud<CloudType>::vDotSweep() const
|
|||||||
),
|
),
|
||||||
mesh_,
|
mesh_,
|
||||||
dimensionedScalar(dimless/dimTime, Zero),
|
dimensionedScalar(dimless/dimTime, Zero),
|
||||||
extrapolatedCalculatedFvPatchScalarField::typeName
|
fvPatchFieldBase::extrapolatedCalculatedType()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -571,7 +571,7 @@ Foam::KinematicCloud<CloudType>::theta() const
|
|||||||
),
|
),
|
||||||
mesh_,
|
mesh_,
|
||||||
dimensionedScalar(dimless, Zero),
|
dimensionedScalar(dimless, Zero),
|
||||||
extrapolatedCalculatedFvPatchScalarField::typeName
|
fvPatchFieldBase::extrapolatedCalculatedType()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -91,13 +91,13 @@ Foam::PatchCollisionDensity<CloudType>::PatchCollisionDensity
|
|||||||
(
|
(
|
||||||
this->owner().mesh().boundary(),
|
this->owner().mesh().boundary(),
|
||||||
volScalarField::Internal::null(),
|
volScalarField::Internal::null(),
|
||||||
calculatedFvPatchField<scalar>::typeName
|
fvPatchFieldBase::calculatedType()
|
||||||
),
|
),
|
||||||
collisionDensity0_
|
collisionDensity0_
|
||||||
(
|
(
|
||||||
this->owner().mesh().boundary(),
|
this->owner().mesh().boundary(),
|
||||||
volScalarField::Internal::null(),
|
volScalarField::Internal::null(),
|
||||||
calculatedFvPatchField<scalar>::typeName
|
fvPatchFieldBase::calculatedType()
|
||||||
),
|
),
|
||||||
time0_(this->owner().mesh().time().value())
|
time0_(this->owner().mesh().time().value())
|
||||||
{
|
{
|
||||||
|
|||||||
@ -110,7 +110,7 @@ createZeroBoundaryPtr
|
|||||||
(
|
(
|
||||||
mesh.boundary(),
|
mesh.boundary(),
|
||||||
mesh.V()*pTraits<Type>::zero, // Dummy internal field,
|
mesh.V()*pTraits<Type>::zero, // Dummy internal field,
|
||||||
wordList(bm.size(), calculatedFvPatchField<Type>::typeName),
|
wordList(bm.size(), fvPatchFieldBase::calculatedType()),
|
||||||
actualPatchTypes
|
actualPatchTypes
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
@ -87,7 +87,7 @@ Foam::fvFieldDecomposer::decomposeField
|
|||||||
patchi,
|
patchi,
|
||||||
fvPatchField<Type>::New
|
fvPatchField<Type>::New
|
||||||
(
|
(
|
||||||
calculatedFvPatchField<Type>::typeName,
|
fvPatchFieldBase::calculatedType(),
|
||||||
procMesh_.boundary()[patchi],
|
procMesh_.boundary()[patchi],
|
||||||
DimensionedField<Type, volMesh>::null()
|
DimensionedField<Type, volMesh>::null()
|
||||||
)
|
)
|
||||||
@ -260,7 +260,7 @@ Foam::fvFieldDecomposer::decomposeField
|
|||||||
patchi,
|
patchi,
|
||||||
fvsPatchField<Type>::New
|
fvsPatchField<Type>::New
|
||||||
(
|
(
|
||||||
calculatedFvsPatchField<Type>::typeName,
|
fvsPatchFieldBase::calculatedType(),
|
||||||
procMesh_.boundary()[patchi],
|
procMesh_.boundary()[patchi],
|
||||||
DimensionedField<Type, surfaceMesh>::null()
|
DimensionedField<Type, surfaceMesh>::null()
|
||||||
)
|
)
|
||||||
|
|||||||
@ -155,7 +155,7 @@ Foam::phaseModel::phaseModel
|
|||||||
wordList phiTypes
|
wordList phiTypes
|
||||||
(
|
(
|
||||||
U_.boundaryField().size(),
|
U_.boundaryField().size(),
|
||||||
calculatedFvPatchScalarField::typeName
|
fvsPatchFieldBase::calculatedType()
|
||||||
);
|
);
|
||||||
|
|
||||||
forAll(U_.boundaryField(), i)
|
forAll(U_.boundaryField(), i)
|
||||||
|
|||||||
@ -221,8 +221,7 @@ Foam::multiphaseInterSystem::multiphaseInterSystem
|
|||||||
mesh_
|
mesh_
|
||||||
),
|
),
|
||||||
mesh_,
|
mesh_,
|
||||||
dimensionedScalar(dimViscosity*dimDensity, Zero),
|
dimensionedScalar(dimViscosity*dimDensity, Zero)
|
||||||
calculatedFvPatchScalarField::typeName
|
|
||||||
),
|
),
|
||||||
phaseNames_(get<wordList>("phases")),
|
phaseNames_(get<wordList>("phases")),
|
||||||
phi_
|
phi_
|
||||||
|
|||||||
@ -85,7 +85,7 @@ Foam::MovingPhaseModel<BasePhaseModel>::phi(const volVectorField& U) const
|
|||||||
wordList phiTypes
|
wordList phiTypes
|
||||||
(
|
(
|
||||||
U.boundaryField().size(),
|
U.boundaryField().size(),
|
||||||
calculatedFvPatchScalarField::typeName
|
fvsPatchFieldBase::calculatedType()
|
||||||
);
|
);
|
||||||
|
|
||||||
forAll(U.boundaryField(), i)
|
forAll(U.boundaryField(), i)
|
||||||
|
|||||||
@ -154,7 +154,7 @@ Foam::phaseModel::phaseModel
|
|||||||
wordList phiTypes
|
wordList phiTypes
|
||||||
(
|
(
|
||||||
U_.boundaryField().size(),
|
U_.boundaryField().size(),
|
||||||
calculatedFvPatchScalarField::typeName
|
fvsPatchFieldBase::calculatedType()
|
||||||
);
|
);
|
||||||
|
|
||||||
forAll(U_.boundaryField(), i)
|
forAll(U_.boundaryField(), i)
|
||||||
|
|||||||
@ -188,8 +188,7 @@ liquidFilmBase::liquidFilmBase
|
|||||||
primaryMesh()
|
primaryMesh()
|
||||||
),
|
),
|
||||||
primaryMesh(),
|
primaryMesh(),
|
||||||
dimensionedScalar(dimMass, Zero),
|
dimensionedScalar(dimMass, Zero)
|
||||||
calculatedFvPatchField<scalar>::typeName
|
|
||||||
),
|
),
|
||||||
|
|
||||||
momentumSource_
|
momentumSource_
|
||||||
@ -201,8 +200,7 @@ liquidFilmBase::liquidFilmBase
|
|||||||
primaryMesh()
|
primaryMesh()
|
||||||
),
|
),
|
||||||
primaryMesh(),
|
primaryMesh(),
|
||||||
dimensionedVector(dimPressure, Zero),
|
dimensionedVector(dimPressure, Zero)
|
||||||
calculatedFvPatchField<vector>::typeName
|
|
||||||
),
|
),
|
||||||
|
|
||||||
pnSource_
|
pnSource_
|
||||||
@ -214,8 +212,7 @@ liquidFilmBase::liquidFilmBase
|
|||||||
primaryMesh()
|
primaryMesh()
|
||||||
),
|
),
|
||||||
primaryMesh(),
|
primaryMesh(),
|
||||||
dimensionedScalar(dimPressure, Zero),
|
dimensionedScalar(dimPressure, Zero)
|
||||||
calculatedFvPatchField<scalar>::typeName
|
|
||||||
),
|
),
|
||||||
|
|
||||||
energySource_
|
energySource_
|
||||||
@ -227,8 +224,7 @@ liquidFilmBase::liquidFilmBase
|
|||||||
primaryMesh()
|
primaryMesh()
|
||||||
),
|
),
|
||||||
primaryMesh(),
|
primaryMesh(),
|
||||||
dimensionedScalar(dimEnergy, Zero),
|
dimensionedScalar(dimEnergy, Zero)
|
||||||
calculatedFvPatchField<scalar>::typeName
|
|
||||||
),
|
),
|
||||||
|
|
||||||
addedMassTotal_(0),
|
addedMassTotal_(0),
|
||||||
|
|||||||
@ -218,8 +218,7 @@ liquidFilmModel::liquidFilmModel
|
|||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
),
|
),
|
||||||
primaryMesh(),
|
primaryMesh(),
|
||||||
dimensionedScalar(dimMass, Zero),
|
dimensionedScalar(dimMass, Zero)
|
||||||
calculatedFvPatchField<scalar>::typeName
|
|
||||||
),
|
),
|
||||||
|
|
||||||
cloudDiameterTrans_
|
cloudDiameterTrans_
|
||||||
@ -233,8 +232,7 @@ liquidFilmModel::liquidFilmModel
|
|||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
),
|
),
|
||||||
primaryMesh(),
|
primaryMesh(),
|
||||||
dimensionedScalar(dimLength, Zero),
|
dimensionedScalar(dimLength, Zero)
|
||||||
calculatedFvPatchField<scalar>::typeName
|
|
||||||
),
|
),
|
||||||
|
|
||||||
turbulence_(filmTurbulenceModel::New(*this, dict)),
|
turbulence_(filmTurbulenceModel::New(*this, dict)),
|
||||||
|
|||||||
@ -275,7 +275,7 @@ tmp<volScalarField> constantFilmThermo::rho() const
|
|||||||
),
|
),
|
||||||
film().regionMesh(),
|
film().regionMesh(),
|
||||||
dimensionedScalar(dimDensity, Zero),
|
dimensionedScalar(dimDensity, Zero),
|
||||||
extrapolatedCalculatedFvPatchScalarField::typeName
|
fvPatchFieldBase::extrapolatedCalculatedType()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -258,7 +258,7 @@ tmp<volScalarField> liquidFilmThermo::rho() const
|
|||||||
),
|
),
|
||||||
film().regionMesh(),
|
film().regionMesh(),
|
||||||
dimensionedScalar(dimDensity, Zero),
|
dimensionedScalar(dimDensity, Zero),
|
||||||
extrapolatedCalculatedFvPatchScalarField::typeName
|
fvPatchFieldBase::extrapolatedCalculatedType()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -86,7 +86,7 @@ tmp<volVectorField> laminar::Us() const
|
|||||||
),
|
),
|
||||||
filmModel_.regionMesh(),
|
filmModel_.regionMesh(),
|
||||||
dimensionedVector(dimVelocity, Zero),
|
dimensionedVector(dimVelocity, Zero),
|
||||||
extrapolatedCalculatedFvPatchVectorField::typeName
|
fvPatchFieldBase::extrapolatedCalculatedType()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -634,7 +634,7 @@ Foam::meshToMesh::mapSrcToTgt
|
|||||||
tgtPatchi,
|
tgtPatchi,
|
||||||
fvPatchField<Type>::New
|
fvPatchField<Type>::New
|
||||||
(
|
(
|
||||||
calculatedFvPatchField<Type>::typeName,
|
fvPatchFieldBase::calculatedType(),
|
||||||
tgtMesh.boundary()[tgtPatchi],
|
tgtMesh.boundary()[tgtPatchi],
|
||||||
DimensionedField<Type, volMesh>::null()
|
DimensionedField<Type, volMesh>::null()
|
||||||
)
|
)
|
||||||
@ -865,7 +865,7 @@ Foam::meshToMesh::mapTgtToSrc
|
|||||||
srcPatchi,
|
srcPatchi,
|
||||||
fvPatchField<Type>::New
|
fvPatchField<Type>::New
|
||||||
(
|
(
|
||||||
calculatedFvPatchField<Type>::typeName,
|
fvPatchFieldBase::calculatedType(),
|
||||||
srcMesh.boundary()[srcPatchi],
|
srcMesh.boundary()[srcPatchi],
|
||||||
DimensionedField<Type, volMesh>::null()
|
DimensionedField<Type, volMesh>::null()
|
||||||
)
|
)
|
||||||
|
|||||||
@ -484,8 +484,8 @@ Foam::StandardChemistryModel<ReactionThermo, ThermoType>::tc() const
|
|||||||
IOobject::NO_REGISTER
|
IOobject::NO_REGISTER
|
||||||
),
|
),
|
||||||
this->mesh(),
|
this->mesh(),
|
||||||
dimensionedScalar("small", dimTime, SMALL),
|
dimensionedScalar(word::null, dimTime, SMALL),
|
||||||
extrapolatedCalculatedFvPatchScalarField::typeName
|
fvPatchFieldBase::extrapolatedCalculatedType()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -208,7 +208,7 @@ Foam::radiation::greyMeanAbsorptionEmission::aCont(const label bandI) const
|
|||||||
),
|
),
|
||||||
mesh(),
|
mesh(),
|
||||||
dimensionedScalar(dimless/dimLength, Zero),
|
dimensionedScalar(dimless/dimLength, Zero),
|
||||||
extrapolatedCalculatedFvPatchVectorField::typeName
|
fvPatchFieldBase::extrapolatedCalculatedType()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -156,7 +156,7 @@ calc(const label propertyId) const
|
|||||||
),
|
),
|
||||||
mesh(),
|
mesh(),
|
||||||
dimensionedScalar(dimless/dimLength, Zero),
|
dimensionedScalar(dimless/dimLength, Zero),
|
||||||
extrapolatedCalculatedFvPatchVectorField::typeName
|
fvPatchFieldBase::extrapolatedCalculatedType()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -113,8 +113,7 @@ Foam::incompressibleTwoPhaseMixture::incompressibleTwoPhaseMixture
|
|||||||
U_.db()
|
U_.db()
|
||||||
),
|
),
|
||||||
U_.mesh(),
|
U_.mesh(),
|
||||||
dimensionedScalar(dimViscosity, Zero),
|
dimensionedScalar(dimViscosity, Zero)
|
||||||
calculatedFvPatchScalarField::typeName
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
calcNu();
|
calcNu();
|
||||||
|
|||||||
@ -71,8 +71,7 @@ functions
|
|||||||
IOobject::NO_READ
|
IOobject::NO_READ
|
||||||
),
|
),
|
||||||
mesh(),
|
mesh(),
|
||||||
dimensionedVector(dimless/dimLength, Zero),
|
dimensionedVector(dimless/dimLength, Zero)
|
||||||
calculatedFvPatchField<vector>::typeName
|
|
||||||
);
|
);
|
||||||
|
|
||||||
Cc2.primitiveFieldRef() = Cc.primitiveField();
|
Cc2.primitiveFieldRef() = Cc.primitiveField();
|
||||||
@ -102,8 +101,7 @@ functions
|
|||||||
IOobject::NO_READ
|
IOobject::NO_READ
|
||||||
),
|
),
|
||||||
mesh(),
|
mesh(),
|
||||||
dimensionedScalar(dimless, Zero),
|
dimensionedScalar(dimless, Zero)
|
||||||
calculatedFvPatchField<scalar>::typeName
|
|
||||||
);
|
);
|
||||||
|
|
||||||
volScalarField magError
|
volScalarField magError
|
||||||
@ -116,8 +114,7 @@ functions
|
|||||||
IOobject::NO_READ
|
IOobject::NO_READ
|
||||||
),
|
),
|
||||||
mesh(),
|
mesh(),
|
||||||
dimensionedScalar(dimless, Zero),
|
dimensionedScalar(dimless, Zero)
|
||||||
calculatedFvPatchField<scalar>::typeName
|
|
||||||
);
|
);
|
||||||
|
|
||||||
const dimensionedScalar root2(dimless/sqr(dimLength), Foam::sqrt(2.0));
|
const dimensionedScalar root2(dimless/sqr(dimLength), Foam::sqrt(2.0));
|
||||||
|
|||||||
Reference in New Issue
Block a user