ExaDG
Loading...
Searching...
No Matches
material.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_MATERIAL_MATERIAL_H_
23#define EXADG_STRUCTURE_MATERIAL_MATERIAL_H_
24
25// deal.II
26#include <deal.II/base/tensor.h>
27#include <deal.II/base/vectorization.h>
28
29// ExaDG
30#include <exadg/structure/material/material_data.h>
31
32namespace ExaDG
33{
34namespace Structure
35{
36template<int dim, typename Number>
38{
39public:
40 typedef dealii::LinearAlgebra::distributed::Vector<Number> VectorType;
41 typedef std::pair<unsigned int, unsigned int> Range;
42 typedef CellIntegrator<dim, dim, Number> IntegratorCell;
43
44 typedef dealii::VectorizedArray<Number> scalar;
45 typedef dealii::Tensor<2, dim, dealii::VectorizedArray<Number>> tensor;
46 typedef dealii::SymmetricTensor<2, dim, dealii::VectorizedArray<Number>> symmetric_tensor;
47
48 virtual ~Material()
49 {
50 }
51
52 /*
53 * Evaluate 2nd Piola-Kirchhoff stress tensor given the gradient of the displacement field
54 * with respect to the reference configuration (not to be confused with the deformation gradient).
55 */
56 virtual symmetric_tensor
57 second_piola_kirchhoff_stress(tensor const & gradient_displacement,
58 unsigned int const cell,
59 unsigned int const q) const = 0;
60
61 /*
62 * Evaluate the directional derivative with respect to the displacement of the 2nd Piola-Kirchhoff
63 * stress tensor given gradient of the displacment increment with respect to the reference
64 * configuration `gradient_increment` and deformation gradient at the current linearization point
65 * `deformation_gradient`.
66 */
67 virtual symmetric_tensor
68 second_piola_kirchhoff_stress_displacement_derivative(tensor const & gradient_increment,
69 tensor const & deformation_gradient,
70 unsigned int const cell,
71 unsigned int const q) const = 0;
72};
73
74} // namespace Structure
75} // namespace ExaDG
76
77#endif /* EXADG_STRUCTURE_MATERIAL_MATERIAL_H_ */
Definition material.h:38
Definition driver.cpp:33