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:
@ -62,7 +62,7 @@ void Foam::fvMeshAdder::MapVolField
|
||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
typename GeometricField<Type, fvPatchField, volMesh>::
|
||||
GeometricBoundaryField& bfld = fld.boundaryFieldRef();
|
||||
Boundary& bfld = fld.boundaryFieldRef();
|
||||
|
||||
{
|
||||
const labelList& oldPatchMap = meshMap.oldPatchMap();
|
||||
@ -330,7 +330,7 @@ void Foam::fvMeshAdder::MapSurfaceField
|
||||
const labelList& oldPatchStarts = meshMap.oldPatchStarts();
|
||||
|
||||
typename GeometricField<Type, fvsPatchField, surfaceMesh>::
|
||||
GeometricBoundaryField& bfld = fld.boundaryFieldRef();
|
||||
Boundary& bfld = fld.boundaryFieldRef();
|
||||
|
||||
// Internal field
|
||||
// ~~~~~~~~~~~~~~
|
||||
|
||||
@ -113,7 +113,7 @@ void Foam::fvMeshDistribute::mapBoundaryFields
|
||||
forAllIter(typename HashTable<fldType*>, flds, iter)
|
||||
{
|
||||
fldType& fld = *iter();
|
||||
typename fldType::GeometricBoundaryField& bfld =
|
||||
typename fldType::Boundary& bfld =
|
||||
fld.boundaryFieldRef();
|
||||
|
||||
const FieldField<fvsPatchField, T>& oldBfld = oldBflds[fieldI++];
|
||||
@ -161,7 +161,7 @@ void Foam::fvMeshDistribute::initPatchFields
|
||||
{
|
||||
GeoField& fld = *iter();
|
||||
|
||||
typename GeoField::GeometricBoundaryField& bfld =
|
||||
typename GeoField::Boundary& bfld =
|
||||
fld.boundaryFieldRef();
|
||||
|
||||
forAll(bfld, patchi)
|
||||
|
||||
@ -47,7 +47,7 @@ void Foam::fvMeshTools::addPatchFields
|
||||
{
|
||||
GeoField& fld = *iter();
|
||||
|
||||
typename GeoField::GeometricBoundaryField& bfld =
|
||||
typename GeoField::Boundary& bfld =
|
||||
fld.boundaryFieldRef();
|
||||
|
||||
label sz = bfld.size();
|
||||
@ -101,7 +101,7 @@ void Foam::fvMeshTools::setPatchFields
|
||||
{
|
||||
GeoField& fld = *iter();
|
||||
|
||||
typename GeoField::GeometricBoundaryField& bfld =
|
||||
typename GeoField::Boundary& bfld =
|
||||
fld.boundaryFieldRef();
|
||||
|
||||
if (patchFieldDict.found(fld.name()))
|
||||
@ -140,7 +140,7 @@ void Foam::fvMeshTools::setPatchFields
|
||||
{
|
||||
GeoField& fld = *iter();
|
||||
|
||||
typename GeoField::GeometricBoundaryField& bfld =
|
||||
typename GeoField::Boundary& bfld =
|
||||
fld.boundaryFieldRef();
|
||||
|
||||
bfld[patchi] == value;
|
||||
@ -182,7 +182,7 @@ void Foam::fvMeshTools::reorderPatchFields
|
||||
{
|
||||
GeoField& fld = *iter();
|
||||
|
||||
typename GeoField::GeometricBoundaryField& bfld =
|
||||
typename GeoField::Boundary& bfld =
|
||||
fld.boundaryFieldRef();
|
||||
|
||||
bfld.reorder(oldToNew);
|
||||
|
||||
@ -428,7 +428,7 @@ void Foam::motionSmootherAlgo::setDisplacementPatchFields
|
||||
pointVectorField& displacement
|
||||
)
|
||||
{
|
||||
pointVectorField::GeometricBoundaryField& displacementBf =
|
||||
pointVectorField::Boundary& displacementBf =
|
||||
displacement.boundaryFieldRef();
|
||||
|
||||
// Adapt the fixedValue bc's (i.e. copy internal point data to
|
||||
@ -584,7 +584,7 @@ void Foam::motionSmootherAlgo::correctBoundaryConditions
|
||||
|
||||
const lduSchedule& patchSchedule = mesh_.globalData().patchSchedule();
|
||||
|
||||
pointVectorField::GeometricBoundaryField& displacementBf =
|
||||
pointVectorField::Boundary& displacementBf =
|
||||
displacement.boundaryFieldRef();
|
||||
|
||||
// 1. evaluate on adaptPatches
|
||||
@ -771,7 +771,7 @@ Foam::tmp<Foam::pointField> Foam::motionSmootherAlgo::curPoints() const
|
||||
|
||||
wordList actualPatchFieldTypes;
|
||||
{
|
||||
const pointVectorField::GeometricBoundaryField& pfld =
|
||||
const pointVectorField::Boundary& pfld =
|
||||
displacement_.boundaryField();
|
||||
actualPatchFieldTypes.setSize(pfld.size());
|
||||
forAll(pfld, patchi)
|
||||
|
||||
@ -57,7 +57,7 @@ void Foam::motionSmootherAlgo::checkConstraints
|
||||
}
|
||||
|
||||
|
||||
typename FldType::GeometricBoundaryField& bFld = pf.boundaryField();
|
||||
typename FldType::Boundary& bFld = pf.boundaryField();
|
||||
|
||||
|
||||
// Evaluate in reverse order
|
||||
|
||||
Reference in New Issue
Block a user