suanPan
Loading...
Searching...
No Matches
Homogeneous.h
Go to the documentation of this file.
1/*******************************************************************************
2 * Copyright (C) 2017-2025 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
31#include <Material/Material.h>
34
35class Homogeneous final : public SectionShell {
36 const unsigned num_ip;
37 const double thickness;
38
39 struct IntegrationPoint final {
40 const double eccentricity, factor;
41 ResourceHolder<Material> s_material;
42 IntegrationPoint(double, double, unique_ptr<Material>&&);
43 };
44
45 std::vector<IntegrationPoint> int_pt;
46
47public:
49 unsigned, // unique tag
50 unsigned, // material tag
51 double, // thickness
52 unsigned = 5 // number of IPs
53 );
54
55 int initialize(const shared_ptr<DomainBase>&) override;
56
57 unique_ptr<SectionShell> get_copy() override;
58
59 int update_trial_status(const vec&, const vec&) override;
60
61 int clear_status() override;
62 int commit_status() override;
63 int reset_status() override;
64};
65
66#endif
67
A Homogeneous class.
Definition Homogeneous.h:35
int reset_status() override
Definition Homogeneous.cpp:109
int update_trial_status(const vec &, const vec &) override
Definition Homogeneous.cpp:61
unique_ptr< SectionShell > get_copy() override
Definition Homogeneous.cpp:59
int commit_status() override
Definition Homogeneous.cpp:95
int clear_status() override
Definition Homogeneous.cpp:81
int initialize(const shared_ptr< DomainBase > &) override
Definition Homogeneous.cpp:34
Definition ResourceHolder.h:32
A SectionShell class.
Definition SectionShell.h:65