DOLFIN
DOLFIN C++ interface
|
#include <BoundaryMesh.h>
Public Member Functions | |
BoundaryMesh (const Mesh &mesh, std::string type, bool order=true) | |
~BoundaryMesh () | |
Destructor. | |
MeshFunction< std::size_t > & | entity_map (std::size_t d) |
const MeshFunction< std::size_t > & | entity_map (std::size_t d) const |
Public Member Functions inherited from dolfin::Mesh | |
Mesh () | |
Create empty mesh. | |
Mesh (MPI_Comm comm) | |
Create empty mesh. | |
Mesh (const Mesh &mesh) | |
Mesh (std::string filename) | |
Mesh (MPI_Comm comm, std::string filename) | |
Mesh (MPI_Comm comm, LocalMeshData &local_mesh_data) | |
~Mesh () | |
Destructor. | |
const Mesh & | operator= (const Mesh &mesh) |
std::size_t | num_vertices () const |
std::size_t | num_edges () const |
std::size_t | num_faces () const |
std::size_t | num_facets () const |
std::size_t | num_cells () const |
std::size_t | num_entities (std::size_t d) const |
std::vector< double > & | coordinates () |
const std::vector< double > & | coordinates () const |
const std::vector< unsigned int > & | cells () const |
std::size_t | num_entities_global (std::size_t dim) const |
MeshTopology & | topology () |
const MeshTopology & | topology () const |
MeshGeometry & | geometry () |
const MeshGeometry & | geometry () const |
MeshDomains & | domains () |
const MeshDomains & | domains () const |
std::shared_ptr< BoundingBoxTree > | bounding_box_tree () const |
MeshData & | data () |
const MeshData & | data () const |
CellType & | type () |
const CellType & | type () const |
Get mesh cell type (const version). | |
std::size_t | init (std::size_t dim) const |
void | init (std::size_t d0, std::size_t d1) const |
void | init () const |
Compute all entities and connectivity. | |
void | init_global (std::size_t dim) const |
Compute global indices for entity dimension dim. | |
void | clean () |
void | order () |
bool | ordered () const |
Mesh | renumber_by_color () const |
void | scale (double factor) |
void | translate (const Point &point) |
void | rotate (double angle, std::size_t axis=2) |
void | rotate (double angle, std::size_t axis, const Point &point) |
void | smooth (std::size_t num_iterations=1) |
void | smooth_boundary (std::size_t num_iterations=1, bool harmonic_smoothing=true) |
void | snap_boundary (const SubDomain &sub_domain, bool harmonic_smoothing=true) |
const std::vector< std::size_t > & | color (std::string coloring_type) const |
const std::vector< std::size_t > & | color (std::vector< std::size_t > coloring_type) const |
double | hmin () const |
double | hmax () const |
double | rmin () const |
double | rmax () const |
std::size_t | hash () const |
std::string | str (bool verbose) const |
const std::vector< int > & | cell_orientations () const |
void | init_cell_orientations (const Expression &global_normal) |
MPI_Comm | mpi_comm () const |
std::string | ghost_mode () const |
Public Member Functions inherited from dolfin::Variable | |
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 |
Public Member Functions inherited from dolfin::Hierarchical< Mesh > | |
Hierarchical (Mesh &self) | |
Constructor. | |
virtual | ~Hierarchical () |
Destructor. | |
std::size_t | depth () const |
bool | has_parent () const |
bool | has_child () const |
Mesh & | parent () |
const Mesh & | parent () const |
Return parent in hierarchy (const version). | |
std::shared_ptr< Mesh > | parent_shared_ptr () |
std::shared_ptr< const Mesh > | parent_shared_ptr () const |
Return shared pointer to parent (const version). | |
Mesh & | child () |
const Mesh & | child () const |
Return child in hierarchy (const version). | |
std::shared_ptr< Mesh > | child_shared_ptr () |
std::shared_ptr< const Mesh > | child_shared_ptr () const |
Return shared pointer to child (const version). | |
Mesh & | root_node () |
const Mesh & | root_node () const |
Return root node object in hierarchy (const version). | |
std::shared_ptr< Mesh > | root_node_shared_ptr () |
std::shared_ptr< const Mesh > | root_node_shared_ptr () const |
Return shared pointer to root node object in hierarchy (const version). | |
Mesh & | leaf_node () |
const Mesh & | leaf_node () const |
Return leaf node object in hierarchy (const version). | |
std::shared_ptr< Mesh > | leaf_node_shared_ptr () |
std::shared_ptr< const Mesh > | leaf_node_shared_ptr () const |
Return shared pointer to leaf node object in hierarchy (const version). | |
void | set_parent (std::shared_ptr< Mesh > parent) |
Set parent. | |
void | clear_child () |
Clear child. | |
void | set_child (std::shared_ptr< Mesh > child) |
Set child. | |
const Hierarchical & | operator= (const Hierarchical &hierarchical) |
Assignment operator. | |
void | _debug () const |
Function useful for debugging the hierarchy. | |
Additional Inherited Members | |
Public Attributes inherited from dolfin::Variable | |
Parameters | parameters |
Parameters. | |
A BoundaryMesh is a mesh over the boundary of some given mesh. The cells of the boundary mesh (facets of the original mesh) are oriented to produce outward pointing normals relative to the original mesh.
BoundaryMesh::BoundaryMesh | ( | const Mesh & | mesh, |
std::string | type, | ||
bool | order = true |
||
) |
Create boundary mesh from given mesh.
mesh | (Mesh) Another Mesh object. |
type | (std::string) The type of BoundaryMesh, which can be "exterior", "interior" or "local". "exterior" is the globally external boundary, "interior" is the inter-process mesh and "local" is the boundary of the local (this process) mesh. |
order | (bool) Optional argument which can be used to control whether or not the boundary mesh should be ordered according to the UFC ordering convention. If set to false, the boundary mesh will be ordered with right-oriented facets (outward-pointing unit normals). The default value is true. |
MeshFunction< std::size_t > & BoundaryMesh::entity_map | ( | std::size_t | d | ) |
Get index map for entities of dimension d in the boundary mesh to the entity in the original full mesh
const MeshFunction< std::size_t > & BoundaryMesh::entity_map | ( | std::size_t | d | ) | const |
Get index map for entities of dimension d in the boundary mesh to the entity in the original full mesh (const version)