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<2, dim, dealii::VectorizedArray<Number>> tensor;
43
44 /*
45 * Calculates the integral
46 *
47 * (v_h, factor * d_h)_Omega + (grad(v_h), sigma_h)_Omega
48 *
49 * with
50 *
51 * sigma_h = C : eps_h, eps_h = grad(d_h)
52 *
53 * where
54 *
55 * d_h denotes the displacement vector.
56 */
57 void
58 do_cell_integral(IntegratorCell & integrator) const override;
59
60 /*
61 * Computes Neumann BC integral
62 *
63 * - (v_h, t)_{Gamma_N}
64 */
65 void
66 do_boundary_integral_continuous(IntegratorFace & integrator_m,
67 dealii::types::boundary_id const & boundary_id) const override;
68};
69
70} // namespace Structure
71} // namespace ExaDG
72
73#endif /* EXADG_STRUCTURE_SPATIAL_DISCRETIZATION_OPERATORS_LINEAR_OPERATOR_H_ */
Definition linear_operator.h:34
Definition driver.cpp:33