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:
@ -291,7 +291,7 @@ void initCreatedPatches
|
||||
{
|
||||
GeoField& field = const_cast<GeoField&>(*fieldIter());
|
||||
|
||||
typename GeoField::GeometricBoundaryField& fieldBf =
|
||||
typename GeoField::Boundary& fieldBf =
|
||||
field.boundaryFieldRef();
|
||||
|
||||
forAll(fieldBf, patchi)
|
||||
|
||||
@ -294,7 +294,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
volScalarField::GeometricBoundaryField& postRefLevelBf =
|
||||
volScalarField::Boundary& postRefLevelBf =
|
||||
postRefLevel.boundaryFieldRef();
|
||||
|
||||
// For volScalarField: set boundary values to same as cell.
|
||||
|
||||
@ -117,7 +117,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
V.dimensionedInternalFieldRef() = mesh.V();
|
||||
|
||||
volScalarField::GeometricBoundaryField& Vbf = V.boundaryFieldRef();
|
||||
volScalarField::Boundary& Vbf = V.boundaryFieldRef();
|
||||
|
||||
forAll(Vbf, patchi)
|
||||
{
|
||||
|
||||
@ -192,7 +192,7 @@ int main(int argc, char *argv[])
|
||||
0.0*sigma.component(symmTensor::YZ)
|
||||
);
|
||||
|
||||
volScalarField::GeometricBoundaryField& sigmaUnBf =
|
||||
volScalarField::Boundary& sigmaUnBf =
|
||||
sigmaUn.boundaryFieldRef();
|
||||
|
||||
forAll(sigmaUn.boundaryField(), patchi)
|
||||
|
||||
@ -88,7 +88,7 @@ int main(int argc, char *argv[])
|
||||
)
|
||||
);
|
||||
|
||||
volVectorField::GeometricBoundaryField& wallGradUBf =
|
||||
volVectorField::Boundary& wallGradUBf =
|
||||
wallGradU.boundaryFieldRef();
|
||||
|
||||
const fvPatchList& patches = mesh.boundary();
|
||||
|
||||
@ -67,13 +67,13 @@ int main(int argc, char *argv[])
|
||||
)*fvc::snGrad(h)
|
||||
);
|
||||
|
||||
const surfaceScalarField::GeometricBoundaryField& patchHeatFlux =
|
||||
const surfaceScalarField::Boundary& patchHeatFlux =
|
||||
heatFlux.boundaryField();
|
||||
|
||||
const volScalarField::GeometricBoundaryField& patchRadHeatFlux =
|
||||
const volScalarField::Boundary& patchRadHeatFlux =
|
||||
Qr.boundaryField();
|
||||
|
||||
const surfaceScalarField::GeometricBoundaryField& magSf =
|
||||
const surfaceScalarField::Boundary& magSf =
|
||||
mesh.magSf().boundaryField();
|
||||
|
||||
Info<< "\nWall heat fluxes [W]" << endl;
|
||||
@ -104,7 +104,7 @@ int main(int argc, char *argv[])
|
||||
dimensionedScalar("wallHeatFlux", heatFlux.dimensions(), 0.0)
|
||||
);
|
||||
|
||||
volScalarField::GeometricBoundaryField& wallHeatFluxBf =
|
||||
volScalarField::Boundary& wallHeatFluxBf =
|
||||
wallHeatFlux.boundaryFieldRef();
|
||||
|
||||
forAll(wallHeatFluxBf, patchi)
|
||||
@ -135,7 +135,7 @@ int main(int argc, char *argv[])
|
||||
)
|
||||
);
|
||||
|
||||
volScalarField::GeometricBoundaryField& totalWallHeatFluxBf =
|
||||
volScalarField::Boundary& totalWallHeatFluxBf =
|
||||
totalWallHeatFlux.boundaryFieldRef();
|
||||
|
||||
forAll(totalWallHeatFluxBf, patchi)
|
||||
|
||||
@ -60,7 +60,7 @@ void calcIncompressible
|
||||
|
||||
const volSymmTensorField Reff(model->devReff());
|
||||
|
||||
volVectorField::GeometricBoundaryField& wallShearStressBf =
|
||||
volVectorField::Boundary& wallShearStressBf =
|
||||
wallShearStress.boundaryFieldRef();
|
||||
|
||||
forAll(wallShearStressBf, patchi)
|
||||
@ -112,7 +112,7 @@ void calcCompressible
|
||||
|
||||
const volSymmTensorField Reff(model->devRhoReff());
|
||||
|
||||
volVectorField::GeometricBoundaryField& wallShearStressBf =
|
||||
volVectorField::Boundary& wallShearStressBf =
|
||||
wallShearStress.boundaryFieldRef();
|
||||
|
||||
forAll(wallShearStressBf, patchi)
|
||||
|
||||
@ -57,18 +57,18 @@ void 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();
|
||||
|
||||
volScalarField::GeometricBoundaryField& yPlusBf =
|
||||
volScalarField::Boundary& yPlusBf =
|
||||
yPlus.boundaryFieldRef();
|
||||
|
||||
const fvPatchList& patches = mesh.boundary();
|
||||
|
||||
@ -52,7 +52,7 @@ void processField
|
||||
if (fieldObjbjects.lookup(fieldName) != NULL)
|
||||
{
|
||||
fieldType vtf(*fieldObjbjects.lookup(fieldName), mesh);
|
||||
const typename fieldType::GeometricBoundaryField& bf =
|
||||
const typename fieldType::Boundary& bf =
|
||||
vtf.boundaryField();
|
||||
|
||||
forAll(bf, patchi)
|
||||
|
||||
@ -169,7 +169,7 @@ int main(int argc, char *argv[])
|
||||
dimensionedScalar("facesAgglomeration", dimless, 0)
|
||||
);
|
||||
|
||||
volScalarField::GeometricBoundaryField& facesAgglomerationBf =
|
||||
volScalarField::Boundary& facesAgglomerationBf =
|
||||
facesAgglomeration.boundaryFieldRef();
|
||||
|
||||
label coarsePatchIndex = 0;
|
||||
|
||||
@ -99,7 +99,7 @@ bool setCellFieldType
|
||||
}
|
||||
|
||||
typename GeometricField<Type, fvPatchField, volMesh>::
|
||||
GeometricBoundaryField& fieldBf = field.boundaryFieldRef();
|
||||
Boundary& fieldBf = field.boundaryFieldRef();
|
||||
|
||||
forAll(field.boundaryField(), patchi)
|
||||
{
|
||||
@ -277,7 +277,7 @@ bool setFaceFieldType
|
||||
Pstream::listCombineScatter(nChanged);
|
||||
|
||||
typename GeometricField<Type, fvPatchField, volMesh>::
|
||||
GeometricBoundaryField& fieldBf = field.boundaryFieldRef();
|
||||
Boundary& fieldBf = field.boundaryFieldRef();
|
||||
|
||||
// Reassign.
|
||||
forAll(field.boundaryField(), patchi)
|
||||
|
||||
@ -338,7 +338,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
labelList viewFactorsPatches(patches.size());
|
||||
|
||||
const volScalarField::GeometricBoundaryField& Qrb = Qr.boundaryField();
|
||||
const volScalarField::Boundary& Qrb = Qr.boundaryField();
|
||||
|
||||
label count = 0;
|
||||
forAll(Qrb, patchi)
|
||||
@ -831,7 +831,7 @@ int main(int argc, char *argv[])
|
||||
dimensionedScalar("viewFactorField", dimless, 0)
|
||||
);
|
||||
|
||||
volScalarField::GeometricBoundaryField& viewFactorFieldBf =
|
||||
volScalarField::Boundary& viewFactorFieldBf =
|
||||
viewFactorField.boundaryFieldRef();
|
||||
|
||||
label compactI = 0;
|
||||
|
||||
Reference in New Issue
Block a user