SheafSystem
0.0.0.0
|
A field refiner that subdivides a triangle into 6 triangles by introducing a new vertex in the center of the triangle and each of its edges. More...
#include <barycentric_triangle_refiner.h>
BARYCENTRIC_TRIANGLE_REFINER FACET | |
barycentric_triangle_refiner (const field_refinement_policy &xpolicy) | |
Creates an instance for refining base space xbase_space using policy xpolicy. More... | |
barycentric_triangle_refiner (const barycentric_triangle_refiner &xother) | |
Copy constructor. More... | |
barycentric_triangle_refiner () | |
Default constructor; disabled. 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 t0 the local coordinates of the parent zone. More... | |
ANY FACET | |
virtual barycentric_triangle_refiner * | clone () const |
Virtual constructor, creates a new instance of the same type as this. More... | |
virtual barycentric_triangle_refiner & | operator= (const local_field_refiner &xother) |
Assignment operator. More... | |
barycentric_triangle_refiner & | operator= (const barycentric_triangle_refiner &xother) |
Assignment operator. More... | |
virtual | ~barycentric_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... | |
virtual void | modify_crg (field_refinement_buffer &xbuffer) |
Modifies the cover relation graph of the base space. 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 6 triangles by introducing a new vertex in the center of the triangle and each of its edges.
Definition at line 43 of file barycentric_triangle_refiner.h.
fields::barycentric_triangle_refiner::barycentric_triangle_refiner | ( | const field_refinement_policy & | xpolicy | ) |
Creates an instance for refining base space xbase_space using policy xpolicy.
Definition at line 37 of file barycentric_triangle_refiner.cc.
References barycentric_triangle_refiner(), invariant(), and fields::local_field_refiner::policy().
fields::barycentric_triangle_refiner::barycentric_triangle_refiner | ( | const barycentric_triangle_refiner & | xother | ) |
Copy constructor.
Not Implemented.
Definition at line 54 of file barycentric_triangle_refiner.cc.
References barycentric_triangle_refiner(), and invariant().
|
protected |
Default constructor; disabled.
Not Implemented.
Definition at line 76 of file barycentric_triangle_refiner.cc.
References invariant(), and unrefined_vertex_ct().
Referenced by barycentric_triangle_refiner(), and clone().
|
virtual |
Destructor.
Definition at line 355 of file barycentric_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 290 of file barycentric_triangle_refiner.cc.
References barycentric_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 156 of file barycentric_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 371 of file barycentric_triangle_refiner.cc.
References sheaf::any::disable_invariant_check(), sheaf::any::enable_invariant_check(), fields::edge_centered_polygon_refiner::invariant(), sheaf::any::invariant_check(), and is_ancestor_of().
Referenced by barycentric_triangle_refiner(), clone(), operator=(), and ~barycentric_triangle_refiner().
|
virtual |
Conformance test; true if other conforms to this.
Reimplemented from fields::edge_centered_polygon_refiner.
Definition at line 401 of file barycentric_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 135 of file barycentric_triangle_refiner.cc.
References first_vertex_index().
Referenced by refined_zone_ct().
|
virtual |
The map from the local coordinates of refined zone xi t0 the local coordinates of the parent zone.
Implements fields::local_field_refiner.
Definition at line 238 of file barycentric_triangle_refiner.cc.
References clone(), and refined_zone_ct().
Referenced by zone_type_name().
|
virtual |
Assignment operator.
Reimplemented from fields::edge_centered_polygon_refiner.
Definition at line 313 of file barycentric_triangle_refiner.cc.
References invariant(), and is_ancestor_of().
Referenced by clone().
fields::barycentric_triangle_refiner & fields::barycentric_triangle_refiner::operator= | ( | const barycentric_triangle_refiner & | xother | ) |
Assignment operator.
Definition at line 333 of file barycentric_triangle_refiner.cc.
References invariant(), is_ancestor_of(), and ~barycentric_triangle_refiner().
|
protectedvirtual |
The number of refined zones created by this.
Implements fields::local_field_refiner.
Definition at line 113 of file barycentric_triangle_refiner.cc.
References is_zone_centered_refiner().
Referenced by local_coordinates_map(), and unrefined_vertex_ct().
|
protectedvirtual |
The number of vertices with refinement depth <= unrefined zone depth.
Implements fields::edge_centered_polygon_refiner.
Definition at line 93 of file barycentric_triangle_refiner.cc.
References refined_zone_ct().
Referenced by barycentric_triangle_refiner().
|
virtual |
The name of the type of zone this creates during refinement.
Implements fields::local_field_refiner.
Definition at line 218 of file barycentric_triangle_refiner.cc.
References local_coordinates_map().
Referenced by first_vertex_index().