26#ifndef OOMPH_REFINEABLE_BRICK_MESH_HEADER
27#define OOMPH_REFINEABLE_BRICK_MESH_HEADER
32#include <oomph-lib-config.h>
56 template<
class ELEMENT>
159 unsigned level =
el_pt->refinement_level();
203 for (
unsigned i = 0;
i <
n;
i++)
Base class for brick meshes (meshes made of 3D brick elements).
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.
An OcTreeForest consists of a collection of OcTreeRoots. Each member tree can have neighbours to its ...
OcTreeRoot is a OcTree that forms the root of a (recursive) octree. The "root node" is special as it ...
static void setup_static_data()
Setup the static data, rotation and reflection schemes, etc.
Intermediate mesh class that implements the mesh adaptation functions specified in the TreeBasedRefin...
virtual ~RefineableBrickMesh()
Destructor:
RefineableBrickMesh(const RefineableBrickMesh &dummy)=delete
Broken copy constructor.
void setup_octree_forest()
Do what it says...
RefineableBrickMesh()
Constructor: Setup static octree data.
void operator=(const RefineableBrickMesh &)=delete
Broken assignment operator.
virtual void setup_tree_forest()
Set up the tree forest associated with the Mesh. Forwards call to setup_octree_forest()
RefineableElements are FiniteElements that may be subdivided into children to provide a better local ...
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).