SheafSystem
0.0.0.0
|
Zone to node connectivity relation for a block of zones of a given type. More...
#include <block_connectivity.h>
BLOCK_CONNECTIVITY FACET | |
size_type | _element_ct |
The number of elements. More... | |
size_type | _node_ct |
The number of distinct nodes. More... | |
size_type | _node_id_ct |
the number of entyries in _node_ids. More... | |
pod_index_type * | _node_ids |
The nodal connectivity array. More... | |
bool | _delete_node_ids |
True if destructor of this should delete _node_ids. More... | |
size_type | _nodes_per_element |
The number of nodes per element. More... | |
pod_index_type | _start_id |
The id given to the first node id generated. Mostly only useful for creating 1 (vs 0) based node numbering. More... | |
virtual | ~block_connectivity () |
Destructor. More... | |
size_type | element_ct () const |
The number of elements. More... | |
size_type | node_ct () const |
The number of distinct nodes. More... | |
pod_index_type * | node_ids () |
The nodal connectivity array. More... | |
const pod_index_type * | node_ids () const |
The nodal connectivity array. More... | |
bool | delete_node_ids () const |
True if destructor of this should delete _node_ids. More... | |
size_type | node_id_ct () const |
The number of entries in node_ids(). More... | |
size_type | nodes_per_element () const |
The number of nodes per element. More... | |
pod_index_type | start_id () const |
The id given to the first node id generated. More... | |
virtual void | to_stream (std::ostream &xos) const |
Print to stream xos. More... | |
block_connectivity & | operator= (const block_connectivity &xother) |
Assignment operator. More... | |
virtual bool | operator== (const block_connectivity &xother) const |
Equality operator. More... | |
block_connectivity () | |
Default constructor. More... | |
block_connectivity (const block_connectivity &xother) | |
Copy constructor. More... | |
block_connectivity (const pod_index_type *xnode_ids, size_type xnode_id_ct, size_type xnodes_per_element, size_type xnode_ct) | |
Creates an instance with node_ids() == xnode_ids, node_id_ct() == xnode_id_ct, and start_id() == xstart_id. If xnode_ct == 0, the number of distinct nodes will be computed, otherwise node_ct() == xnode_ct. More... | |
block_connectivity (pod_index_type xstart_id) | |
Parameter xstart_id is the id given to the first node id generated. Mostly only useful for creating 1 (vs 0) based node numbering. More... | |
ANY FACET | |
virtual block_connectivity * | clone () const =0 |
Virtual constructor, makes a new instance of the same type as this. More... | |
virtual bool | invariant () const |
Class invariant. More... | |
virtual bool | is_ancestor_of (const any *other) const |
Conformance test; true if other conforms to this. More... | |
Additional Inherited Members | |
Public Types inherited from fiber_bundle::block_relation | |
enum | cell_type { POINT, LINE, QUAD, TRIANGLE, HEX, TETRA, CELL_TYPE_END } |
Cell types. More... | |
Public Member Functions inherited from fiber_bundle::block_relation | |
block_relation () | |
Default constructor. More... | |
virtual | ~block_relation () |
Destructor. More... | |
virtual cell_type | element_type () const =0 |
The element (zone) type. More... | |
Public Member Functions inherited from sheaf::any | |
bool | is_same_type (const any *other) const |
True if other is the same type as this. More... | |
virtual | ~any () |
Destructor. More... | |
bool | invariant_check () const |
True if invariant checking is enabled. More... | |
void | enable_invariant_check () const |
Enable invariant checking. More... | |
void | disable_invariant_check () const |
Disable invariant check. Intended for preventing recursive calls to invariant and for suppressing invariant checking during multi-phase initialization. More... | |
int | disable_invariance_check_request_depth () const |
Number of times disable_invariant_check has been called without matching call to enable_invariant_check. More... | |
Protected Member Functions inherited from sheaf::any | |
any () | |
default constructor More... | |
Zone to node connectivity relation for a block of zones of a given type.
Definition at line 47 of file block_connectivity.h.
|
virtual |
|
protected |
Default constructor.
Definition at line 201 of file block_connectivity.cc.
Referenced by block_connectivity(), fiber_bundle::hex_connectivity::hex_connectivity(), fiber_bundle::line_connectivity::line_connectivity(), operator==(), fiber_bundle::point_connectivity::point_connectivity(), fiber_bundle::quad_connectivity::quad_connectivity(), fiber_bundle::tetra_connectivity::tetra_connectivity(), and fiber_bundle::triangle_connectivity::triangle_connectivity().
|
protected |
Copy constructor.
Definition at line 231 of file block_connectivity.cc.
References block_connectivity().
|
protected |
Creates an instance with node_ids() == xnode_ids, node_id_ct() == xnode_id_ct, and start_id() == xstart_id. If xnode_ct == 0, the number of distinct nodes will be computed, otherwise node_ct() == xnode_ct.
Definition at line 259 of file block_connectivity.cc.
References block_connectivity(), and fiber_bundle::vd_algebra::max().
|
protected |
Parameter xstart_id is the id given to the first node id generated. Mostly only useful for creating 1 (vs 0) based node numbering.
Definition at line 315 of file block_connectivity.cc.
References invariant().
|
pure virtual |
Virtual constructor, makes a new instance of the same type as this.
Implements fiber_bundle::block_relation.
Implemented in fiber_bundle::hex_connectivity, fiber_bundle::tetra_connectivity, fiber_bundle::triangle_connectivity, fiber_bundle::line_connectivity, and fiber_bundle::point_connectivity.
bool fiber_bundle::block_connectivity::delete_node_ids | ( | ) | const |
True if destructor of this should delete _node_ids.
Definition at line 79 of file block_connectivity.cc.
References node_id_ct().
Referenced by fiber_bundle::point_connectivity::create_connectivity(), fiber_bundle::line_connectivity::create_connectivity(), fiber_bundle::quad_connectivity::create_connectivity(), fiber_bundle::hex_connectivity::create_connectivity(), fiber_bundle::tetra_connectivity::create_connectivity(), fiber_bundle::triangle_connectivity::create_connectivity(), fiber_bundle::hex_connectivity::hex_connectivity(), fiber_bundle::line_connectivity::line_connectivity(), node_ids(), fiber_bundle::point_connectivity::point_connectivity(), fiber_bundle::quad_connectivity::quad_connectivity(), fiber_bundle::tetra_connectivity::tetra_connectivity(), and fiber_bundle::triangle_connectivity::triangle_connectivity().
size_type fiber_bundle::block_connectivity::element_ct | ( | ) | const |
The number of elements.
Definition at line 51 of file block_connectivity.cc.
References node_ct().
Referenced by fiber_bundle::point_connectivity::create_connectivity(), fiber_bundle::line_connectivity::create_connectivity(), fiber_bundle::quad_connectivity::create_connectivity(), fiber_bundle::hex_connectivity::create_connectivity(), fiber_bundle::tetra_connectivity::create_connectivity(), fiber_bundle::triangle_connectivity::create_connectivity(), fiber_bundle::zone_nodes_block_crg_interval::get_dof_tuple_ids(), fiber_bundle::zone_nodes_block_crg_interval::get_private_data(), fiber_bundle::zone_nodes_block_crg_interval::get_size(), fiber_bundle::hex_connectivity::hex_connectivity(), fiber_bundle::line_connectivity::line_connectivity(), fiber_bundle::zone_nodes_block::new_state(), fiber_bundle::point_connectivity::point_connectivity(), fiber_bundle::block_adjacency::put_connectivity(), fiber_bundle::quad_connectivity::quad_connectivity(), fiber_bundle::tetra_connectivity::tetra_connectivity(), fiber_bundle::triangle_connectivity::triangle_connectivity(), and ~block_connectivity().
|
virtual |
Class invariant.
Reimplemented from fiber_bundle::block_relation.
Reimplemented in fiber_bundle::hex_connectivity, fiber_bundle::tetra_connectivity, fiber_bundle::triangle_connectivity, fiber_bundle::line_connectivity, and fiber_bundle::point_connectivity.
Definition at line 345 of file block_connectivity.cc.
References is_ancestor_of().
Referenced by block_connectivity(), fiber_bundle::quad_connectivity::element_type(), fiber_bundle::point_connectivity::invariant(), fiber_bundle::line_connectivity::invariant(), fiber_bundle::triangle_connectivity::invariant(), fiber_bundle::tetra_connectivity::invariant(), and fiber_bundle::hex_connectivity::invariant().
|
virtual |
Conformance test; true if other conforms to this.
Reimplemented from fiber_bundle::block_relation.
Reimplemented in fiber_bundle::hex_connectivity, fiber_bundle::tetra_connectivity, fiber_bundle::triangle_connectivity, fiber_bundle::line_connectivity, and fiber_bundle::point_connectivity.
Definition at line 379 of file block_connectivity.cc.
References fiber_bundle::operator<<().
Referenced by invariant().
size_type fiber_bundle::block_connectivity::node_ct | ( | ) | const |
The number of distinct nodes.
Definition at line 58 of file block_connectivity.cc.
References node_ids().
Referenced by fiber_bundle::point_connectivity::create_connectivity(), fiber_bundle::line_connectivity::create_connectivity(), fiber_bundle::quad_connectivity::create_connectivity(), fiber_bundle::hex_connectivity::create_connectivity(), fiber_bundle::tetra_connectivity::create_connectivity(), fiber_bundle::triangle_connectivity::create_connectivity(), element_ct(), fiber_bundle::zone_nodes_block_crg_interval::get_size(), fiber_bundle::hex_connectivity::hex_connectivity(), fiber_bundle::line_connectivity::line_connectivity(), fiber_bundle::point_connectivity::point_connectivity(), fiber_bundle::quad_connectivity::quad_connectivity(), fiber_bundle::tetra_connectivity::tetra_connectivity(), and fiber_bundle::triangle_connectivity::triangle_connectivity().
sheaf::size_type fiber_bundle::block_connectivity::node_id_ct | ( | ) | const |
The number of entries in node_ids().
Definition at line 86 of file block_connectivity.cc.
References nodes_per_element().
Referenced by fiber_bundle::point_connectivity::create_connectivity(), fiber_bundle::line_connectivity::create_connectivity(), fiber_bundle::quad_connectivity::create_connectivity(), fiber_bundle::hex_connectivity::create_connectivity(), fiber_bundle::tetra_connectivity::create_connectivity(), fiber_bundle::triangle_connectivity::create_connectivity(), delete_node_ids(), fiber_bundle::zone_nodes_block_crg_interval::get_private_data(), fiber_bundle::hex_connectivity::hex_connectivity(), fiber_bundle::line_connectivity::line_connectivity(), fiber_bundle::unstructured_block::new_state(), fiber_bundle::point_connectivity::point_connectivity(), fiber_bundle::block_adjacency::put_connectivity(), fiber_bundle::quad_connectivity::quad_connectivity(), fiber_bundle::tetra_connectivity::tetra_connectivity(), and fiber_bundle::triangle_connectivity::triangle_connectivity().
sheaf::pod_index_type * fiber_bundle::block_connectivity::node_ids | ( | ) |
The nodal connectivity array.
Definition at line 65 of file block_connectivity.cc.
Referenced by fiber_bundle::point_connectivity::create_connectivity(), fiber_bundle::line_connectivity::create_connectivity(), fiber_bundle::quad_connectivity::create_connectivity(), fiber_bundle::hex_connectivity::create_connectivity(), fiber_bundle::tetra_connectivity::create_connectivity(), fiber_bundle::triangle_connectivity::create_connectivity(), fiber_bundle::zone_nodes_block_crg_interval::get_private_data(), fiber_bundle::hex_connectivity::hex_connectivity(), fiber_bundle::line_connectivity::line_connectivity(), fiber_bundle::unstructured_block::new_state(), node_ct(), operator=(), fiber_bundle::point_connectivity::point_connectivity(), fiber_bundle::block_adjacency::put_connectivity(), fiber_bundle::quad_connectivity::quad_connectivity(), fiber_bundle::tetra_connectivity::tetra_connectivity(), and fiber_bundle::triangle_connectivity::triangle_connectivity().
const sheaf::pod_index_type * fiber_bundle::block_connectivity::node_ids | ( | ) | const |
The nodal connectivity array.
Definition at line 72 of file block_connectivity.cc.
References delete_node_ids().
size_type fiber_bundle::block_connectivity::nodes_per_element | ( | ) | const |
The number of nodes per element.
Definition at line 93 of file block_connectivity.cc.
References start_id().
Referenced by fiber_bundle::point_connectivity::create_connectivity(), fiber_bundle::line_connectivity::create_connectivity(), fiber_bundle::quad_connectivity::create_connectivity(), fiber_bundle::hex_connectivity::create_connectivity(), fiber_bundle::tetra_connectivity::create_connectivity(), fiber_bundle::triangle_connectivity::create_connectivity(), fiber_bundle::zone_nodes_block_crg_interval::get_private_data(), fiber_bundle::hex_connectivity::hex_connectivity(), fiber_bundle::line_connectivity::line_connectivity(), node_id_ct(), fiber_bundle::point_connectivity::point_connectivity(), fiber_bundle::block_adjacency::put_connectivity(), fiber_bundle::quad_connectivity::quad_connectivity(), fiber_bundle::tetra_connectivity::tetra_connectivity(), and fiber_bundle::triangle_connectivity::triangle_connectivity().
fiber_bundle::block_connectivity & fiber_bundle::block_connectivity::operator= | ( | const block_connectivity & | xother | ) |
Assignment operator.
Definition at line 127 of file block_connectivity.cc.
References _element_ct, _node_ct, _node_id_ct, _node_ids, _nodes_per_element, _start_id, node_ids(), and operator==().
Referenced by to_stream().
|
virtual |
Equality operator.
Definition at line 171 of file block_connectivity.cc.
References _element_ct, _node_ct, _node_id_ct, _node_ids, _nodes_per_element, _start_id, and block_connectivity().
Referenced by operator=().
sheaf::pod_index_type fiber_bundle::block_connectivity::start_id | ( | ) | const |
The id given to the first node id generated.
Definition at line 100 of file block_connectivity.cc.
References to_stream().
Referenced by fiber_bundle::point_connectivity::create_connectivity(), fiber_bundle::line_connectivity::create_connectivity(), fiber_bundle::quad_connectivity::create_connectivity(), fiber_bundle::hex_connectivity::create_connectivity(), fiber_bundle::tetra_connectivity::create_connectivity(), fiber_bundle::triangle_connectivity::create_connectivity(), fiber_bundle::hex_connectivity::hex_connectivity(), fiber_bundle::line_connectivity::line_connectivity(), nodes_per_element(), fiber_bundle::point_connectivity::point_connectivity(), fiber_bundle::quad_connectivity::quad_connectivity(), fiber_bundle::tetra_connectivity::tetra_connectivity(), and fiber_bundle::triangle_connectivity::triangle_connectivity().
|
virtual |
Print to stream xos.
Definition at line 107 of file block_connectivity.cc.
References operator=().
Referenced by fiber_bundle::operator<<(), and start_id().
|
protected |
True if destructor of this should delete _node_ids.
Definition at line 171 of file block_connectivity.h.
Referenced by fiber_bundle::point_connectivity::create_connectivity(), fiber_bundle::line_connectivity::create_connectivity(), fiber_bundle::quad_connectivity::create_connectivity(), fiber_bundle::hex_connectivity::create_connectivity(), fiber_bundle::tetra_connectivity::create_connectivity(), and fiber_bundle::triangle_connectivity::create_connectivity().
|
protected |
The number of elements.
Definition at line 151 of file block_connectivity.h.
Referenced by fiber_bundle::point_connectivity::create_connectivity(), fiber_bundle::line_connectivity::create_connectivity(), fiber_bundle::quad_connectivity::create_connectivity(), fiber_bundle::hex_connectivity::create_connectivity(), fiber_bundle::tetra_connectivity::create_connectivity(), fiber_bundle::triangle_connectivity::create_connectivity(), operator=(), and operator==().
|
protected |
The number of distinct nodes.
Definition at line 156 of file block_connectivity.h.
Referenced by fiber_bundle::point_connectivity::create_connectivity(), fiber_bundle::line_connectivity::create_connectivity(), fiber_bundle::quad_connectivity::create_connectivity(), fiber_bundle::hex_connectivity::create_connectivity(), fiber_bundle::tetra_connectivity::create_connectivity(), fiber_bundle::triangle_connectivity::create_connectivity(), operator=(), and operator==().
|
protected |
the number of entyries in _node_ids.
Definition at line 161 of file block_connectivity.h.
Referenced by fiber_bundle::point_connectivity::create_connectivity(), fiber_bundle::line_connectivity::create_connectivity(), fiber_bundle::quad_connectivity::create_connectivity(), fiber_bundle::hex_connectivity::create_connectivity(), fiber_bundle::tetra_connectivity::create_connectivity(), fiber_bundle::triangle_connectivity::create_connectivity(), operator=(), and operator==().
|
protected |
The nodal connectivity array.
Definition at line 166 of file block_connectivity.h.
Referenced by fiber_bundle::point_connectivity::create_connectivity(), fiber_bundle::line_connectivity::create_connectivity(), fiber_bundle::quad_connectivity::create_connectivity(), fiber_bundle::hex_connectivity::create_connectivity(), fiber_bundle::tetra_connectivity::create_connectivity(), fiber_bundle::triangle_connectivity::create_connectivity(), operator=(), and operator==().
|
protected |
The number of nodes per element.
Definition at line 176 of file block_connectivity.h.
Referenced by fiber_bundle::point_connectivity::create_connectivity(), fiber_bundle::line_connectivity::create_connectivity(), fiber_bundle::quad_connectivity::create_connectivity(), fiber_bundle::hex_connectivity::create_connectivity(), fiber_bundle::tetra_connectivity::create_connectivity(), fiber_bundle::triangle_connectivity::create_connectivity(), fiber_bundle::hex_connectivity::hex_connectivity(), fiber_bundle::line_connectivity::line_connectivity(), operator=(), operator==(), fiber_bundle::point_connectivity::point_connectivity(), fiber_bundle::quad_connectivity::quad_connectivity(), and fiber_bundle::tetra_connectivity::tetra_connectivity().
|
protected |
The id given to the first node id generated. Mostly only useful for creating 1 (vs 0) based node numbering.
Definition at line 182 of file block_connectivity.h.
Referenced by fiber_bundle::point_connectivity::create_connectivity(), fiber_bundle::line_connectivity::create_connectivity(), fiber_bundle::quad_connectivity::create_connectivity(), fiber_bundle::hex_connectivity::create_connectivity(), fiber_bundle::tetra_connectivity::create_connectivity(), fiber_bundle::triangle_connectivity::create_connectivity(), fiber_bundle::hex_connectivity::node_id(), fiber_bundle::tetra_connectivity::node_id(), operator=(), and operator==().