suanPan
Viscosity01.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright (C) 2017-2023 Theodore Chang
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  ******************************************************************************/
28 #ifndef VISCOSITY01_H
29 #define VISCOSITY01_H
30 
31 #include "NonlinearViscosity.h"
32 
34  const double damping;
35 };
36 
38  [[nodiscard]] double compute_du(double, double) const override;
39  [[nodiscard]] double compute_dv(double, double) const override;
40  [[nodiscard]] double compute_damping_coefficient(double, double) const override;
41 
42 public:
43  Viscosity01(unsigned, // tag
44  double, // alpha
45  double, // damp coefficient
46  double // cut-off
47  );
48 
49  unique_ptr<Material> get_copy() override;
50 };
51 
52 #endif
53 
A 1D Viscosity class.
Definition: NonlinearViscosity.h:40
A 1D Elastic class.
Definition: Viscosity01.h:37
Viscosity01(unsigned, double, double, double)
Definition: Viscosity01.cpp:26
unique_ptr< Material > get_copy() override
Definition: Viscosity01.cpp:30
Definition: Viscosity01.h:33
const double damping
Definition: Viscosity01.h:34