Public Types | |
using | viewType = ViewType3D< T, HostSpace > |
using | memory_space = typename viewType::memory_space |
![]() | |
enum | readFlag { READ_ALWAYS, READ_NEVER, READ_IF_PRESENT } |
enum | writeFlag { WRITE_ALWAYS, WRITE_NEVER } |
Public Member Functions | |
TypeInfoTemplateNV111 ("rectMeshField", T, memoerySpaceName()) | |
rectMeshField (rectangleMesh &mesh, const word &name, const T &defVal) | |
rectMeshField (rectangleMesh &mesh, const T &defVal) | |
rectMeshField (const rectMeshField &)=default | |
rectMeshField & | operator= (const rectMeshField &)=default |
rectMeshField (rectMeshField &&)=default | |
rectMeshField & | operator= (rectMeshField &&)=default |
uniquePtr< rectMeshField > | clone () const |
rectMeshField * | clonePtr () const |
const INLINE_FUNCTION_H word & | name () const |
INLINE_FUNCTION_HD int64 | size () const |
auto | nx () const |
auto | ny () const |
auto | nz () const |
const auto & | mesh () |
INLINE_FUNCTION_HD real | cellVol () const |
INLINE_FUNCTION_HD T & | operator() (int32 i, int32 j, int32 k) |
const INLINE_FUNCTION_HD T & | operator() (int32 i, int32 j, int32 k) const |
void | fill (T val) |
bool | write (iOstream &is, const IOPattern &iop) const override |
bool | read (iIstream &is, const IOPattern &iop) override |
bool | read (iIstream &is) |
bool | write (iOstream &os) const |
![]() | |
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 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 |
Static Protected Member Functions | |
constexpr static const char * | memoerySpaceName () |
Protected Attributes | |
const rectangleMesh * | mesh_ |
word | name_ ="noName" |
viewType | field_ |
T | defaultValue_ {} |
![]() | |
word | objectName_ |
word | objectType_ |
word | fileFormat_ = "ASCII" |
file format read from file More... | |
Additional Inherited Members | |
![]() | |
uniquePtr< iFstream > | inStream () const |
uniquePtr< oFstream > | outStream () const |
uniquePtr< oFstream > | dummyOutStream () const |
Definition at line 31 of file rectMeshField.hpp.
using viewType = ViewType3D<T,HostSpace> |
Definition at line 37 of file rectMeshField.hpp.
using memory_space = typename viewType::memory_space |
Definition at line 39 of file rectMeshField.hpp.
|
inline |
Definition at line 61 of file rectMeshField.hpp.
Referenced by rectMeshField< int32 >::clonePtr().
|
inline |
Definition at line 82 of file rectMeshField.hpp.
|
default |
|
default |
|
inlinestaticconstexprprotected |
Definition at line 51 of file rectMeshField.hpp.
TypeInfoTemplateNV111 | ( | "rectMeshField< T >" | , |
T | , | ||
memoerySpaceName() | |||
) |
|
default |
|
default |
|
inline |
Definition at line 112 of file rectMeshField.hpp.
|
inline |
Definition at line 117 of file rectMeshField.hpp.
|
inlinevirtual |
Reimplemented from objectFile.
Definition at line 123 of file rectMeshField.hpp.
Referenced by pFlow::convertRectMeshField().
|
inline |
Definition at line 129 of file rectMeshField.hpp.
Referenced by pFlow::convertRectMeshField().
|
inline |
Definition at line 134 of file rectMeshField.hpp.
Referenced by pFlow::convertRectMeshField().
|
inline |
Definition at line 139 of file rectMeshField.hpp.
Referenced by pFlow::convertRectMeshField().
|
inline |
Definition at line 144 of file rectMeshField.hpp.
Referenced by pFlow::convertRectMeshField().
|
inline |
Definition at line 149 of file rectMeshField.hpp.
|
inline |
Definition at line 155 of file rectMeshField.hpp.
|
inline |
Definition at line 161 of file rectMeshField.hpp.
|
inline |
Definition at line 167 of file rectMeshField.hpp.
|
inline |
Definition at line 172 of file rectMeshField.hpp.
Referenced by rectMeshField< int32 >::rectMeshField().
Implements IOobject.
Definition at line 181 of file rectMeshField.hpp.
Implements IOobject.
Definition at line 187 of file rectMeshField.hpp.
|
inline |
Definition at line 193 of file rectMeshField.hpp.
|
inline |
Definition at line 199 of file rectMeshField.hpp.
|
protected |
Definition at line 43 of file rectMeshField.hpp.
Referenced by rectMeshField< int32 >::cellVol(), rectMeshField< int32 >::mesh(), rectMeshField< int32 >::nx(), rectMeshField< int32 >::ny(), rectMeshField< int32 >::nz(), and rectMeshField< int32 >::size().
|
protected |
Definition at line 45 of file rectMeshField.hpp.
Referenced by rectMeshField< int32 >::name().
|
protected |
Definition at line 47 of file rectMeshField.hpp.
Referenced by rectMeshField< int32 >::fill(), and rectMeshField< int32 >::operator()().
|
protected |
Definition at line 49 of file rectMeshField.hpp.
Referenced by rectMeshField< int32 >::rectMeshField().