suanPan
Homogeneous.h
Go to the documentation of this file.
1/*******************************************************************************
2 * Copyright (C) 2017-2024 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 HOMOGENEOUS_H
29#define HOMOGENEOUS_H
30
32
33class Homogeneous final : public SectionShell {
34 const unsigned num_ip;
35 const double thickness;
36
37 struct IntegrationPoint final {
38 const double eccentricity, factor;
39 unique_ptr<Material> s_material;
40 IntegrationPoint(double, double, unique_ptr<Material>&&);
41 IntegrationPoint(const IntegrationPoint&);
42 IntegrationPoint(IntegrationPoint&&) noexcept = default;
43 IntegrationPoint& operator=(const IntegrationPoint&) = delete;
44 IntegrationPoint& operator=(IntegrationPoint&&) noexcept = delete;
45 ~IntegrationPoint() = default;
46 };
47
48 vector<IntegrationPoint> int_pt;
49
50public:
52 unsigned, // unique tag
53 unsigned, // material tag
54 double, // thickness
55 unsigned = 5 // number of IPs
56 );
57
58 int initialize(const shared_ptr<DomainBase>&) override;
59
60 unique_ptr<SectionShell> get_copy() override;
61
62 int update_trial_status(const vec&, const vec&) override;
63
64 int clear_status() override;
65 int commit_status() override;
66 int reset_status() override;
67};
68
69#endif
70
A Homogeneous class.
Definition: Homogeneous.h:33
Homogeneous(unsigned, unsigned, double, unsigned=5)
Definition: Homogeneous.cpp:33
int reset_status() override
Definition: Homogeneous.cpp:113
int update_trial_status(const vec &, const vec &) override
Definition: Homogeneous.cpp:65
unique_ptr< SectionShell > get_copy() override
Definition: Homogeneous.cpp:63
int commit_status() override
Definition: Homogeneous.cpp:99
int clear_status() override
Definition: Homogeneous.cpp:85
int initialize(const shared_ptr< DomainBase > &) override
Definition: Homogeneous.cpp:38
A SectionShell class.
Definition: SectionShell.h:68
SectionShell & operator=(const SectionShell &)=delete
const vec eccentricity
Definition: SectionShell.h:43