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 INCLUDE_STRUCTURE_SPATIAL_DISCRETIZATION_LINEAR_OPERATOR_H_
23#define INCLUDE_STRUCTURE_SPATIAL_DISCRETIZATION_LINEAR_OPERATOR_H_
24
25#include <exadg/structure/spatial_discretization/operators/elasticity_operator_base.h>
26
27namespace ExaDG
28{
29namespace Structure
30{
31template<int dim, typename Number>
32class LinearOperator : public ElasticityOperatorBase<dim, Number>
33{
34private:
36
37 typedef typename Base::VectorType VectorType;
38 typedef typename Base::IntegratorCell IntegratorCell;
39 typedef typename Base::IntegratorFace IntegratorFace;
40
41 typedef dealii::Tensor<2, dim, dealii::VectorizedArray<Number>> tensor;
42
43 /*
44 * Calculates the integral
45 *
46 * (v_h, factor * d_h)_Omega + (grad(v_h), sigma_h)_Omega
47 *
48 * with
49 *
50 * sigma_h = C : eps_h, eps_h = grad(d_h)
51 *
52 * where
53 *
54 * d_h denotes the displacement vector.
55 */
56 void
57 do_cell_integral(IntegratorCell & integrator) const override;
58
59 /*
60 * Computes Neumann BC integral
61 *
62 * - (v_h, t)_{Gamma_N}
63 */
64 void
65 do_boundary_integral_continuous(IntegratorFace & integrator_m,
66 dealii::types::boundary_id const & boundary_id) const override;
67};
68
69} // namespace Structure
70} // namespace ExaDG
71
72#endif
Definition elasticity_operator_base.h:71
Definition linear_operator.h:33
Definition driver.cpp:33