suanPan
Loading...
Searching...
No Matches
GeneralizedAlpha.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 ******************************************************************************/
37#ifndef GENERALIZEDALPHA_H
38#define GENERALIZEDALPHA_H
39
40#include "../Integrator.h"
41
43 const double alpha_f;
44 const double alpha_m;
45 const double gamma;
46 const double beta;
47
48 const double F1, F2, F3, F4, F9;
49
50 double F5 = 0., F6 = 0., F7 = 0., F8 = 0., F10 = 0., F11 = 0.;
51
52protected:
53 void update_parameter(double) override;
54
55 [[nodiscard]] int process_load_impl(bool) override;
56 [[nodiscard]] int process_constraint_impl(bool) override;
57
58public:
59 GeneralizedAlpha(unsigned, double);
60 GeneralizedAlpha(unsigned, double, double);
61
62 void assemble_resistance() override;
63 void assemble_matrix() override;
64
65 vec get_force_residual() override;
66 vec get_displacement_residual() override;
67 sp_mat get_reference_load() override;
68
69 int update_trial_status(bool) override;
70
71 vec from_incre_velocity(const vec&, const uvec&) override;
72 vec from_incre_acceleration(const vec&, const uvec&) override;
73
74 void print() override;
75};
76
77#endif
78
A GeneralizedAlpha class defines a solver using GeneralizedAlpha algorithm.
Definition GeneralizedAlpha.h:42
int process_load_impl(bool) override
Definition GeneralizedAlpha.cpp:34
void assemble_resistance() override
Definition GeneralizedAlpha.cpp:93
void update_parameter(double) override
Definition GeneralizedAlpha.cpp:23
sp_mat get_reference_load() override
Definition GeneralizedAlpha.cpp:137
vec from_incre_velocity(const vec &, const uvec &) override
Definition GeneralizedAlpha.cpp:149
vec get_force_residual() override
Definition GeneralizedAlpha.cpp:133
vec get_displacement_residual() override
Definition GeneralizedAlpha.cpp:135
void assemble_matrix() override
Definition GeneralizedAlpha.cpp:110
int update_trial_status(bool) override
Definition GeneralizedAlpha.cpp:139
vec from_incre_acceleration(const vec &, const uvec &) override
Definition GeneralizedAlpha.cpp:155
void print() override
Definition GeneralizedAlpha.cpp:161
int process_constraint_impl(bool) override
Definition GeneralizedAlpha.cpp:50
Definition Integrator.h:150