refineable_spectral_poisson_elements.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 // Header file for refineable QSpectralPoissonElement elements
27 
28 #ifndef OOMPH_REFINEABLE_SPECTRAL_POISSON_ELEMENTS_HEADER
29 #define OOMPH_REFINEABLE_SPECTRAL_POISSON_ELEMENTS_HEADER
30 
31 // Config header generated by autoconfig
32 #ifdef HAVE_CONFIG_H
33 #include <oomph-lib-config.h>
34 #endif
35 
36 
37 // oomph-lib headers
39 #include "../generic/refineable_line_spectral_element.h"
40 #include "../generic/refineable_quad_spectral_element.h"
41 #include "../generic/refineable_brick_spectral_element.h"
42 
43 namespace oomph
44 {
45  //======================================================================
49  //======================================================================
50  template<unsigned DIM, unsigned NNODE_1D>
52  : public QSpectralPoissonElement<DIM, NNODE_1D>,
53  public virtual RefineablePoissonEquations<DIM>,
54  public virtual RefineableQSpectralElement<DIM>
55  {
56  public:
63  QSpectralPoissonElement<DIM, NNODE_1D>()
64  {
65  }
66 
67 
71 
73  // Commented out broken assignment operator because this can lead to a
74  // conflict warning when used in the virtual inheritence hierarchy.
75  // Essentially the compiler doesn't realise that two separate
76  // implementations of the broken function are the same and so, quite
77  // rightly, it shouts.
78  /*void operator=(const RefineableQSpectralPoissonElement<DIM,NNODE_1D>&) =
79  * delete;*/
80 
82  unsigned ncont_interpolated_values() const
83  {
84  return 1;
85  }
86 
88  unsigned nvertex_node() const
89  {
91  }
92 
94  Node* vertex_node_pt(const unsigned& j) const
95  {
97  }
98 
99  void assign_all_generic_local_eqn_numbers(const bool& store_local_dof_pt)
100  {
102  store_local_dof_pt);
103  }
104 
113  void describe_local_dofs(std::ostream& out,
114  const std::string& current_string) const
115  {
117  }
118 
121  unsigned nrecovery_order()
122  {
123  if (NNODE_1D < 4)
124  {
125  return (NNODE_1D - 1);
126  }
127  else
128  {
129  return 3;
130  }
131  }
132 
136  };
137 
138 
139  //=======================================================================
144  //=======================================================================
145  template<unsigned DIM, unsigned NNODE_1D>
147  : public virtual QSpectralElement<DIM - 1, NNODE_1D>
148  {
149  public:
152  FaceGeometry() : QSpectralElement<DIM - 1, NNODE_1D>() {}
153  };
154 
155 } // namespace oomph
156 
157 
158 #endif
FaceGeometry()
Definition: refineable_spectral_poisson_elements.h:152
Definition: elements.h:4998
virtual void describe_local_dofs(std::ostream &out, const std::string &current_string) const
Definition: elements.cc:1709
virtual unsigned nvertex_node() const
Definition: elements.h:2491
virtual void assign_all_generic_local_eqn_numbers(const bool &store_local_dof_pt)
Definition: elements.h:2164
virtual Node * vertex_node_pt(const unsigned &j) const
Definition: elements.h:2500
Definition: nodes.h:906
Definition: Qspectral_elements.h:363
Definition: spectral_poisson_elements.h:52
Definition: refineable_elements.h:97
Definition: refineable_poisson_elements.h:59
Definition: Qelements.h:2259
Definition: Qspectral_elements.h:1323
Definition: refineable_spectral_poisson_elements.h:55
unsigned nvertex_node() const
Number of vertex nodes in the element.
Definition: refineable_spectral_poisson_elements.h:88
unsigned ncont_interpolated_values() const
Broken assignment operator.
Definition: refineable_spectral_poisson_elements.h:82
unsigned nrecovery_order()
Definition: refineable_spectral_poisson_elements.h:121
Node * vertex_node_pt(const unsigned &j) const
Pointer to the j-th vertex node in the element.
Definition: refineable_spectral_poisson_elements.h:94
void further_setup_hanging_nodes()
Definition: refineable_spectral_poisson_elements.h:135
RefineableQSpectralPoissonElement()
Definition: refineable_spectral_poisson_elements.h:59
void describe_local_dofs(std::ostream &out, const std::string &current_string) const
Definition: refineable_spectral_poisson_elements.h:113
void assign_all_generic_local_eqn_numbers(const bool &store_local_dof_pt)
Definition: refineable_spectral_poisson_elements.h:99
RefineableQSpectralPoissonElement(const RefineableQSpectralPoissonElement< DIM, NNODE_1D > &dummy)=delete
Broken copy constructor.
#define DIM
Definition: linearised_navier_stokes_elements.h:44
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286
DRAIG: Change all instances of (SPATIAL_DIM) to (DIM-1).
Definition: AnisotropicHookean.h:10
std::ofstream out("Result.txt")
std::ptrdiff_t j
Definition: tut_arithmetic_redux_minmax.cpp:2