26 #ifndef OOMPH_TUBE_MESH_HEADER
27 #define OOMPH_TUBE_MESH_HEADER
30 #include "../generic/refineable_brick_mesh.h"
31 #include "../generic/macro_element.h"
32 #include "../generic/domain.h"
33 #include "../generic/algebraic_elements.h"
34 #include "../generic/brick_mesh.h"
35 #include "../generic/macro_element_node_update_element.h"
55 template<
class ELEMENT>
70 const unsigned& nlayer,
123 template<
class ELEMENT>
142 const unsigned& nlayer,
152 for (
unsigned ielem = 0; ielem < TubeMesh<ELEMENT>::nelement(); ielem++)
163 for (
unsigned iel = 0; iel < TubeMesh<ELEMENT>::nelement(); iel++)
166 ELEMENT* ref_el_pt =
dynamic_cast<ELEMENT*
>(el_pt);
168 trees_pt.push_back(octree_root_pt);
174 unsigned success_flag =
176 if (success_flag == 0)
178 oomph_info <<
"Successfully built octree forest " << std::endl;
183 OOMPH_CURRENT_FUNCTION,
184 OOMPH_EXCEPTION_LOCATION);
//////////////////////////////////////////////////////////////////////// ////////////////////////////...
MacroElement * macro_element_pt(const unsigned &i)
Access to i-th macro element.
A general Finite Element class.
/////////////////////////////////////////////////////////////////////
static Steady< 0 > Default_TimeStepper
Default Steady Timestepper, to be used in default arguments to Mesh constructors.
FiniteElement * finite_element_pt(const unsigned &e) const
Upcast (downcast?) to FiniteElement (needed to access FiniteElement member functions).
const Vector< GeneralisedElement * > & element_pt() const
Return reference to the Vector of elements.
unsigned self_test()
Self-test: Check elements and nodes. Return 0 for OK.
/////////////////////////////////////////////////////////////////////// /////////////////////////////...
OcTreeRoot is a OcTree that forms the root of a (recursive) octree. The "root node" is special as it ...
An OomphLibError object which should be thrown when an run-time error is encountered....
Intermediate mesh class that implements the mesh adaptation functions specified in the TreeBasedRefin...
Refineable version of QElement<3,NNODE_1D>.
///////////////////////////////////////////////////////////////// ///////////////////////////////////...
RefineableTubeMesh(GeomObject *wall_pt, const Vector< double > ¢reline_limits, const Vector< double > &theta_positions, const Vector< double > &radius_box, const unsigned &nlayer, TimeStepper *time_stepper_pt=&Mesh::Default_TimeStepper)
Constructor for adaptive deformable quarter tube mesh class. Pass pointer to geometric object that sp...
virtual ~RefineableTubeMesh()
Destructor: empty.
////////////////////////////////////////////////////////////////////// //////////////////////////////...
TreeForest * Forest_pt
Forest representation of the mesh.
Tube as a domain. The entire domain must be defined by a GeomObject with the following convention: ze...
3D tube mesh class. The domain is specified by the GeomObject that identifies the entire volume....
GeomObject *& volume_pt()
Access function to GeomObject representing wall.
TubeDomain * domain_pt() const
Access function to underlying domain.
GeomObject * Volume_pt
Pointer to the geometric object that represents the curved wall.
TubeMesh(GeomObject *wall_pt, const Vector< double > ¢reline_limits, const Vector< double > &theta_positions, const Vector< double > &radius_box, const unsigned &nlayer, TimeStepper *time_stepper_pt=&Mesh::Default_TimeStepper)
Constructor: Pass pointer to geometric object that specifies the volume, start and end coordinates fo...
TubeDomain * domain_pt()
Access function to domain.
TubeDomain * Domain_pt
Pointer to domain.
virtual ~TubeMesh()
Destructor: empty.
//////////////////////////////////////////////////////////////////// ////////////////////////////////...
OomphInfo oomph_info
Single (global) instantiation of the OomphInfo object – this is used throughout the library as a "rep...