mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
GeometricField::dimensionedInteralFieldRef() -> GeometricField::ref()
In order to simplify expressions involving dimensioned internal field it is preferable to use a simpler access convention. Given that GeometricField is derived from DimensionedField it is simply a matter of de-referencing this underlying type unlike the boundary field which is peripheral information. For consistency with the new convention in "tmp" "dimensionedInteralFieldRef()" has been renamed "ref()".
This commit is contained in:
@ -157,7 +157,7 @@ void Foam::fvMeshAdder::MapVolField
|
||||
(
|
||||
bfld[newPatchi], // old field
|
||||
mesh.boundary()[newPatchi], // new fvPatch
|
||||
fld.dimensionedInternalField(), // new internal field
|
||||
fld(), // new internal field
|
||||
patchMapper // mapper (new to old)
|
||||
)
|
||||
);
|
||||
@ -211,7 +211,7 @@ void Foam::fvMeshAdder::MapVolField
|
||||
(
|
||||
fldToAdd.boundaryField()[patchi], // added field
|
||||
mesh.boundary()[newPatchi], // new fvPatch
|
||||
fld.dimensionedInternalField(), // new int. field
|
||||
fld(), // new int. field
|
||||
patchMapper // mapper
|
||||
)
|
||||
);
|
||||
@ -464,7 +464,7 @@ void Foam::fvMeshAdder::MapSurfaceField
|
||||
(
|
||||
bfld[newPatchi], // old field
|
||||
mesh.boundary()[newPatchi], // new fvPatch
|
||||
fld.dimensionedInternalField(), // new internal field
|
||||
fld(), // new internal field
|
||||
patchMapper // mapper (new to old)
|
||||
)
|
||||
);
|
||||
@ -518,7 +518,7 @@ void Foam::fvMeshAdder::MapSurfaceField
|
||||
(
|
||||
fldToAdd.boundaryField()[patchi],// added field
|
||||
mesh.boundary()[newPatchi], // new fvPatch
|
||||
fld.dimensionedInternalField(), // new int. field
|
||||
fld(), // new int. field
|
||||
patchMapper // mapper
|
||||
)
|
||||
);
|
||||
|
||||
@ -61,7 +61,7 @@ void Foam::fvMeshTools::addPatchFields
|
||||
GeoField::Patch::New
|
||||
(
|
||||
mesh.boundary()[sz],
|
||||
fld.dimensionedInternalField(),
|
||||
fld(),
|
||||
patchFieldDict.subDict(fld.name())
|
||||
)
|
||||
);
|
||||
@ -75,7 +75,7 @@ void Foam::fvMeshTools::addPatchFields
|
||||
(
|
||||
defaultPatchFieldType,
|
||||
mesh.boundary()[sz],
|
||||
fld.dimensionedInternalField()
|
||||
fld()
|
||||
)
|
||||
);
|
||||
bfld[sz] == defaultPatchValue;
|
||||
@ -112,7 +112,7 @@ void Foam::fvMeshTools::setPatchFields
|
||||
GeoField::Patch::New
|
||||
(
|
||||
mesh.boundary()[patchi],
|
||||
fld.dimensionedInternalField(),
|
||||
fld(),
|
||||
patchFieldDict.subDict(fld.name())
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user