Implements a meshed surface by referencing another meshed surface or faces/points components. More...
#include <meshedSurfRef.H>


Public Member Functions | |
| meshedSurfRef () | |
| Default construct. | |
| meshedSurfRef (const meshedSurf &s) | |
| Construct as reference to a meshedSurf. | |
| meshedSurfRef (const pointField &points, const faceList &faces, const labelList &zoneIds=labelList::null(), const labelList &faceIds=labelList::null()) | |
| Construct from components. | |
| virtual | ~meshedSurfRef ()=default |
| Destructor. | |
| bool | good () const |
| Contains a valid reference? | |
| bool | valid () const |
| Contains a valid reference? | |
| const pointField & | points0 () const |
| The original points used for the surface. | |
| virtual const pointField & | points () const |
| The points used for the surface. | |
| virtual const faceList & | faces () const |
| The faces used for the surface. | |
| virtual const labelList & | zoneIds () const |
| Per-face zone/region information. | |
| virtual const labelList & | faceIds () const |
| Per-face identifier (eg, element Id). | |
| void | clear () |
| Invalid by redirecting to null objects. | |
| void | reset (const meshedSurf &s) |
| Reset surface. | |
| void | reset (const pointField &points, const faceList &faces, const labelList &zoneIds=labelList::null(), const labelList &faceIds=labelList::null()) |
| Reset components. | |
| void | resetPoints () |
| Reset changes in point positions. | |
| void | movePoints (pointField &&pts) |
| Change point positions. | |
| void | movePoints (const tmp< pointField > &tpts) |
| Change point positions. | |
| void | scalePoints (const scalar scaleFactor) |
| Scale points: ignore unity and non-positive factors. | |
| Public Member Functions inherited from meshedSurf | |
| constexpr | meshedSurf () noexcept=default |
| Default construct. | |
| virtual | ~meshedSurf ()=default |
| Destructor. | |
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.
Referenced by meshedSurfRef().

|
inlineexplicit |
Construct as reference to a meshedSurf.
Definition at line 90 of file meshedSurfRef.H.
References meshedSurf::meshedSurf(), meshedSurfRef(), and s().

|
inline |
Construct from components.
Definition at line 100 of file meshedSurfRef.H.
References faceIds(), faces(), List< label >::null(), points(), and zoneIds().

|
virtualdefault |
Destructor.
|
inline |
Contains a valid reference?
Definition at line 126 of file meshedSurfRef.H.
References Foam::notNull().
Referenced by valid().


|
inline |
Contains a valid reference?
Definition at line 134 of file meshedSurfRef.H.
References good().

|
inline |
The original points used for the surface.
Definition at line 139 of file meshedSurfRef.H.
Referenced by points(), and scalePoints().

|
inlinevirtual |
The points used for the surface.
Implements meshedSurf.
Definition at line 147 of file meshedSurfRef.H.
References points0().
Referenced by meshedSurfRef(), reset(), foamWriter::write(), proxyWriter::write(), rawWriter::write(), starcdWriter::write(), vtkWriter::write(), x3dWriter::write(), ensightWriter::writeCollated(), abaqusWriter::writeTemplate(), nastranWriter::writeTemplate(), rawWriter::writeTemplate(), x3dWriter::writeTemplate(), and ensightWriter::writeUncollated().


|
inlinevirtual |
The faces used for the surface.
Implements meshedSurf.
Definition at line 155 of file meshedSurfRef.H.
Referenced by meshedSurfRef(), reset(), foamWriter::write(), proxyWriter::write(), rawWriter::write(), starcdWriter::write(), vtkWriter::write(), x3dWriter::write(), ensightWriter::writeCollated(), abaqusWriter::writeTemplate(), nastranWriter::writeTemplate(), rawWriter::writeTemplate(), x3dWriter::writeTemplate(), and ensightWriter::writeUncollated().

|
inlinevirtual |
Per-face zone/region information.
Reimplemented from meshedSurf.
Definition at line 163 of file meshedSurfRef.H.
Referenced by meshedSurfRef(), and reset().

|
inlinevirtual |
Per-face identifier (eg, element Id).
Reimplemented from meshedSurf.
Definition at line 171 of file meshedSurfRef.H.
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 Field< vector >::null(), List< face >::null(), and List< label >::null().
Referenced by reset().


|
inline |
Reset surface.
Definition at line 192 of file meshedSurfRef.H.
References clear(), meshedSurf::meshedSurf(), and s().

|
inline |
Reset components.
Definition at line 201 of file meshedSurfRef.H.
References faceIds(), faces(), List< label >::null(), points(), and zoneIds().

|
inline |
Reset changes in point positions.
Definition at line 221 of file meshedSurfRef.H.
|
inline |
|
inline |
Change point positions.
Definition at line 237 of file meshedSurfRef.H.
References tmp< T >::clear().

|
inline |
Scale points: ignore unity and non-positive factors.
Definition at line 250 of file meshedSurfRef.H.
References Foam::equal(), and points0().
