Collection of free functions utilised by the stitching process. More...
Typedefs | |
template<class Type > | |
using | SurfaceFieldBoundary = GeometricBoundaryField< Type, fvsPatchField, surfaceMesh > |
Alias for surface boundary fields to reduce verbosity of method. More... | |
Functions | |
template<class Type > | |
tmp< Field< Type > > | fieldMap (const Field< Type > &f, const labelUList &addr, const label addr0=0) |
Map a field with an (optional) addressing offset. More... | |
template<class Type > | |
tmp< Field< Type > > | fieldMap (const tmp< Field< Type >> &f, const labelUList &addr, const label addr0=0) |
Tmp variant of above. More... | |
template<class Type > | |
tmp< Field< Type > > | fieldRMapSum (const Field< Type > &f, const label size, const labelUList &addr, const label addr0=0) |
Reverse map a field with an (optional) addressing offset, initialising the. More... | |
template<class Type > | |
tmp< Field< Type > > | fieldRMapSum (const tmp< Field< Type >> &f, const label size, const labelUList &addr, const label addr0=0) |
Tmp variant of above. More... | |
tmp< SurfaceFieldBoundary< scalar > > | origNcMagSfb (const fvMesh &mesh) |
Return the total non-conformal area associated with each original face. More... | |
template<class Type > | |
tmp< SurfaceFieldBoundary< Type > > | conformedNcBoundaryField (const SurfaceFieldBoundary< Type > &fieldb) |
Extract the non-conformal parts of the boundary field and store it on the. More... | |
template<class Type > | |
tmp< SurfaceFieldBoundary< Type > > | conformedOrigBoundaryField (const SurfaceFieldBoundary< Type > &fieldb) |
Extract the original parts of the boundary field and store it. More... | |
template<class Type > | |
tmp< SurfaceFieldBoundary< Type > > | unconformedBoundaryField (const SurfaceFieldBoundary< Type > &ncFieldb, const SurfaceFieldBoundary< Type > &origFieldb) |
Combine non-conformal and original parts of the boundary field from the. More... | |
template<class Type > | |
tmp< SurfaceFieldBoundary< Type > > | synchronisedBoundaryField (const SurfaceFieldBoundary< Type > &fieldb, const bool flip, const scalar ownerWeight, const scalar neighbourWeight) |
Synchronise the boundary field by combining corresponding. More... | |
template<class Type > | |
tmp< SurfaceFieldBoundary< Type > > | synchronisedBoundaryField (const SurfaceFieldBoundary< Type > &fieldb) |
Synchronise the boundary field by combining corresponding. More... | |
Collection of free functions utilised by the stitching process.
using SurfaceFieldBoundary = GeometricBoundaryField<Type, fvsPatchField, surfaceMesh> |
Alias for surface boundary fields to reduce verbosity of method.
definitions below
Definition at line 90 of file fvMeshStitcherTools.H.
tmp<Field<Type> > Foam::fvMeshStitcherTools::fieldMap | ( | const Field< Type > & | f, |
const labelUList & | addr, | ||
const label | addr0 = 0 |
||
) |
Map a field with an (optional) addressing offset.
Referenced by conformedFvPatchField< Type >::conform().
tmp<Field<Type> > Foam::fvMeshStitcherTools::fieldMap | ( | const tmp< Field< Type >> & | f, |
const labelUList & | addr, | ||
const label | addr0 = 0 |
||
) |
Tmp variant of above.
tmp<Field<Type> > Foam::fvMeshStitcherTools::fieldRMapSum | ( | const Field< Type > & | f, |
const label | size, | ||
const labelUList & | addr, | ||
const label | addr0 = 0 |
||
) |
Reverse map a field with an (optional) addressing offset, initialising the.
value to zero and summing repeated indices
Referenced by conformedFvPatchField< Type >::conform(), and origNcMagSfb().
tmp<Field<Type> > Foam::fvMeshStitcherTools::fieldRMapSum | ( | const tmp< Field< Type >> & | f, |
const label | size, | ||
const labelUList & | addr, | ||
const label | addr0 = 0 |
||
) |
Tmp variant of above.
Foam::tmp< Foam::surfaceScalarField::Boundary > origNcMagSfb | ( | const fvMesh & | mesh | ) |
Return the total non-conformal area associated with each original face.
Definition at line 34 of file fvMeshStitcherTools.C.
References fvMesh::boundary(), GeometricField< Type, PatchField, GeoMesh >::boundaryField(), fieldRMapSum(), forAll, fvMesh::magSf(), fvBoundaryMesh::mesh(), nonConformalFvPatch::origPatch(), nonConformalFvPatch::origPatchIndex(), nonConformalFvPatch::polyFaces(), tmp< T >::ref(), fvPatch::size(), and fvPatch::start().
tmp<SurfaceFieldBoundary<Type> > Foam::fvMeshStitcherTools::conformedNcBoundaryField | ( | const SurfaceFieldBoundary< Type > & | fieldb | ) |
Extract the non-conformal parts of the boundary field and store it on the.
conformal faces
Referenced by conformedFvsPatchField< Type >::conform().
tmp<SurfaceFieldBoundary<Type> > Foam::fvMeshStitcherTools::conformedOrigBoundaryField | ( | const SurfaceFieldBoundary< Type > & | fieldb | ) |
Extract the original parts of the boundary field and store it.
on the conformal faces
Referenced by conformedFvsPatchField< Type >::conform().
tmp<SurfaceFieldBoundary<Type> > Foam::fvMeshStitcherTools::unconformedBoundaryField | ( | const SurfaceFieldBoundary< Type > & | ncFieldb, |
const SurfaceFieldBoundary< Type > & | origFieldb | ||
) |
Combine non-conformal and original parts of the boundary field from the.
conformal faces to construct the complete non-conformal boundary field
Referenced by conformedFvsPatchField< Type >::unconform().
tmp<SurfaceFieldBoundary<Type> > Foam::fvMeshStitcherTools::synchronisedBoundaryField | ( | const SurfaceFieldBoundary< Type > & | fieldb, |
const bool | flip, | ||
const scalar | ownerWeight, | ||
const scalar | neighbourWeight | ||
) |
Synchronise the boundary field by combining corresponding.
values across couplings with the given weightings
Referenced by conformedFvsPatchField< Type >::unconform().
tmp<SurfaceFieldBoundary<Type> > Foam::fvMeshStitcherTools::synchronisedBoundaryField | ( | const SurfaceFieldBoundary< Type > & | fieldb | ) |
Synchronise the boundary field by combining corresponding.
values across couplings with equal weightings