suanPan
Loading...
Searching...
No Matches
Load.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 ******************************************************************************/
32#ifndef LOAD_H
33#define LOAD_H
34
36
37class Load : public ConditionalModifier {
38protected:
39 static double multiplier;
40
41 const bool mpdc_flag = false;
42
43 const double pattern;
44
47
48 friend void set_load_multiplier(double);
49
50public:
51 Load(unsigned, // tag
52 unsigned, // step tag
53 unsigned, // amplitude tag
54 uvec&&, // node tag
55 uvec&&, // dof tag
56 double // nominal magnitude
57 );
58 Load(const Load&) = delete; // copy forbidden
59 Load(Load&&) = delete; // move forbidden
60 Load& operator=(const Load&) = delete; // assign forbidden
61 Load& operator=(Load&&) = delete; // assign forbidden
62
63 ~Load() override = default;
64
65 void enable_displacement_control() const;
66 [[nodiscard]] bool if_displacement_control() const;
67
68 [[nodiscard]] const vec& get_trial_load() const;
69 [[nodiscard]] const vec& get_trial_settlement() const;
70};
71
72void set_load_multiplier(double);
73
74class GroupLoad {
75 const uvec groups;
76
77protected:
78 [[nodiscard]] uvec update_object_tag(const shared_ptr<DomainBase>&) const;
79
80public:
81 explicit GroupLoad(uvec&&);
82};
83
84#endif
85
A ConditionalModifier class.
Definition: ConditionalModifier.h:41
Definition: Load.h:74
uvec update_object_tag(const shared_ptr< DomainBase > &) const
Definition: Load.cpp:41
A Load class.
Definition: Load.h:37
const double pattern
Definition: Load.h:43
void enable_displacement_control() const
Definition: Load.cpp:28
Load & operator=(const Load &)=delete
~Load() override=default
Load(const Load &)=delete
Load & operator=(Load &&)=delete
vec trial_settlement
Definition: Load.h:46
bool if_displacement_control() const
Definition: Load.cpp:30
const vec & get_trial_load() const
Definition: Load.cpp:32
const bool mpdc_flag
Definition: Load.h:41
const vec & get_trial_settlement() const
Definition: Load.cpp:34
static double multiplier
Definition: Load.h:39
friend void set_load_multiplier(double)
Definition: Load.cpp:36
vec trial_load
Definition: Load.h:45
Load(Load &&)=delete
void set_load_multiplier(double)
Definition: Load.cpp:36