www.cemf.ir
triSurfaceField< T, MemorySpace > Class Template Reference
+ Inheritance diagram for triSurfaceField< T, MemorySpace >:
+ Collaboration diagram for triSurfaceField< T, MemorySpace >:

Public Types

using triSurfaceFieldType = triSurfaceField< T, MemorySpace >
 
using FieldType = Field< T, MemorySpace >
 
using VectorType = typename FieldType::VectorType
 
using memory_space = typename FieldType::memory_space
 
using execution_space = typename FieldType::execution_space
 
- Public Types inherited from objectFile
enum  readFlag { READ_ALWAYS, READ_NEVER, READ_IF_PRESENT }
 
enum  writeFlag { WRITE_ALWAYS, WRITE_NEVER }
 

Public Member Functions

 TypeInfoTemplate111 ("triSurfaceField", T, VectorType::memoerySpaceName())
 
 triSurfaceField (const objectFile &objf, multiTriSurface &surface, const T &defVal)
 
 triSurfaceField (const objectFile &objf, repository *owner, multiTriSurface &surface, const T &defVal)
 
 triSurfaceField (const objectFile &objf, multiTriSurface &surface, const T &val, const T &defVal)
 
 triSurfaceField (const objectFile &objf, repository *owner, multiTriSurface &surface, const T &val, const T &defVal)
 
 ~triSurfaceField () override=default
 
const auto & surface () const
 
auto size () const
 
auto capacity () const
 
void assign (const std::vector< T > &vals)
 
const auto & deviceViewAll () const
 
auto deviceView () const
 
auto hostView () const
 
const FieldTypefield () const
 
FieldTypefield ()
 
void fill (const T &val)
 
bool hearChanges (real t, real dt, uint32 iter, const message &msg, const anyList &varList) override
 
bool write (iOstream &is, const IOPattern &iop) const override
 
bool read (iIstream &is, const IOPattern &iop) override
 
- Public Member Functions inherited from IOobject
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 IOPatternioPattern () const
 
const repositoryowner () const override
 
repositoryowner ()
 
repositoryreleaseOwner (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
 
- Public Member Functions inherited from IOfileHeader
 IOfileHeader (const objectFile &objf)
 
const wordobjectName () const
 
const wordobjectType () 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...
 
- Public Member Functions inherited from objectFile
 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
 
objectFileoperator= (const objectFile &rhs)=default
 
objectFileoperator= (objectFile &&rhs)=default
 
virtual ~objectFile ()=default
 
virtual const wordname () const
 
virtual const fileSystemlocalPath () 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
 
- Public Member Functions inherited from observer
 observer (message msg)
 
 observer (const subscriber *subscrbr, message msg)
 
virtual ~observer ()
 
void subscribe (const subscriber *subscrbr, message msg)
 
observeraddEvent (message::EVENT event)
 
bool subscribed () const
 
void addToSubscriber (const subscriber *subscrbr, message msg)
 
bool addToSubscriber (const subscriber &subscriber)
 

Private Attributes

FieldType field_
 
const multiTriSurfacesurface_
 
defaultValue_
 

Additional Inherited Members

- Static Public Member Functions inherited from observer
static constexpr auto numEvents ()
 
- Protected Member Functions inherited from IOfileHeader
uniquePtr< iFstreaminStream () const
 
uniquePtr< oFstreamoutStream () const
 
uniquePtr< oFstreamdummyOutStream () const
 
- Protected Attributes inherited from IOfileHeader
word objectName_
 
word objectType_
 
word fileFormat_ = "ASCII"
 file format read from file More...
 

Detailed Description

template<class T, class MemorySpace = void>
class pFlow::triSurfaceField< T, MemorySpace >

Definition at line 35 of file triSurfaceField.hpp.

Member Typedef Documentation

◆ triSurfaceFieldType

using triSurfaceFieldType = triSurfaceField<T, MemorySpace>

Definition at line 42 of file triSurfaceField.hpp.

◆ FieldType

using FieldType = Field<T, MemorySpace>

Definition at line 44 of file triSurfaceField.hpp.

◆ VectorType

Definition at line 46 of file triSurfaceField.hpp.

◆ memory_space

Definition at line 48 of file triSurfaceField.hpp.

◆ execution_space

Definition at line 50 of file triSurfaceField.hpp.

Constructor & Destructor Documentation

◆ triSurfaceField() [1/4]

triSurfaceField ( const objectFile objf,
multiTriSurface surface,
const T &  defVal 
)

Definition at line 24 of file triSurfaceField.cpp.

◆ triSurfaceField() [2/4]

triSurfaceField ( const objectFile objf,
repository owner,
multiTriSurface surface,
const T &  defVal 
)

Definition at line 43 of file triSurfaceField.cpp.

◆ triSurfaceField() [3/4]

triSurfaceField ( const objectFile objf,
multiTriSurface surface,
const T &  val,
const T &  defVal 
)

Definition at line 91 of file triSurfaceField.cpp.

◆ triSurfaceField() [4/4]

triSurfaceField ( const objectFile objf,
repository owner,
multiTriSurface surface,
const T &  val,
const T &  defVal 
)

Definition at line 110 of file triSurfaceField.cpp.

◆ ~triSurfaceField()

~triSurfaceField ( )
overridedefault

Member Function Documentation

◆ TypeInfoTemplate111()

TypeInfoTemplate111 ( "triSurfaceField< T, MemorySpace >"  ,
,
VectorType::memoerySpaceName()   
)

◆ surface()

const auto& surface ( ) const
inline

Definition at line 105 of file triSurfaceField.hpp.

◆ size()

auto size ( ) const
inline

Definition at line 111 of file triSurfaceField.hpp.

◆ capacity()

auto capacity ( ) const
inline

Definition at line 117 of file triSurfaceField.hpp.

◆ assign()

void assign ( const std::vector< T > &  vals)
inline

Definition at line 123 of file triSurfaceField.hpp.

Referenced by geometry::createPropertyId().

+ Here is the caller graph for this function:

◆ deviceViewAll()

const auto& deviceViewAll ( ) const
inline

Definition at line 134 of file triSurfaceField.hpp.

◆ deviceView()

auto deviceView ( ) const
inline

Definition at line 139 of file triSurfaceField.hpp.

◆ hostView()

auto hostView ( ) const
inline

Definition at line 145 of file triSurfaceField.hpp.

◆ field() [1/2]

const FieldType& field ( ) const
inline

Definition at line 151 of file triSurfaceField.hpp.

◆ field() [2/2]

FieldType& field ( )
inline

Definition at line 157 of file triSurfaceField.hpp.

◆ fill()

void fill ( const T &  val)
inline

Definition at line 163 of file triSurfaceField.hpp.

◆ hearChanges()

bool hearChanges ( real  t,
real  dt,
uint32  iter,
const message msg,
const anyList varList 
)
inlineoverridevirtual

Implements observer.

Definition at line 168 of file triSurfaceField.hpp.

◆ write()

bool write ( iOstream is,
const IOPattern iop 
) const
overridevirtual

Implements IOobject.

Definition at line 150 of file triSurfaceField.cpp.

◆ read()

bool read ( iIstream is,
const IOPattern iop 
)
overridevirtual

Implements IOobject.

Definition at line 160 of file triSurfaceField.cpp.

Member Data Documentation

◆ field_

◆ surface_

const multiTriSurface& surface_
private

◆ defaultValue_

T defaultValue_
private

Definition at line 61 of file triSurfaceField.hpp.


The documentation for this class was generated from the following files: