DOLFIN
DOLFIN C++ interface
|
#include <MeshData.h>
Public Member Functions | |
MeshData () | |
Constructor. | |
~MeshData () | |
Destructor. | |
const MeshData & | operator= (const MeshData &data) |
void | clear () |
Clear all data. | |
bool | exists (std::string name, std::size_t dim) const |
std::vector< std::size_t > & | create_array (std::string name, std::size_t dim) |
std::vector< std::size_t > & | array (std::string name, std::size_t dim) |
const std::vector< std::size_t > & | array (std::string name, std::size_t dim) const |
void | erase_array (const std::string name, std::size_t dim) |
std::string | str (bool verbose) const |
![]() | |
Variable () | |
Create unnamed variable. | |
Variable (const std::string name, const std::string label) | |
Create variable with given name and label. | |
Variable (const Variable &variable) | |
Copy constructor. | |
virtual | ~Variable () |
Destructor. | |
const Variable & | operator= (const Variable &variable) |
Assignment operator. | |
void | rename (const std::string name, const std::string label) |
Rename variable. | |
std::string | name () const |
Return name. | |
std::string | label () const |
Return label (description) | |
std::size_t | id () const |
Friends | |
class | XMLMesh |
Friends. | |
Additional Inherited Members | |
![]() | |
Parameters | parameters |
Parameters. | |
The class MeshData is a container for auxiliary mesh data, represented either as arrays or maps. Each dataset is identified by a unique user-specified string. Only std::size_t-valued data are currently supported.
Auxiliary mesh data may be attached to a mesh by users as a convenient way to store data associated with a mesh. It is also used internally by DOLFIN to communicate data associated with meshes. The following named mesh data are recognized by DOLFIN:
Facet orientation (used for assembly over interior facets)
Sub meshes (used by the class SubMesh)
Note to developers: use underscore in names in place of spaces.
std::vector< std::size_t > & MeshData::array | ( | std::string | name, |
std::size_t | dim | ||
) |
Return array with given name (returning zero if data is not available)
name | (std::string) The name of the array. |
dim | (std::size_t) Dimension. |
const std::vector< std::size_t > & MeshData::array | ( | std::string | name, |
std::size_t | dim | ||
) | const |
Return array with given name (returning zero if data is not available)
name | (std::string) The name of the array. |
dim | (std::size_t) Dimension. |
std::vector< std::size_t > & MeshData::create_array | ( | std::string | name, |
std::size_t | dim | ||
) |
Create array (vector) with given name and size
name | (std::string) The name of the array. |
dim | (std::size_t) Dimension. |
void MeshData::erase_array | ( | const std::string | name, |
std::size_t | dim | ||
) |
Erase array with given name
name | (std::string) The name of the array. |
dim | (std::size_t) Dimension. |
bool MeshData::exists | ( | std::string | name, |
std::size_t | dim | ||
) | const |
Check is array exists
name | (std::string) The name of the array. |
dim | (std::size_t) |
|
virtual |
Return informal string representation (pretty-print)
verbose | (bool) Flag to turn on additional output. |
Reimplemented from dolfin::Variable.