suanPan
🧮 An Open Source, Parallel and Heterogeneous Finite Element Analysis Framework
Loading...
Searching...
No Matches
Load.h
Go to the documentation of this file.
1/*******************************************************************************
2 * Copyright (C) 2017-2026 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 {
38 static double multiplier;
39
40protected:
41 const double magnitude;
42
46
47 friend void set_load_multiplier(double);
48
49public:
50 Load(
51 unsigned, // tag
52 unsigned, // amplitude tag
53 std::vector<Node::DOF>&&, // dof order
54 std::vector<Node::DOF>&&, // dof component (unordered)
55 double // nominal magnitude
56 );
57
58 [[nodiscard]] virtual bool if_displacement_control() const { return false; }
59
60 [[nodiscard]] const vec& get_trial_load() const;
61 [[nodiscard]] const vec& get_trial_settlement() const;
62 [[nodiscard]] const sp_vec& get_reference_load() const;
63};
64
65void set_load_multiplier(double);
66
67#endif
68
Abstract base for node/element-scoped, step-conditional modifiers (constraints and loads).
Definition ConditionalModifier.h:103
A Load class.
Definition Load.h:37
virtual bool if_displacement_control() const
Definition Load.h:58
sp_vec reference_load
Definition Load.h:45
const sp_vec & get_reference_load() const
Definition Load.cpp:30
vec trial_settlement
Definition Load.h:44
const vec & get_trial_load() const
Definition Load.cpp:26
const vec & get_trial_settlement() const
Definition Load.cpp:28
const double magnitude
Definition Load.h:41
friend void set_load_multiplier(double)
Definition Load.cpp:32
vec trial_load
Definition Load.h:43
void set_load_multiplier(double)
Definition Load.cpp:32