suanPan
Loading...
Searching...
No Matches
Load.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 ******************************************************************************/
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
48
49 friend void set_load_multiplier(double);
50
51public:
52 Load(
53 unsigned, // tag
54 unsigned, // amplitude tag
55 uvec&&, // node tag
56 uvec&&, // dof tag
57 double // nominal magnitude
58 );
59
60 void enable_displacement_control() const;
61 [[nodiscard]] bool if_displacement_control() const;
62
63 [[nodiscard]] const vec& get_trial_load() const;
64 [[nodiscard]] const vec& get_trial_settlement() const;
65 [[nodiscard]] const sp_vec& get_reference_load() const;
66};
67
68void set_load_multiplier(double);
69
70class GroupLoad {
71 const uvec groups;
72
73protected:
74 [[nodiscard]] uvec update_object_tag(const shared_ptr<DomainBase>&) const;
75
76public:
77 explicit GroupLoad(uvec&&);
78};
79
80#endif
81
A ConditionalModifier class.
Definition ConditionalModifier.h:42
Definition Load.h:70
uvec update_object_tag(const shared_ptr< DomainBase > &) const
Definition Load.cpp:44
A Load class.
Definition Load.h:37
const double pattern
Definition Load.h:43
void enable_displacement_control() const
Definition Load.cpp:29
sp_vec reference_load
Definition Load.h:47
const sp_vec & get_reference_load() const
Definition Load.cpp:37
vec trial_settlement
Definition Load.h:46
bool if_displacement_control() const
Definition Load.cpp:31
const vec & get_trial_load() const
Definition Load.cpp:33
const bool mpdc_flag
Definition Load.h:41
const vec & get_trial_settlement() const
Definition Load.cpp:35
static double multiplier
Definition Load.h:39
friend void set_load_multiplier(double)
Definition Load.cpp:39
vec trial_load
Definition Load.h:45
void set_load_multiplier(double)
Definition Load.cpp:39