suanPan
Degradation.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  ******************************************************************************/
29 #ifndef DEGRADATION_H
30 #define DEGRADATION_H
31 
33 
34 class Degradation : public Material1D {
35  const unsigned mat_tag;
36 
37  unique_ptr<Material> base;
38 
39  [[nodiscard]] virtual podarray<double> compute_degradation(double) const = 0;
40 
41 public:
42  Degradation(unsigned, // tag
43  unsigned // material tag
44  );
45  Degradation(const Degradation&);
46  Degradation(Degradation&&) noexcept = delete;
47  Degradation& operator=(const Degradation&) = delete;
48  Degradation& operator=(Degradation&&) noexcept = delete;
49  ~Degradation() override = default;
50 
51  int initialize(const shared_ptr<DomainBase>&) override;
52 
53  int update_trial_status(const vec&) override;
54 
55  int clear_status() override;
56  int commit_status() override;
57  int reset_status() override;
58 };
59 
60 #endif
61 
The Degradation class.
Definition: Degradation.h:34
Degradation(Degradation &&) noexcept=delete
int commit_status() override
Definition: Degradation.cpp:70
int reset_status() override
Definition: Degradation.cpp:77
int initialize(const shared_ptr< DomainBase > &) override
Definition: Degradation.cpp:30
int clear_status() override
Definition: Degradation.cpp:63
Degradation(unsigned, unsigned)
Definition: Degradation.cpp:21
int update_trial_status(const vec &) override
Definition: Degradation.cpp:45
The DomainBase class is a template.
Definition: DomainBase.h:96
A Material1D class.
Definition: Material1D.h:36