26#ifndef OOMPH_REFINEABLE_QUAD_ELEMENT_HEADER
27#define OOMPH_REFINEABLE_QUAD_ELEMENT_HEADER
31#include <oomph-lib-config.h>
81 LeakCheckNames::RefineableQElement<2> _build += 1;
101 LeakCheckNames::RefineableQElement<2> _build -= 1;
139 virtual void build(
Mesh*& mesh_pt,
146 void check_integrity(
double& max_error);
149 void output_corners(std::ostream&
outfile,
const std::string& colour)
const;
154 return dynamic_cast<QuadTree*
>(Tree_pt);
160 return dynamic_cast<QuadTree*
>(Tree_pt);
180 void setup_father_bounds();
188 void get_boundaries(
const int&
edge, std::set<unsigned>&
boundaries)
const;
197 void interpolated_zeta_on_edge(
const unsigned& boundary,
205 void setup_hang_for_value(
const int&
value_id);
209 virtual void quad_hang_helper(
const int&
value_id,
252 undeformed_macro_elem_pt);
265 void get_edge_solid_bcs(
const int&
edge,
283 using namespace QuadTreeNames;
295 int son_type = Tree_pt->son_type();
301 Tree_pt->father_pt()->object_pt());
312 "We can't handle generalised nodal positions (yet).\n",
363 Undeformed_macro_elem_pt =
father_el_pt->Undeformed_macro_elem_pt;
364 for (
unsigned i = 0;
i < 2;
i++)
368 0.5 * (
s_lo[
i] + 1.0) *
372 0.5 * (
s_hi[
i] + 1.0) *
381 unsigned n_p = nnode_1d();
407 for (
unsigned i = 0;
i < 2;
i++)
424 if (Use_undeformed_macro_element_for_new_lagrangian_coords)
440 unsigned ntstorage = time_stepper_pt->
ntstorage();
445 for (
unsigned t = 1;
t < ntstorage;
t++)
453 for (
unsigned i = 0;
i < 2;
i++)
TimeStepper *& time_stepper_pt()
Return the pointer to the timestepper.
virtual double interpolated_x(const Vector< double > &s, const unsigned &i) const
Return FE interpolated coordinate x[i] at local coordinate s.
Node *& node_pt(const unsigned &n)
Return a pointer to the local node n.
virtual void get_jacobian(Vector< double > &residuals, DenseMatrix< double > &jacobian)
Calculate the elemental Jacobian matrix "d equation / d variable".
Base class for MacroElement s that are used during mesh refinement in domains with curvlinear and/or ...
Nodes are derived from Data, but, in addition, have a definite (Eulerian) position in a space of a gi...
An OomphLibError object which should be thrown when an run-time error is encountered....
Base class for Solid Qelements.
virtual void set_macro_elem_pt(MacroElement *macro_elem_pt)
Broken assignment operator.
Base class for all quad elements.
QuadTree class: Recursively defined, generalised quadtree.
RefineableElements are FiniteElements that may be subdivided into children to provide a better local ...
virtual void further_setup_hanging_nodes()=0
Perform additional hanging node procedures for variables that are not interpolated by all nodes (e....
QuadTree * quadtree_pt() const
Pointer to quadtree representation of this element.
RefineableQElement()
Constructor: Pass refinement level (default 0 = root)
static std::map< unsigned, DenseMatrix< int > > Father_bound
Coincidence between son nodal points and father boundaries: Father_bound[node_1d](jnod_son,...
unsigned required_nsons() const
A refineable quad element has four sons.
virtual Node * node_created_by_son_of_neighbour(const Vector< double > &s_fraction, bool &is_periodic)
If a son of a neighbouring element has already created a node at a position corresponding to the loca...
virtual ~RefineableQElement()
Broken assignment operator.
QuadTree * quadtree_pt()
Pointer to quadtree representation of this element.
RefineableQElement(const RefineableQElement< 2 > &dummy)=delete
Broken copy constructor.
A class that is used to template the refineable Q elements by dimension. It's really nothing more tha...
RefineableSolidElements are SolidFiniteElements that may be subdivided into children to provide a bet...
void build(Mesh *&mesh_pt, Vector< Node * > &new_node_pt, bool &was_already_built, std::ofstream &new_nodes_file)
Build the element, i.e. give it nodal positions, apply BCs, etc. Incl. documention into new_nodes_fil...
virtual ~RefineableSolidQElement()
Broken assignment operator.
void set_macro_elem_pt(MacroElement *macro_elem_pt, MacroElement *undeformed_macro_elem_pt)
Final over-ride: Use version in QSolidElementBase.
RefineableSolidQElement()
Constructor, just call the constructor of the RefineableQElement<2>
void get_jacobian(Vector< double > &residuals, DenseMatrix< double > &jacobian)
Use the generic finite difference routine defined in RefineableSolidElement to calculate the Jacobian...
void set_macro_elem_pt(MacroElement *macro_elem_pt)
Final over-ride: Use version in QSolidElementBase.
RefineableSolidQElement(const RefineableSolidQElement< 2 > &dummy)=delete
Broken copy constructor.
A class that is used to template the solid refineable Q elements by dimension. It's really nothing mo...
A Class for nodes that deform elastically (i.e. position is an unknown in the problem)....
unsigned nlagrangian_type() const
Number of types of Lagrangian coordinates used to interpolate the Lagrangian coordinates within the e...
TAdvectionDiffusionReactionElement<NREAGENT,DIM,NNODE_1D> elements are isoparametric triangular DIM-d...
Base class for time-stepping schemes. Timestepper provides an approximation of the temporal derivativ...
unsigned ntstorage() const
Return the number of doubles required to represent history (one for steady)
DRAIG: Change all instances of (SPATIAL_DIM) to (DIM-1).