STYLE: use calculatedType() and zeroGradientType() methods

This commit is contained in:
Mark Olesen
2023-04-24 16:18:05 +02:00
parent 09ce87135b
commit e967305ef2
88 changed files with 165 additions and 212 deletions

View File

@ -41,7 +41,6 @@ Description
#include "mapPolyMesh.H"
#include "polyTopoChange.H"
#include "fvCFD.H"
#include "zeroGradientFvPatchFields.H"
#include "Random.H"
using namespace Foam;
@ -93,7 +92,7 @@ int main(int argc, char *argv[])
),
mesh,
dimensionedScalar("one", dimless, 1.0),
zeroGradientFvPatchScalarField::typeName
fvPatchFieldBase::zeroGradientType()
);
Info<< "Writing one field "
<< one.name() << " in " << runTime.timeName() << endl;
@ -131,8 +130,7 @@ int main(int argc, char *argv[])
IOobject::AUTO_WRITE
),
mesh,
dimensionedScalar("one", dimless, 1.0),
calculatedFvsPatchScalarField::typeName
dimensionedScalar("one", dimless, 1.0)
);
Info<< "Writing surface one field "
<< surfaceOne.name() << " in " << runTime.timeName() << endl;

View File

@ -41,7 +41,6 @@ Description
#include "mapPolyMesh.H"
#include "polyTopoChange.H"
#include "Random.H"
#include "zeroGradientFvPatchFields.H"
#include "calculatedPointPatchFields.H"
#include "pointConstraints.H"
#include "fvCFD.H"
@ -99,7 +98,7 @@ int main(int argc, char *argv[])
),
mesh,
dimensionedScalar("one", dimless, 1.0),
zeroGradientFvPatchScalarField::typeName
fvPatchFieldBase::zeroGradientType()
);
Info<< "Writing one field "
<< one.name() << " in " << runTime.timeName() << endl;
@ -137,8 +136,7 @@ int main(int argc, char *argv[])
IOobject::AUTO_WRITE
),
mesh,
dimensionedScalar("one", dimless, 1.0),
calculatedFvsPatchScalarField::typeName
dimensionedScalar("one", dimless, 1.0)
);
Info<< "Writing surface one field "
<< surfaceOne.name() << " in " << runTime.timeName() << endl;
@ -157,8 +155,7 @@ int main(int argc, char *argv[])
IOobject::AUTO_WRITE
),
pointMesh::New(mesh),
dimensionedScalar("one", dimless, 1.0),
calculatedPointPatchScalarField::typeName
dimensionedScalar("one", dimless, 1.0)
);
pointX.primitiveFieldRef() = mesh.points().component(0);
pointX.correctBoundaryConditions();

View File

@ -59,7 +59,7 @@ int main(int argc, char *argv[])
wordList patchFieldTypes
(
mesh.boundaryMesh().size(),
calculatedFvPatchVectorField::typeName
fvPatchFieldBase::calculatedType()
);
forAll(mesh.boundaryMesh(), patchi)

View File

@ -185,7 +185,7 @@ int main(int argc, char *argv[])
),
mesh,
dimensioned<symmTensor>(dimless, symmTensor::one),
zeroGradientFvPatchSymmTensorField::typeName
fvPatchFieldBase::zeroGradientType()
);
volTensorField tensf
@ -200,7 +200,7 @@ int main(int argc, char *argv[])
),
mesh,
dimensioned<tensor>(dimless, tensor(1,2,3,4,5,6,7,8,9)),
zeroGradientFvPatchScalarField::typeName
fvPatchFieldBase::zeroGradientType()
);
SolverPerformance<symmTensor> sP =