extruded_domain.h
Go to the documentation of this file.
1 // LIC// ====================================================================
2 // LIC// This file forms part of oomph-lib, the object-oriented,
3 // LIC// multi-physics finite-element library, available
4 // LIC// at http://www.oomph-lib.org.
5 // LIC//
6 // LIC// Copyright (C) 2006-2022 Matthias Heil and Andrew Hazel
7 // LIC//
8 // LIC// This library is free software; you can redistribute it and/or
9 // LIC// modify it under the terms of the GNU Lesser General Public
10 // LIC// License as published by the Free Software Foundation; either
11 // LIC// version 2.1 of the License, or (at your option) any later version.
12 // LIC//
13 // LIC// This library is distributed in the hope that it will be useful,
14 // LIC// but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // LIC// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // LIC// Lesser General Public License for more details.
17 // LIC//
18 // LIC// You should have received a copy of the GNU Lesser General Public
19 // LIC// License along with this library; if not, write to the Free Software
20 // LIC// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 // LIC// 02110-1301 USA.
22 // LIC//
23 // LIC// The authors may be contacted at oomph-lib@maths.man.ac.uk.
24 // LIC//
25 // LIC//====================================================================
26 #ifndef OOMPH_EXTRUDED_DOMAIN_HEADER
27 #define OOMPH_EXTRUDED_DOMAIN_HEADER
28 
29 // Config header generated by autoconfig
30 #ifdef HAVE_CONFIG_H
31 #include <oomph-lib-config.h>
32 #endif
33 
34 // oomph-lib headers
35 #include "domain.h"
36 // #include "extruded_macro_element.h"
37 
38 namespace oomph
39 {
40  // Forward declaration of the extruded macro element class
41  class ExtrudedMacroElement;
42 
43  //=================================================================
56  //=================================================================
57  class ExtrudedDomain : public virtual Domain
58  {
59  public:
61  ExtrudedDomain(Domain* domain_pt,
62  const unsigned& n_extruded_element,
63  const double& extrusion_length);
64 
66  ExtrudedDomain(Domain* domain_pt,
67  const unsigned& n_extruded_element,
68  const double& t_min,
69  const double& t_max);
70 
73 
75  ExtrudedDomain(const ExtrudedDomain&) = delete;
76 
78  void operator=(const ExtrudedDomain&) = delete;
79 
81  ExtrudedMacroElement* macro_element_pt(const unsigned& i);
82 
84  unsigned nmacro_element();
85 
93  void macro_element_boundary(const unsigned& time,
94  const unsigned& i_macro,
95  const unsigned& i_direct,
96  const Vector<double>& s,
97  Vector<double>& x);
98 
99  private:
102 
103  // The number of elements to create in the extrusion direction
105 
107  double T_min;
108 
110  double T_max;
111  };
112 } // End of namespace oomph
113 
114 #endif
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Definition: domain.h:67
Definition: extruded_domain.h:58
void macro_element_boundary(const unsigned &time, const unsigned &i_macro, const unsigned &i_direct, const Vector< double > &s, Vector< double > &x)
Definition: extruded_domain.cc:148
double T_max
The maximum t-value.
Definition: extruded_domain.h:110
~ExtrudedDomain()
Destructor: Empty; the extruded macro elements will be deleted in Domain.
Definition: extruded_domain.h:72
ExtrudedDomain(Domain *domain_pt, const unsigned &n_extruded_element, const double &extrusion_length)
Constructor.
Definition: extruded_domain.cc:35
unsigned N_extruded_element
Definition: extruded_domain.h:104
unsigned nmacro_element()
Number of macro elements in domain.
Definition: extruded_domain.cc:122
ExtrudedMacroElement * macro_element_pt(const unsigned &i)
Access to i-th extruded macro element.
Definition: extruded_domain.cc:132
ExtrudedDomain(const ExtrudedDomain &)=delete
Broken copy constructor.
Domain * Domain_pt
Pointer to the Domain.
Definition: extruded_domain.h:101
double T_min
The minimum t-value (defaults to 0.0 if not specified)
Definition: extruded_domain.h:107
void operator=(const ExtrudedDomain &)=delete
Broken assignment operator.
Definition: extruded_macro_element.h:59
RealScalar s
Definition: level1_cplx_impl.h:130
DRAIG: Change all instances of (SPATIAL_DIM) to (DIM-1).
Definition: AnisotropicHookean.h:10
list x
Definition: plotDoE.py:28