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:
@ -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;
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -59,7 +59,7 @@ int main(int argc, char *argv[])
|
||||
wordList patchFieldTypes
|
||||
(
|
||||
mesh.boundaryMesh().size(),
|
||||
calculatedFvPatchVectorField::typeName
|
||||
fvPatchFieldBase::calculatedType()
|
||||
);
|
||||
|
||||
forAll(mesh.boundaryMesh(), patchi)
|
||||
|
||||
@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user