ExaDG
Loading...
Searching...
No Matches
linear_operator.h
1/* ______________________________________________________________________
2 *
3 * ExaDG - High-Order Discontinuous Galerkin for the Exa-Scale
4 *
5 * Copyright (C) 2021 by the ExaDG authors
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <https://www.gnu.org/licenses/>.
19 * ______________________________________________________________________
20 */
21
22#ifndef EXADG_STRUCTURE_SPATIAL_DISCRETIZATION_OPERATORS_LINEAR_OPERATOR_H_
23#define EXADG_STRUCTURE_SPATIAL_DISCRETIZATION_OPERATORS_LINEAR_OPERATOR_H_
24
25// ExaDG
26#include <exadg/structure/spatial_discretization/operators/elasticity_operator_base.h>
27
28namespace ExaDG
29{
30namespace Structure
31{
32template<int dim, typename Number>
33class LinearOperator : public ElasticityOperatorBase<dim, Number>
34{
35private:
36 typedef ElasticityOperatorBase<dim, Number> Base;
37
38 typedef typename Base::VectorType VectorType;
39 typedef typename Base::IntegratorCell IntegratorCell;
40 typedef typename Base::IntegratorFace IntegratorFace;
41
42 typedef dealii::Tensor<1, dim, dealii::VectorizedArray<Number>> vector;
43 typedef dealii::SymmetricTensor<2, dim, dealii::VectorizedArray<Number>> symmetric_tensor;
44
45 /*
46 * Calculates the integral
47 *
48 * (v_h, factor * d_h)_Omega + (grad(v_h), sigma_h)_Omega
49 *
50 * with
51 *
52 * sigma_h = C : eps_h, eps_h = grad(d_h)
53 *
54 * where
55 *
56 * d_h denotes the displacement vector.
57 */
58 void
59 do_cell_integral(IntegratorCell & integrator) const final;
60
61 /*
62 * Computes the linear Neumann boundary term
63 *
64 * - (v_h, t)_{Gamma_N}
65 */
66 void
67 do_boundary_integral_continuous(IntegratorFace & integrator,
68 OperatorType const & operator_type,
69 dealii::types::boundary_id const & boundary_id) const final;
70};
71
72} // namespace Structure
73} // namespace ExaDG
74
75#endif /* EXADG_STRUCTURE_SPATIAL_DISCRETIZATION_OPERATORS_LINEAR_OPERATOR_H_ */
Definition linear_operator.h:34
Definition driver.cpp:33