ENH: add external surface handling to meshedSurfRef (#2505)

- previously just handled surface components
- move/scale mesh points (copy)

STYLE: pass in dummy faces/points to writer

STYLE: use tensor is_identity()
This commit is contained in:
Mark Olesen
2022-06-03 16:18:49 +02:00
parent 264c09c365
commit cc47a37ed1
6 changed files with 125 additions and 84 deletions

View File

@ -105,21 +105,6 @@ static bool isCollocatedPatch(const coupledPolyPatch& pp)
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
bool Foam::isoSurfacePoint::noTransform(const tensor& tt) const
{
return
(mag(tt.xx()-1) < mergeDistance_)
&& (mag(tt.yy()-1) < mergeDistance_)
&& (mag(tt.zz()-1) < mergeDistance_)
&& (mag(tt.xy()) < mergeDistance_)
&& (mag(tt.xz()) < mergeDistance_)
&& (mag(tt.yx()) < mergeDistance_)
&& (mag(tt.yz()) < mergeDistance_)
&& (mag(tt.zx()) < mergeDistance_)
&& (mag(tt.zy()) < mergeDistance_);
}
Foam::bitSet Foam::isoSurfacePoint::collocatedFaces
(
const coupledPolyPatch& pp

View File

@ -124,9 +124,6 @@ class isoSurfacePoint
// Point synchronisation
//- Does tensor differ (to within mergeTolerance) from identity
bool noTransform(const tensor& tt) const;
//- Per face whether is collocated
static bitSet collocatedFaces(const coupledPolyPatch& cpp);