Implements a meshed surface by referencing another meshed surface or faces/points components. More...
Public Member Functions | |
meshedSurfRef () | |
Default construct. More... | |
meshedSurfRef (const meshedSurf &s) | |
Construct as reference to a meshedSurf. More... | |
meshedSurfRef (const pointField &points, const faceList &faces, const labelList &zoneIds=labelList::null(), const labelList &faceIds=labelList::null()) | |
Construct from components. More... | |
virtual | ~meshedSurfRef ()=default |
Destructor. More... | |
bool | good () const |
Contains a valid reference? More... | |
bool | valid () const |
Contains a valid reference? More... | |
const pointField & | points0 () const |
The original points used for the surface. More... | |
virtual const pointField & | points () const |
The points used for the surface. More... | |
virtual const faceList & | faces () const |
The faces used for the surface. More... | |
virtual const labelList & | zoneIds () const |
Per-face zone/region information. More... | |
virtual const labelList & | faceIds () const |
Per-face identifier (eg, element Id) More... | |
void | clear () |
Invalid by redirecting to null objects. More... | |
void | reset (const meshedSurf &s) |
Reset surface. More... | |
void | reset (const pointField &points, const faceList &faces, const labelList &zoneIds=labelList::null(), const labelList &faceIds=labelList::null()) |
Reset components. More... | |
void | resetPoints () |
Reset changes in point positions. More... | |
void | movePoints (pointField &&pts) |
Change point positions. More... | |
void | movePoints (const tmp< pointField > &tpts) |
Change point positions. More... | |
void | scalePoints (const scalar scaleFactor) |
Scale points: ignore unity and non-positive factors. More... | |
Public Member Functions inherited from meshedSurf | |
constexpr | meshedSurf () noexcept=default |
Default construct. More... | |
virtual | ~meshedSurf ()=default |
Destructor. More... | |
Implements a meshed surface by referencing another meshed surface or faces/points components.
In addition to the referencing, supports simple moving/scaling of points (uses a deep-copy).
Definition at line 47 of file meshedSurfRef.H.
|
inline |
Default construct.
Definition at line 79 of file meshedSurfRef.H.
|
inlineexplicit |
Construct as reference to a meshedSurf.
Definition at line 90 of file meshedSurfRef.H.
References refPtr< T >::cref(), and s.
|
inline |
Construct from components.
Definition at line 101 of file meshedSurfRef.H.
|
virtualdefault |
Destructor.
|
inline |
Contains a valid reference?
Definition at line 126 of file meshedSurfRef.H.
References Foam::notNull().
Referenced by meshedSurfRef::valid().
|
inline |
Contains a valid reference?
Definition at line 134 of file meshedSurfRef.H.
References meshedSurfRef::good().
|
inline |
The original points used for the surface.
Definition at line 139 of file meshedSurfRef.H.
References refPtr< T >::cref().
Referenced by meshedSurfRef::points(), and meshedSurfRef::scalePoints().
|
inlinevirtual |
The points used for the surface.
Implements meshedSurf.
Definition at line 147 of file meshedSurfRef.H.
References UList< T >::empty(), and meshedSurfRef::points0().
Referenced by meshedSurfRef::reset(), proxyWriter::write(), x3dWriter::write(), starcdWriter::write(), rawWriter::write(), foamWriter::write(), vtkWriter::write(), ensightWriter::writeCollated(), abaqusWriter::writeTemplate(), rawWriter::writeTemplate(), nastranWriter::writeTemplate(), x3dWriter::writeTemplate(), and ensightWriter::writeUncollated().
|
inlinevirtual |
The faces used for the surface.
Implements meshedSurf.
Definition at line 155 of file meshedSurfRef.H.
References refPtr< T >::cref().
Referenced by meshedSurfRef::reset(), proxyWriter::write(), x3dWriter::write(), starcdWriter::write(), rawWriter::write(), foamWriter::write(), vtkWriter::write(), ensightWriter::writeCollated(), abaqusWriter::writeTemplate(), rawWriter::writeTemplate(), nastranWriter::writeTemplate(), x3dWriter::writeTemplate(), and ensightWriter::writeUncollated().
|
inlinevirtual |
Per-face zone/region information.
Reimplemented from meshedSurf.
Definition at line 163 of file meshedSurfRef.H.
References refPtr< T >::cref().
Referenced by meshedSurfRef::reset().
|
inlinevirtual |
Per-face identifier (eg, element Id)
Reimplemented from meshedSurf.
Definition at line 171 of file meshedSurfRef.H.
References refPtr< T >::cref().
Referenced by meshedSurfRef::reset(), starcdWriter::write(), abaqusWriter::writeTemplate(), nastranWriter::writeTemplate(), and starcdWriter::writeTemplate().
|
inline |
Invalid by redirecting to null objects.
Definition at line 179 of file meshedSurfRef.H.
References List< T >::clear(), List< label >::null(), List< face >::null(), Field< vector >::null(), and refPtr< T >::reset().
Referenced by surfaceWriter::adjustSurface(), and meshedSurfRef::reset().
|
inline |
Reset surface.
Definition at line 192 of file meshedSurfRef.H.
References meshedSurfRef::clear(), refPtr< T >::cref(), and s.
|
inline |
Reset components.
Definition at line 202 of file meshedSurfRef.H.
References List< T >::clear(), meshedSurfRef::faceIds(), meshedSurfRef::faces(), meshedSurfRef::points(), refPtr< T >::reset(), and meshedSurfRef::zoneIds().
|
inline |
Reset changes in point positions.
Definition at line 221 of file meshedSurfRef.H.
References List< T >::clear().
|
inline |
Change point positions.
Definition at line 229 of file meshedSurfRef.H.
References pts, and List< T >::transfer().
|
inline |
Change point positions.
Definition at line 237 of file meshedSurfRef.H.
References List< T >::clear(), and tmp< T >::clear().
|
inline |
Scale points: ignore unity and non-positive factors.
Definition at line 250 of file meshedSurfRef.H.
References UList< T >::empty(), Foam::equal(), and meshedSurfRef::points0().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.