![]() |
SheafSystem
0.0.0.0
|
A field refiner that subdivides a triangle into 4 triangles by introducing a new vertex in the center of each edge. More...
#include <edge_centered_triangle_refiner.h>
EDGE_CENTERED_TRIANGLE_REFINER FACET | |
| edge_centered_triangle_refiner (const field_refinement_policy &xpolicy) | |
| Creates an instance for refining base space xbase_space using policy xpolicy. More... | |
| edge_centered_triangle_refiner (const edge_centered_triangle_refiner &xother) | |
| Copy constructor. More... | |
| edge_centered_triangle_refiner () | |
| Default constructor; disabled. More... | |
| virtual void | modify_crg (field_refinement_buffer &xbuffer) |
| Modifies the cover relation graph of the base space. More... | |
| virtual size_type | unrefined_vertex_ct () const |
| The number of vertices with refinement depth <= unrefined zone depth. More... | |
| virtual size_type | refined_zone_ct () const |
| The number of refined zones created by this. More... | |
| virtual bool | is_zone_centered_refiner () const |
| True if this adds a vertex at the center of the zone. More... | |
| virtual const block< size_type > & | first_vertex_index () const |
| The index in _vertex_pos of the first vertex of each new zone; contains number of zones + 1 because first entry is duplicated at the end. More... | |
LOCAL_FIELD_REFINER FACET | |
| virtual const std::string & | zone_type_name () const |
| The name of the type of zone this creates during refinement. More... | |
| const chart_point_coord_type * | local_coordinates_map (size_type xi) const |
| The map from the local coordinates of refined zone xi the the local coordinates of the parent zone. More... | |
ANY FACET | |
| virtual edge_centered_triangle_refiner * | clone () const |
| Virtual constructor, creates a new instance of the same type as this. More... | |
| virtual edge_centered_triangle_refiner & | operator= (const local_field_refiner &xother) |
| Assignment operator. More... | |
| edge_centered_triangle_refiner & | operator= (const edge_centered_triangle_refiner &xother) |
| Assignment operator. More... | |
| virtual | ~edge_centered_triangle_refiner () |
| Destructor. More... | |
| virtual bool | invariant () const |
| Class invariant. More... | |
| virtual bool | is_ancestor_of (const any *xother) const |
| Conformance test; true if other conforms to this. More... | |
Additional Inherited Members | |
Public Member Functions inherited from fields::edge_centered_polygon_refiner | |
| virtual int | db () const |
| The base dimension; the dimension of the local coordinates (independent variable). More... | |
| edge_centered_polygon_refiner & | operator= (const edge_centered_polygon_refiner &xother) |
| Assignment operator. More... | |
| virtual | ~edge_centered_polygon_refiner () |
| Destructor. More... | |
Public Member Functions inherited from fields::local_field_refiner | |
| virtual | ~local_field_refiner () |
| Destructor. More... | |
| virtual const std::string & | vertex_type_name () const |
| The name of the type of vertex this creates during refinement. More... | |
| const field_refinement_policy & | policy () const |
| The refinement policy for this refiner. More... | |
| void | refine (field_refinement_buffer &xbuffer) |
| Refines the zone specified by xbuffer.zone_id one level and evaluates the coordinates section on the refined zone. More... | |
| const block< scoped_index > & | refined_zone_ids () const |
| The member ids of the zones created by the most recent execution of refine(). 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 Types inherited from fields::edge_centered_polygon_refiner | |
| typedef std::list< scoped_index > | vertex_list_type |
| The type of buffer used for processing vertices. More... | |
Protected Member Functions inherited from fields::edge_centered_polygon_refiner | |
| edge_centered_polygon_refiner (const field_refinement_policy &xpolicy) | |
| Creates an instance for refining base space xbase_space using policy xpolicy. More... | |
| edge_centered_polygon_refiner (const edge_centered_polygon_refiner &xother) | |
| Copy constructor. More... | |
| size_type | refined_vertex_ct () const |
| The number of boundary vertices with refinement depth <= refined zone depth; does not include center vertex, if one exists. More... | |
| size_type | edge_ct () const |
| The number of edges in the zone. More... | |
| edge_centered_polygon_refiner () | |
| Default constructor; disabled. More... | |
| void | reserve_vertex_buffers () |
| Reserves space in vertex buffers. More... | |
| virtual void | refine_base_space (field_refinement_buffer &xbuffer) |
| Refines the base space or the target. More... | |
| void | modify_subposets (field_refinement_buffer &xbuffer) |
| Modifies subposets in the base space. More... | |
| virtual void | refine_coordinates (field_refinement_buffer &xbuffer) |
| Refines the coordinates of the target. More... | |
| pod_index_type | create_edge_center (base_space_poset &xbase, const scoped_index &xzone_id, int xdepth, const scoped_index &xprev_mbr_id, const scoped_index &xmbr_id) |
| Creates a new edge center vextex and puts it in _new_point_ids[xid]. More... | |
| void | make_new_vertices (field_refinement_buffer &xbuffer) |
| Makes new vertices in edge centers as needed and builds the list of vertices in the boundary of the zone. More... | |
| void | make_new_zones (field_refinement_buffer &xbuffer) |
| Make the new zones in the refinement. More... | |
Protected Member Functions inherited from fields::local_field_refiner | |
| local_field_refiner () | |
| Default constructor; disabled. More... | |
| local_field_refiner (const local_field_refiner &xother) | |
| Copy constructor. More... | |
| local_field_refiner (const field_refinement_policy &xpolicy) | |
| Creates an instance for refining xtarget using xsource as the reference field. More... | |
| void | initialize_buffers () |
| Initializes the dof tuple and refined zone buffers. More... | |
| pod_index_type | create_vertex (base_space_poset &xbase, int xdepth) |
| Creates a new vertex at depth xdepth. More... | |
| pod_index_type | create_zone (base_space_poset &xbase, int xdepth) |
| Creates a new quadrangle in base space xbase, with refinement depth xdepth. More... | |
Protected Member Functions inherited from sheaf::any | |
| any () | |
| default constructor More... | |
Protected Attributes inherited from fields::edge_centered_polygon_refiner | |
| block< scoped_index > | _vertex_ids |
| The ids of the vertices in boundary <= new refinement depth. More... | |
| block< bool > | _is_new_vertex |
| True if i-th member is a new vertex. More... | |
| block< vertex_list_type::iterator > | _vertex_pos |
| The position in _vertex_list of ids of the vertices in the currnet refinement. More... | |
| vertex_list_type | _vertex_list |
| List for processing vertices. More... | |
| scoped_index | _zone_ctr_id |
| The id of the new vertex in the center of the zone. More... | |
Protected Attributes inherited from fields::local_field_refiner | |
| const field_refinement_policy & | _policy |
| The refinement policy. More... | |
| block< scoped_index > | _point_dof_tuple_ids |
| The dof tuple index for point cells at various depths. More... | |
| block< scoped_index > | _zone_dof_tuple_ids |
| The dof tuple index for quadrangle cells at various depths. More... | |
| block< scoped_index > | _refined_zone_ids |
| The member ids of the zones created by the most recent execution of refine(). More... | |
A field refiner that subdivides a triangle into 4 triangles by introducing a new vertex in the center of each edge.
Definition at line 39 of file edge_centered_triangle_refiner.h.
| fields::edge_centered_triangle_refiner::edge_centered_triangle_refiner | ( | const field_refinement_policy & | xpolicy | ) |
Creates an instance for refining base space xbase_space using policy xpolicy.
Definition at line 41 of file edge_centered_triangle_refiner.cc.
References edge_centered_triangle_refiner(), invariant(), and fields::local_field_refiner::policy().
| fields::edge_centered_triangle_refiner::edge_centered_triangle_refiner | ( | const edge_centered_triangle_refiner & | xother | ) |
Copy constructor.
Not Implemented.
Definition at line 58 of file edge_centered_triangle_refiner.cc.
References edge_centered_triangle_refiner(), and invariant().
|
protected |
Default constructor; disabled.
Not Implemented.
Definition at line 78 of file edge_centered_triangle_refiner.cc.
References invariant(), and modify_crg().
Referenced by clone(), and edge_centered_triangle_refiner().
|
virtual |
Destructor.
Definition at line 420 of file edge_centered_triangle_refiner.cc.
References invariant().
Referenced by operator=().
|
virtual |
Virtual constructor, creates a new instance of the same type as this.
Implements fields::edge_centered_polygon_refiner.
Definition at line 356 of file edge_centered_triangle_refiner.cc.
References edge_centered_triangle_refiner(), invariant(), sheaf::any::is_same_type(), and operator=().
Referenced by local_coordinates_map().
|
protectedvirtual |
The index in _vertex_pos of the first vertex of each new zone; contains number of zones + 1 because first entry is duplicated at the end.
Implements fields::edge_centered_polygon_refiner.
Definition at line 234 of file edge_centered_triangle_refiner.cc.
References sheaf::auto_block< T, un_block_initialization_policy< T > >::ct(), and zone_type_name().
Referenced by is_zone_centered_refiner().
|
virtual |
Class invariant.
Reimplemented from fields::edge_centered_polygon_refiner.
Definition at line 436 of file edge_centered_triangle_refiner.cc.
References sheaf::any::disable_invariant_check(), sheaf::any::enable_invariant_check(), fields::local_field_refiner::invariant(), sheaf::any::invariant_check(), and is_ancestor_of().
Referenced by clone(), edge_centered_triangle_refiner(), operator=(), and ~edge_centered_triangle_refiner().
|
virtual |
Conformance test; true if other conforms to this.
Reimplemented from fields::edge_centered_polygon_refiner.
Definition at line 466 of file edge_centered_triangle_refiner.cc.
Referenced by invariant(), and operator=().
|
protectedvirtual |
True if this adds a vertex at the center of the zone.
Implements fields::edge_centered_polygon_refiner.
Definition at line 213 of file edge_centered_triangle_refiner.cc.
References first_vertex_index().
Referenced by refined_zone_ct().
|
virtual |
The map from the local coordinates of refined zone xi the the local coordinates of the parent zone.
Implements fields::local_field_refiner.
Definition at line 306 of file edge_centered_triangle_refiner.cc.
References clone(), and refined_zone_ct().
Referenced by zone_type_name().
|
protectedvirtual |
Modifies the cover relation graph of the base space.
Reimplemented from fields::edge_centered_polygon_refiner.
Definition at line 95 of file edge_centered_triangle_refiner.cc.
References fields::local_field_refiner::_refined_zone_ids, fields::edge_centered_polygon_refiner::_vertex_ids, fields::field_refinement_buffer::base_space, fields::local_field_refiner::create_zone(), sheaf::auto_block< T, S >::ct(), sheaf::poset_state_handle::in_jim_edit_mode(), fields::edge_centered_polygon_refiner::make_new_vertices(), fields::edge_centered_polygon_refiner::make_new_zones(), sheaf::poset_state_handle::member_id(), sheaf::poset_state_handle::new_link(), sheaf::auto_block< T, S >::push_back(), refined_zone_ct(), fiber_bundle::base_space_poset::refinement_depth(), unrefined_vertex_ct(), and fields::field_refinement_buffer::zone_id.
Referenced by edge_centered_triangle_refiner().
|
virtual |
Assignment operator.
Reimplemented from fields::edge_centered_polygon_refiner.
Definition at line 379 of file edge_centered_triangle_refiner.cc.
References invariant(), and is_ancestor_of().
Referenced by clone().
| fields::edge_centered_triangle_refiner & fields::edge_centered_triangle_refiner::operator= | ( | const edge_centered_triangle_refiner & | xother | ) |
Assignment operator.
Definition at line 399 of file edge_centered_triangle_refiner.cc.
References invariant(), is_ancestor_of(), and ~edge_centered_triangle_refiner().
|
protectedvirtual |
The number of refined zones created by this.
Implements fields::local_field_refiner.
Definition at line 191 of file edge_centered_triangle_refiner.cc.
References is_zone_centered_refiner().
Referenced by local_coordinates_map(), modify_crg(), and unrefined_vertex_ct().
|
protectedvirtual |
The number of vertices with refinement depth <= unrefined zone depth.
Implements fields::edge_centered_polygon_refiner.
Definition at line 171 of file edge_centered_triangle_refiner.cc.
References refined_zone_ct().
Referenced by modify_crg().
|
virtual |
The name of the type of zone this creates during refinement.
Implements fields::local_field_refiner.
Definition at line 286 of file edge_centered_triangle_refiner.cc.
References local_coordinates_map().
Referenced by first_vertex_index().