libMesh
fe_compute_data.h
Go to the documentation of this file.
1 // The libMesh Finite Element Library.
2 // Copyright (C) 2002-2017 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
3 
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License, or (at your option) any later version.
8 
9 // This library is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
13 
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 
18 
19 #ifndef LIBMESH_FE_COMPUTE_DATA_H
20 #define LIBMESH_FE_COMPUTE_DATA_H
21 
22 // Local includes
23 #include "libmesh/libmesh.h"
24 
25 // C++ includes
26 #include <vector>
27 
28 namespace libMesh
29 {
30 
31 // Forward declarations
32 class EquationSystems;
33 class Point;
34 
51 {
52 public:
58  const Point & pin) :
59  equation_systems(es),
60  p(pin)
61  {
62  this->clear();
63  }
64 
70 
74  const Point & p;
75 
79  std::vector<Number> shape;
80 
81 
82 #if defined(LIBMESH_ENABLE_INFINITE_ELEMENTS) && !defined(LIBMESH_USE_COMPLEX_NUMBERS)
83 
87 #endif
88 
89 #ifdef LIBMESH_ENABLE_INFINITE_ELEMENTS
90 
94 #endif
95 
96 #if defined LIBMESH_ENABLE_INFINITE_ELEMENTS && defined(LIBMESH_USE_COMPLEX_NUMBERS)
97 
103 #endif
104 
108  void clear ();
109 
114  void init ();
115 };
116 
117 
118 } // namespace libMesh
119 
120 #endif // LIBMESH_FE_COMPUTE_DATA_H
FEComputeData(const EquationSystems &es, const Point &pin)
Constructor.
This is the EquationSystems class.
const EquationSystems & equation_systems
Const reference to the EquationSystems object that contains simulation-specific data.
class FEComputeData hides arbitrary data to be passed to and from children of FEBase through the FEIn...
const Point & p
Holds the point where the data are to be computed.
Real phase
Storage for the computed phase lag.
The libMesh namespace provides an interface to certain functionality in the library.
Real speed
The wave speed.
void clear()
Clears the output data completely.
void init()
Inits the output data to default values, provided the fields are correctly resized.
Number frequency
The frequency to evaluate shape functions including the wave number depending terms.
std::vector< Number > shape
Storage for the computed shape function values.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
A Point defines a location in LIBMESH_DIM dimensional Real space.
Definition: point.h:38