mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
GeometricField::GeometricBoundaryField -> GeometricField::Boundary
When the GeometricBoundaryField template class was originally written it
was a separate class in the Foam namespace rather than a sub-class of
GeometricField as it is now. Without loss of clarity and simplifying
code which access the boundary field of GeometricFields it is better
that GeometricBoundaryField be renamed Boundary for consistency with the
new naming convention for the type of the dimensioned internal field:
Internal, see commit 4a57b9be2e
This is a very simple text substitution change which can be applied to
any code which compiles with the OpenFOAM-dev libraries.
This commit is contained in:
@ -114,7 +114,7 @@ void Foam::fieldMinMax::calcMinMaxFields
|
||||
const fieldType& field = obr_.lookupObject<fieldType>(fieldName);
|
||||
const fvMesh& mesh = field.mesh();
|
||||
|
||||
const volVectorField::GeometricBoundaryField& CfBoundary =
|
||||
const volVectorField::Boundary& CfBoundary =
|
||||
mesh.C().boundaryField();
|
||||
|
||||
switch (mode)
|
||||
@ -122,7 +122,7 @@ void Foam::fieldMinMax::calcMinMaxFields
|
||||
case mdMag:
|
||||
{
|
||||
const volScalarField magField(mag(field));
|
||||
const volScalarField::GeometricBoundaryField& magFieldBoundary =
|
||||
const volScalarField::Boundary& magFieldBoundary =
|
||||
magField.boundaryField();
|
||||
|
||||
scalarList minVs(Pstream::nProcs());
|
||||
@ -194,7 +194,7 @@ void Foam::fieldMinMax::calcMinMaxFields
|
||||
}
|
||||
case mdCmpt:
|
||||
{
|
||||
const typename fieldType::GeometricBoundaryField&
|
||||
const typename fieldType::Boundary&
|
||||
fieldBoundary = field.boundaryField();
|
||||
|
||||
List<Type> minVs(Pstream::nProcs());
|
||||
|
||||
@ -100,7 +100,7 @@ void Foam::nearWallFields::sampleBoundaryField
|
||||
);
|
||||
|
||||
typename GeometricField<Type, fvPatchField, volMesh>::
|
||||
GeometricBoundaryField& fldBf = fld.boundaryFieldRef();
|
||||
Boundary& fldBf = fld.boundaryFieldRef();
|
||||
|
||||
// Pick up data
|
||||
label nPatchFaces = 0;
|
||||
|
||||
@ -821,7 +821,7 @@ void Foam::forces::calcForcesMoment()
|
||||
|
||||
const fvMesh& mesh = fD.mesh();
|
||||
|
||||
const surfaceVectorField::GeometricBoundaryField& Sfb =
|
||||
const surfaceVectorField::Boundary& Sfb =
|
||||
mesh.Sf().boundaryField();
|
||||
|
||||
forAllConstIter(labelHashSet, patchSet_, iter)
|
||||
@ -860,11 +860,11 @@ void Foam::forces::calcForcesMoment()
|
||||
|
||||
const fvMesh& mesh = U.mesh();
|
||||
|
||||
const surfaceVectorField::GeometricBoundaryField& Sfb =
|
||||
const surfaceVectorField::Boundary& Sfb =
|
||||
mesh.Sf().boundaryField();
|
||||
|
||||
tmp<volSymmTensorField> tdevRhoReff = devRhoReff();
|
||||
const volSymmTensorField::GeometricBoundaryField& devRhoReffb
|
||||
const volSymmTensorField::Boundary& devRhoReffb
|
||||
= tdevRhoReff().boundaryField();
|
||||
|
||||
// Scale pRef by density for incompressible simulations
|
||||
|
||||
@ -223,7 +223,7 @@ void Foam::dsmcFields::write()
|
||||
|
||||
const fvMesh& mesh = fDMean.mesh();
|
||||
|
||||
volScalarField::GeometricBoundaryField& pBf = p.boundaryFieldRef();
|
||||
volScalarField::Boundary& pBf = p.boundaryFieldRef();
|
||||
|
||||
forAll(mesh.boundaryMesh(), i)
|
||||
{
|
||||
|
||||
@ -38,20 +38,20 @@ void Foam::yPlus::calcYPlus
|
||||
volScalarField& yPlus
|
||||
)
|
||||
{
|
||||
volScalarField::GeometricBoundaryField d = nearWallDist(mesh).y();
|
||||
volScalarField::Boundary d = nearWallDist(mesh).y();
|
||||
|
||||
const volScalarField::GeometricBoundaryField nutBf =
|
||||
const volScalarField::Boundary nutBf =
|
||||
turbulenceModel.nut()().boundaryField();
|
||||
|
||||
const volScalarField::GeometricBoundaryField nuEffBf =
|
||||
const volScalarField::Boundary nuEffBf =
|
||||
turbulenceModel.nuEff()().boundaryField();
|
||||
|
||||
const volScalarField::GeometricBoundaryField nuBf =
|
||||
const volScalarField::Boundary nuBf =
|
||||
turbulenceModel.nu()().boundaryField();
|
||||
|
||||
const fvPatchList& patches = mesh.boundary();
|
||||
|
||||
volScalarField::GeometricBoundaryField& yPlusBf =
|
||||
volScalarField::Boundary& yPlusBf =
|
||||
yPlus.boundaryFieldRef();
|
||||
|
||||
forAll(patches, patchi)
|
||||
|
||||
Reference in New Issue
Block a user