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 INCLUDE_EXADG_STRUCTURE_MATERIAL_MATERIAL_H_
23#define INCLUDE_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 virtual ~Material()
41 {
42 }
43
44 /*
45 * Evaluate 2nd Piola-Kirchhoff stress tensor given the gradient of the displacement field
46 * with respect to the reference configuration (not to be confused with the deformation gradient).
47 */
48 virtual dealii::Tensor<2, dim, dealii::VectorizedArray<Number>>
49 second_piola_kirchhoff_stress(
50 dealii::Tensor<2, dim, dealii::VectorizedArray<Number>> const & gradient_displacement,
51 unsigned int const cell,
52 unsigned int const q) const = 0;
53
54 /*
55 * Evaluate the directional derivative with respect to the displacement of the 2nd Piola-Kirchhoff
56 * stress tensor given gradient of the displacment increment with respect to the reference
57 * configuration "gradient_increment" and deformation gradient at the current linearization point
58 * "deformation_gradient".
59 */
60 virtual dealii::Tensor<2, dim, dealii::VectorizedArray<Number>>
61 second_piola_kirchhoff_stress_displacement_derivative(
62 dealii::Tensor<2, dim, dealii::VectorizedArray<Number>> const & gradient_increment,
63 dealii::Tensor<2, dim, dealii::VectorizedArray<Number>> const & deformation_gradient,
64 unsigned int const cell,
65 unsigned int const q) const = 0;
66};
67
68} // namespace Structure
69} // namespace ExaDG
70
71#endif
Definition material.h:38
Definition driver.cpp:33