Public Member Functions | |
TypeInfo ("triSurface") | |
triSurface (const objectFile &objf, repository *owner, const triSurface &surf) | |
triSurface (const realx3x3Field_H &triangles, repository *owner=nullptr) | |
~triSurface () override=default | |
uint32 | numPoints () const |
uint32 | size () const |
uint32 | capacity () const |
const realx3Field_D & | points () const |
realx3Field_D & | points () |
const auto & | area () const |
auto & | area () |
const uint32x3Field_D & | vertices () const |
uint32x3Field_D & | vertices () |
auto & | normals () |
const auto & | normals () const |
void | clear () |
auto | getTriangleAccessor () const |
Obtain an object for accessing triangles. More... | |
bool | read (iIstream &is, const IOPattern &iop) override |
bool | write (iOstream &os, const IOPattern &iop) const override |
![]() | |
virtual word | typeName () const =0 |
IOobject (const objectFile &objf, const IOPattern &iop, repository *owner) | |
~IOobject () override | |
IOobject (const IOobject &src)=delete | |
IOobject (IOobject &&src)=delete | |
const IOPattern & | ioPattern () const |
const repository * | owner () const override |
repository * | owner () |
repository * | releaseOwner (bool fromOwner=false) |
bool | isIncluded (const word &objName) const override |
bool | isExcluded (const word &objName) const override |
bool | readObject (bool rdHdr=true) |
bool | writeObject () const |
bool | readObject (iIstream &is, bool rdHdr=true) |
bool | writeObject (iOstream &os) const |
![]() | |
IOfileHeader (const objectFile &objf) | |
const word & | objectName () const |
const word & | objectType () const |
fileSystem | path () const |
bool | outFileBinary () const |
bool | inFileBinary () const |
bool | headerOk (bool silent=false) |
bool | implyRead () const |
Imply read. More... | |
bool | implyWrite () const |
Imply write. More... | |
bool | fileExist () const |
Check if file exists. More... | |
bool | readIfPresent () const |
Check read if present. More... | |
bool | writeHeader () const |
Check if the header should be written to file True: on master + implyWrite + readWriteHeader = true False: otherwise. More... | |
bool | writeHeader (iOstream &os, const word &typeName, bool forceWrite=false) const |
Write the header to the file , typeName comes from caller. More... | |
bool | writeHeader (iOstream &os, bool forceWrite=false) const |
Write the header to the file, typeName comes from the one read from file. More... | |
bool | readHeader () const |
Check if header should be read from file. More... | |
bool | readHeader (iIstream &is, bool silent=false) |
Read the header in the file. More... | |
bool | writeBanner (iOstream &os) const |
write the banner More... | |
bool | writeSeparator (iOstream &os) const |
wirte a separator line More... | |
![]() | |
objectFile (const word &name) | |
objectFile (const word &name, const fileSystem &localPath, const readFlag &rf=readFlag::READ_NEVER, const writeFlag &wf=writeFlag::WRITE_NEVER, bool rwHeader=true) | |
objectFile (const objectFile &src)=default | |
objectFile (objectFile &&src)=default | |
objectFile & | operator= (const objectFile &rhs)=default |
objectFile & | operator= (objectFile &&rhs)=default |
virtual | ~objectFile ()=default |
virtual const word & | name () const |
virtual const fileSystem & | localPath () const |
readFlag | rFlag () const |
writeFlag | wFlag () const |
bool | isReadAlways () const |
bool | isReadNever () const |
bool | isReadIfPresent () const |
bool | isWriteAlways () const |
bool | isWriteNever () const |
bool | readWriteHeader () const |
Protected Member Functions | |
bool | calculateNormals () |
bool | calculateArea () |
bool | append (const realx3x3Field_H &triangles) |
bool | append (const realx3x3Vector &triangles) |
triSurface (const objectFile &obj, repository *owner) | |
![]() | |
uniquePtr< iFstream > | inStream () const |
uniquePtr< oFstream > | outStream () const |
uniquePtr< oFstream > | dummyOutStream () const |
Private Attributes | |
realx3Field_D | points_ {"points", "points"} |
points of triangles More... | |
uint32x3Field_D | vertices_ {"vertices", "vertices"} |
vectices indices of triangles More... | |
realField_D | area_ {"area", "area"} |
area of each triangle More... | |
realx3Field_D | normals_ {"normals", "normals"} |
normal vector of triangles More... | |
Additional Inherited Members | |
![]() | |
enum | readFlag { READ_ALWAYS, READ_NEVER, READ_IF_PRESENT } |
enum | writeFlag { WRITE_ALWAYS, WRITE_NEVER } |
![]() | |
word | objectName_ |
word | objectType_ |
word | fileFormat_ = "ASCII" |
file format read from file More... | |
Definition at line 103 of file triSurface.hpp.
|
protected |
Definition at line 191 of file triSurface.cpp.
triSurface | ( | const objectFile & | objf, |
repository * | owner, | ||
const triSurface & | surf | ||
) |
Definition at line 208 of file triSurface.cpp.
|
explicit |
Definition at line 233 of file triSurface.cpp.
References fatalExit.
|
overridedefault |
|
protected |
Definition at line 107 of file triSurface.cpp.
References pFlow::triSurfaceKernels::calculateNormals(), triSurface::normals_, triSurface::points_, and triSurface::vertices_.
|
protected |
Definition at line 115 of file triSurface.cpp.
References pFlow::triSurfaceKernels::calculateArea().
|
protected |
Definition at line 124 of file triSurface.cpp.
References pFlow::convertToTriSurfaceComponents(), pFlow::endl(), fatalErrorInFunction, VectorSingle< T, MemorySpace >::getSpan(), Field< T, MemorySpace >::name(), and pFlow::triangle::normal().
|
protected |
Definition at line 158 of file triSurface.cpp.
References pFlow::convertToTriSurfaceComponents(), pFlow::endl(), fatalErrorInFunction, Vector< T, Allocator >::getSpan(), Vector< T, Allocator >::name(), and pFlow::triangle::normal().
TypeInfo | ( | "triSurface" | ) |
|
inline |
Definition at line 157 of file triSurface.hpp.
References triSurface::points_, and VectorSingle< T, MemorySpace >::size().
Referenced by ContactSearch< searchMethod >::ContactSearch().
|
inline |
Definition at line 162 of file triSurface.hpp.
References VectorSingle< T, MemorySpace >::size(), and triSurface::vertices_.
Referenced by triSurfaceField< uint32 >::assign(), ContactSearch< searchMethod >::ContactSearch(), and geometry::createPropertyId().
|
inline |
Definition at line 167 of file triSurface.hpp.
References VectorSingle< T, MemorySpace >::capacity(), and triSurface::vertices_.
Referenced by triSurfaceField< uint32 >::assign(), and geometry::createPropertyId().
|
inline |
Definition at line 172 of file triSurface.hpp.
References triSurface::points_.
Referenced by ContactSearch< searchMethod >::ContactSearch().
|
inline |
Definition at line 177 of file triSurface.hpp.
References triSurface::points_.
|
inline |
Definition at line 182 of file triSurface.hpp.
References triSurface::area_.
|
inline |
Definition at line 187 of file triSurface.hpp.
References triSurface::area_.
|
inline |
Definition at line 192 of file triSurface.hpp.
References triSurface::vertices_.
Referenced by ContactSearch< searchMethod >::ContactSearch().
|
inline |
Definition at line 197 of file triSurface.hpp.
References triSurface::vertices_.
|
inline |
Definition at line 202 of file triSurface.hpp.
References triSurface::normals_.
Referenced by ContactSearch< searchMethod >::ContactSearch().
|
inline |
Definition at line 207 of file triSurface.hpp.
References triSurface::normals_.
|
inline |
Definition at line 212 of file triSurface.hpp.
References triSurface::area_, VectorSingle< T, MemorySpace >::clear(), triSurface::normals_, triSurface::points_, and triSurface::vertices_.
Referenced by multiTriSurface::clear().
|
inline |
Obtain an object for accessing triangles.
Definition at line 221 of file triSurface.hpp.
References VectorSingle< T, MemorySpace >::deviceViewAll(), triSurface::points_, VectorSingle< T, MemorySpace >::size(), and triSurface::vertices_.
Implements IOobject.
Definition at line 257 of file triSurface.cpp.
References pFlow::triSurfaceKernels::calculateArea(), pFlow::triSurfaceKernels::calculateNormals(), pFlow::endl(), ioErrorInFile, IOstream::lineNumber(), and IOstream::name().
Referenced by pFlow::operator>>(), and multiTriSurface::read().
Implements IOobject.
Definition at line 282 of file triSurface.cpp.
References pFlow::endl(), ioErrorInFile, IOstream::lineNumber(), and IOstream::name().
Referenced by pFlow::operator<<(), and multiTriSurface::write().
|
private |
points of triangles
Definition at line 110 of file triSurface.hpp.
Referenced by triSurface::calculateNormals(), triSurface::clear(), triSurface::getTriangleAccessor(), triSurface::numPoints(), and triSurface::points().
|
private |
vectices indices of triangles
Definition at line 113 of file triSurface.hpp.
Referenced by triSurface::calculateNormals(), triSurface::capacity(), triSurface::clear(), triSurface::getTriangleAccessor(), triSurface::size(), and triSurface::vertices().
|
private |
area of each triangle
Definition at line 116 of file triSurface.hpp.
Referenced by triSurface::area(), and triSurface::clear().
|
private |
normal vector of triangles
Definition at line 119 of file triSurface.hpp.
Referenced by triSurface::calculateNormals(), triSurface::clear(), and triSurface::normals().