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,
141 bool& was_already_built,
142 std::ofstream& new_nodes_file);
154 return dynamic_cast<QuadTree*
>(Tree_pt);
160 return dynamic_cast<QuadTree*
>(Tree_pt);
180 void setup_father_bounds();
183 void get_edge_bcs(
const int& edge,
Vector<int>& bound_cons)
const;
188 void get_boundaries(
const int& edge, std::set<unsigned>& boundaries)
const;
193 void get_bcs(
int bound,
Vector<int>& bound_cons)
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,
211 std::ofstream& output_hangfile);
252 undeformed_macro_elem_pt);
265 void get_edge_solid_bcs(
const int& edge,
272 void get_solid_bcs(
int bound,
Vector<int>& solid_bound_cons)
const;
280 bool& was_already_built,
281 std::ofstream& new_nodes_file)
283 using namespace QuadTreeNames;
287 mesh_pt, new_node_pt, was_already_built, new_nodes_file);
290 if (was_already_built)
return;
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",
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();
384 for (
unsigned i0 = 0; i0 < n_p; i0++)
387 s[0] = s_lo[0] + (s_hi[0] - s_lo[0]) *
double(i0) /
double(n_p - 1);
389 for (
unsigned i1 = 0; i1 < n_p; i1++)
392 s[1] = s_lo[1] + (s_hi[1] - s_lo[1]) *
double(i1) /
double(n_p - 1);
407 for (
unsigned i = 0;
i < 2;
i++)
420 elastic_node_pt->
x(
i) = x_fe[
i];
424 if (Use_undeformed_macro_element_for_new_lagrangian_coords)
426 elastic_node_pt->
xi(
i) = xi[
i];
430 elastic_node_pt->
xi(
i) = xi_fe[
i];
440 unsigned ntstorage = time_stepper_pt->
ntstorage();
445 for (
unsigned t = 1;
t < ntstorage;
t++)
453 for (
unsigned i = 0;
i < 2;
i++)
455 elastic_node_pt->
x(
t,
i) =
int i
Definition: BiCGSTAB_step_by_step.cpp:9
const unsigned n
Definition: CG3DPackingUnitTest.cpp:11
TimeStepper *& time_stepper_pt()
Return the pointer to the timestepper.
Definition: nodes.h:238
Node *& node_pt(const unsigned &n)
Return a pointer to the local node n.
Definition: elements.h:2175
virtual double interpolated_x(const Vector< double > &s, const unsigned &i) const
Return FE interpolated coordinate x[i] at local coordinate s.
Definition: elements.cc:3962
virtual void get_jacobian(Vector< double > &residuals, DenseMatrix< double > &jacobian)
Definition: elements.h:990
Definition: macro_element.h:73
double & x(const unsigned &i)
Return the i-th nodal coordinate.
Definition: nodes.h:1060
Definition: oomph_definitions.h:222
double & s_macro_ll(const unsigned &i)
Definition: Qelements.h:186
double & s_macro_ur(const unsigned &i)
Definition: Qelements.h:202
Base class for Solid Qelements.
Definition: Qelements.h:331
virtual void set_macro_elem_pt(MacroElement *macro_elem_pt)
Broken assignment operator.
Definition: Qelements.h:349
void get_x_and_xi(const Vector< double > &s, Vector< double > &x_fe, Vector< double > &x, Vector< double > &xi_fe, Vector< double > &xi) const
Definition: Qelements.h:379
Base class for all quad elements.
Definition: Qelements.h:821
Definition: quadtree.h:104
Definition: refineable_elements.h:97
Definition: refineable_quad_element.h:71
virtual void further_setup_hanging_nodes()=0
QuadTree * quadtree_pt() const
Pointer to quadtree representation of this element.
Definition: refineable_quad_element.h:158
QuadTree * quadtree_pt()
Pointer to quadtree representation of this element.
Definition: refineable_quad_element.h:152
RefineableQElement()
Constructor: Pass refinement level (default 0 = root)
Definition: refineable_quad_element.h:78
static std::map< unsigned, DenseMatrix< int > > Father_bound
Definition: refineable_quad_element.h:176
unsigned required_nsons() const
A refineable quad element has four sons.
Definition: refineable_quad_element.h:106
virtual ~RefineableQElement()
Broken assignment operator.
Definition: refineable_quad_element.h:98
RefineableQElement(const RefineableQElement< 2 > &dummy)=delete
Broken copy constructor.
virtual Node * node_created_by_son_of_neighbour(const Vector< double > &s_fraction, bool &is_periodic)
Definition: refineable_quad_element.h:126
Definition: Qelements.h:2259
Definition: refineable_elements.h:874
Refineable version of Solid quad elements.
Definition: refineable_quad_element.h:222
void build(Mesh *&mesh_pt, Vector< Node * > &new_node_pt, bool &was_already_built, std::ofstream &new_nodes_file)
Definition: refineable_quad_element.h:278
virtual ~RefineableSolidQElement()
Broken assignment operator.
Definition: refineable_quad_element.h:238
void set_macro_elem_pt(MacroElement *macro_elem_pt, MacroElement *undeformed_macro_elem_pt)
Final over-ride: Use version in QSolidElementBase.
Definition: refineable_quad_element.h:248
RefineableSolidQElement()
Constructor, just call the constructor of the RefineableQElement<2>
Definition: refineable_quad_element.h:225
void get_jacobian(Vector< double > &residuals, DenseMatrix< double > &jacobian)
Definition: refineable_quad_element.h:257
void set_macro_elem_pt(MacroElement *macro_elem_pt)
Final over-ride: Use version in QSolidElementBase.
Definition: refineable_quad_element.h:242
RefineableSolidQElement(const RefineableSolidQElement< 2 > &dummy)=delete
Broken copy constructor.
Definition: Qelements.h:2286
MacroElement * Undeformed_macro_elem_pt
Pointer to the element's "undeformed" macro element (NULL by default)
Definition: elements.h:4076
unsigned nlagrangian_type() const
Definition: nodes.h:1877
double & xi(const unsigned &i)
Reference to i-th Lagrangian position.
Definition: nodes.h:1883
Definition: timesteppers.h:231
unsigned ntstorage() const
Definition: timesteppers.h:601
RealScalar s
Definition: level1_cplx_impl.h:130
EIGEN_STRONG_INLINE const Eigen::CwiseBinaryOp< Eigen::internal::scalar_zeta_op< typename DerivedX::Scalar >, const DerivedX, const DerivedQ > zeta(const Eigen::ArrayBase< DerivedX > &x, const Eigen::ArrayBase< DerivedQ > &q)
Definition: SpecialFunctionsArrayAPI.h:152
double max_error
Definition: MortaringCantileverCompareToNonMortaring.cpp:188
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286
@ SE
Definition: quadtree.h:57
@ NW
Definition: quadtree.h:58
@ NE
Definition: quadtree.h:59
@ SW
Definition: quadtree.h:56
Vector< std::string > colour
Tecplot colours.
Definition: oomph_utilities.cc:1159
DRAIG: Change all instances of (SPATIAL_DIM) to (DIM-1).
Definition: AnisotropicHookean.h:10
list x
Definition: plotDoE.py:28
t
Definition: plotPSD.py:36
#define OOMPH_EXCEPTION_LOCATION
Definition: oomph_definitions.h:61
#define OOMPH_CURRENT_FUNCTION
Definition: oomph_definitions.h:86