Go to the documentation of this file.
17 #ifndef __WEIPA_DOMAINCHUNK_H__
18 #define __WEIPA_DOMAINCHUNK_H__
20 #include <weipa/weipa.h>
52 virtual bool initFromFile(
const std::string& filename) = 0;
55 virtual bool writeToSilo(DBfile* dbfile,
const std::string& pathInSilo,
58 bool writeMeshData) = 0;
100 virtual void setSiloPath(
const std::string& path) = 0;
109 #endif // __WEIPA_DOMAINCHUNK_H__
virtual StringVec getVarNames() const =0
Returns the names of all 'special' domain variables.
boost::shared_ptr< DataVar > DataVar_ptr
Definition: weipa.h:63
Definition: DataVar.cpp:49
Definition: DomainChunk.h:31
virtual ~DomainChunk()
Destructor.
Definition: DomainChunk.h:103
virtual ElementData_ptr getElementsForFunctionSpace(int fsCode) const =0
Returns the element data for given function space code.
virtual std::string getSiloPath() const =0
Returns the absolute path within Silo file if writeToSilo() or setSiloPath() was called before,...
boost::shared_ptr< ElementData > ElementData_ptr
Definition: weipa.h:65
Definition: DomainChunk.h:30
virtual void setSiloPath(const std::string &path)=0
Sets the silo path to be used when saving to a Silo file.
virtual ElementData_ptr getElementsByName(const std::string &name) const =0
Returns element data with given name.
virtual DataVar_ptr getDataVarByName(const std::string &name) const =0
Creates and returns a variable with domain data.
virtual NodeData_ptr getMeshByName(const std::string &name) const =0
Returns the node mesh with given name.
virtual bool initFromFile(const std::string &filename)=0
Reads the domain from a dump file.
Definition: AbstractContinuousDomain.cpp:22
boost::shared_ptr< NodeData > NodeData_ptr
Definition: weipa.h:67
std::vector< std::string > StringVec
Definition: weipa.h:59
virtual NodeData_ptr getNodes() const =0
Returns a pointer to the full nodes.
virtual bool initFromEscript(const escript::AbstractDomain *domain)=0
Initialises the domain using an escript domain instance.
virtual StringVec getMeshNames() const =0
Returns the names of all meshes within this domain.
Base class for all escript domains.
Definition: AbstractDomain.h:56
virtual void removeGhostZones(int ownIndex)=0
Removes 'ghost' elements and nodes.
Centering
Definition: DomainChunk.h:29
virtual Centering getCenteringForFunctionSpace(int fsCode) const =0
Returns whether data on given function space is node or cell centered.
virtual bool writeToSilo(DBfile *dbfile, const std::string &pathInSilo, const StringVec &labels, const StringVec &units, bool writeMeshData)=0
Writes the domain to a Silo file.
virtual NodeData_ptr getMeshForFunctionSpace(int fsCode) const =0
Returns the node mesh for given function space code.
virtual void reorderGhostZones(int ownIndex)=0
Reorders elements so that 'ghost' elements (i.e. those that do not belong to ownIndex) appear last.