31 #ifndef OOMPH_REFINEABLE_LINE_ELEMENT_HEADER 32 #define OOMPH_REFINEABLE_LINE_ELEMENT_HEADER 36 #include <oomph-lib-config.h> 83 LeakCheckNames::RefineableQElement<1>
_build+=1;
107 LeakCheckNames::RefineableQElement<1>
_build-=1;
141 bool& was_already_built,
142 std::ofstream &new_nodes_file);
146 void check_integrity(
double& max_error);
153 {
return dynamic_cast<BinaryTree*
>(Tree_pt); }
157 {
return dynamic_cast<BinaryTree*
>(Tree_pt); }
170 void setup_father_bounds();
177 const int &my_edge, std::ofstream &output_hangfile)
200 "The class RefinableSolidQElement<1> has not been implemented or\n";
202 "tested. It is safest to assume that all functions do not do what\n";
204 "they claim to. The `build()' function is deliberately broken.";
208 "RefineableSolidQElement<1>::RefineableSolidQElement()",
209 OOMPH_EXCEPTION_LOCATION);
239 undeformed_macro_elem_pt);
252 bool& was_already_built,
253 std::ofstream &new_nodes_file)
255 throw OomphLibError(
"This function has not been implemented yet:",
256 OOMPH_CURRENT_FUNCTION,
257 OOMPH_EXCEPTION_LOCATION);
void set_macro_elem_pt(MacroElement *macro_elem_pt, MacroElement *undeformed_macro_elem_pt)
Final over-ride: Use version in QSolidElementBase.
Base class for all line elements.
void broken_copy(const std::string &class_name)
Issue error message and terminate execution.
virtual ~RefineableSolidQElement()
Broken assignment operator.
RefineableSolidQElement()
Constructor, just call the constructor of the RefineableQElement<1>
virtual void get_jacobian(Vector< double > &residuals, DenseMatrix< double > &jacobian)
Calculate the elemental Jacobian matrix "d equation / d variable".
Refineable version of Solid line elements.
void setup_hanging_nodes(Vector< std::ofstream *> &output_stream)
Line elements have no hanging nodes so this is deliberately left empty.
Base class for Solid Qelements.
Nodes are derived from Data, but, in addition, have a definite (Eulerian) position in a space of a gi...
virtual ~RefineableQElement()
Broken assignment operator.
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...
RefineableSolidQElement(const RefineableSolidQElement< 1 > &dummy)
Broken copy constructor.
virtual void set_macro_elem_pt(MacroElement *macro_elem_pt)
Broken assignment operator.
unsigned required_nsons() const
A refineable line element has two sons.
void set_macro_elem_pt(MacroElement *macro_elem_pt)
Final over-ride: Use version in QSolidElementBase.
void get_jacobian(Vector< double > &residuals, DenseMatrix< double > &jacobian)
Use the generic finite difference routine defined in RefineableSolidElement to calculate the Jacobian...
RefineableQElement()
Constructor: Pass refinement level (default 0 = root)
Node * node_created_by_son_of_neighbour(const Vector< double > &s_fraction, bool &is_periodic)
If a neighbouring element has already created a node at a position corresponding to the local fractio...
std::string string(const unsigned &i)
Return the i-th string or "" if the relevant string hasn't been defined.
RefineableQElement(const RefineableQElement< 1 > &dummy)
Broken copy constructor.
void setup_hang_for_value(const int &value_id)
Line elements have no hanging nodes so this is deliberately left empty.
Vector< std::string > colour
Tecplot colours.
long RefineableQElement< 2 > _build
void binary_hang_helper(const int &value_id, const int &my_edge, std::ofstream &output_hangfile)
Line elements have no hanging nodes so this is deliberately left empty.
BinaryTree * binary_tree_pt() const
Pointer to binary tree representation of this element (const version)
BinaryTree * binary_tree_pt()
Pointer to binary tree representation of this element.
static std::map< unsigned, DenseMatrix< int > > Father_bound
Coincidence between son nodal points and father boundaries: Father_bound[node_1d](jnod_son,son_type) = {L/R/OMEGA}.