26#ifndef OOMPH_GENERIC_REFINEABLE_QUAD_MESH_HEADER
27#define OOMPH_GENERIC_REFINEABLE_QUAD_MESH_HEADER
48 template<
class ELEMENT>
163 unsigned level =
el_pt->refinement_level();
206 for (
unsigned i = 0;
i <
n;
i++)
251 for (
unsigned e = 0;
e < n_element;
e++)
double size() const
Calculate the size of the element (length, area, volume,...) in Eulerian computational coordinates....
OomphCommunicator * Comm_pt
Pointer to communicator – set to NULL if mesh is not distributed.
const Vector< GeneralisedElement * > & element_pt() const
Return reference to the Vector of elements.
unsigned long nelement() const
Return number of elements in the mesh.
Base class for quad meshes (meshes made of 2D quad elements).
A QuadTreeForest consists of a collection of QuadTreeRoots. Each member tree can have neighbours to i...
QuadTreeRoot is a QuadTree that forms the root of a (recursive) quadtree. The "root node" is special ...
static void setup_static_data()
Setup the static data, rotation and reflection schemes, etc.
RefineableElements are FiniteElements that may be subdivided into children to provide a better local ...
Intermediate mesh class that implements the mesh adaptation functions specified in the TreeBasedRefin...
virtual ~RefineableQuadMesh()
Broken assignment operator.
RefineableQuadMesh(const RefineableQuadMesh &dummy)=delete
Broken copy constructor.
RefineableQuadMesh()
Constructor: Setup static quadtree data.
void setup_quadtree_forest()
Set up QuadTreeForest. Wipes any existing tree structure below the minimum refinement level and regar...
virtual void setup_tree_forest()
Set up the tree forest associated with the Mesh. Forwards call to setup_quadtree_forest()
TAdvectionDiffusionReactionElement<NREAGENT,DIM,NNODE_1D> elements are isoparametric triangular DIM-d...
virtual void get_refinement_levels(unsigned &min_refinement_level, unsigned &max_refinement_level)
Get max/min refinement levels in mesh.
TreeForest * Forest_pt
Forest representation of the mesh.
Templated base class for refineable meshes. The use of the template parameter is required only for cr...
void flush_trees()
Flush trees from forest.
void stick_all_tree_nodes_into_vector(Vector< Tree * > &all_forest_nodes)
Traverse forest and stick pointers to all "nodes" into Vector.
A generalised tree base class that abstracts the common functionality between the quad- and octrees u...
void stick_all_tree_nodes_into_vector(Vector< Tree * > &)
Traverse and stick pointers to all "nodes" into Vector.
unsigned nsons() const
Return number of sons (zero if it's a leaf node)
TreeRoot *& root_pt()
Return pointer to root of the tree.
void flush_sons()
Flush the sons.
RefineableElement * object_pt() const
Return the pointer to the object (RefineableElement) represented by the tree.
Tree * son_pt(const int &son_index) const
Return pointer to the son for a given index. Note that to aid code readability specific enums have be...
void set_father_pt(Tree *const &father_pt)
Set the father.
DRAIG: Change all instances of (SPATIAL_DIM) to (DIM-1).