suanPan
GeneralizedAlpha.h
Go to the documentation of this file.
1/*******************************************************************************
2 * Copyright (C) 2017-2024 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
52public:
53 GeneralizedAlpha(unsigned, double);
54 GeneralizedAlpha(unsigned, double, double);
55
56 void assemble_resistance() override;
57 void assemble_matrix() override;
58
59 vec get_force_residual() override;
60 vec get_displacement_residual() override;
61 sp_mat get_reference_load() override;
62
63 [[nodiscard]] int process_load() override;
64 [[nodiscard]] int process_constraint() override;
65 [[nodiscard]] int process_load_resistance() override;
66 [[nodiscard]] int process_constraint_resistance() override;
67
68 int update_trial_status() override;
69
70 void update_parameter(double) override;
71
72 vec from_incre_velocity(const vec&, const uvec&) override;
73 vec from_incre_acceleration(const vec&, const uvec&) override;
74
75 void print() override;
76};
77
78#endif
79
A GeneralizedAlpha class defines a solver using GeneralizedAlpha algorithm.
Definition: GeneralizedAlpha.h:42
GeneralizedAlpha(unsigned, double)
Definition: GeneralizedAlpha.cpp:22
void assemble_resistance() override
Definition: GeneralizedAlpha.cpp:49
void update_parameter(double) override
Definition: GeneralizedAlpha.cpp:169
sp_mat get_reference_load() override
Definition: GeneralizedAlpha.cpp:93
int process_load_resistance() override
Definition: GeneralizedAlpha.cpp:127
vec from_incre_velocity(const vec &, const uvec &) override
Definition: GeneralizedAlpha.cpp:180
vec get_force_residual() override
Definition: GeneralizedAlpha.cpp:89
int process_constraint_resistance() override
Definition: GeneralizedAlpha.cpp:143
int process_constraint() override
Definition: GeneralizedAlpha.cpp:111
vec get_displacement_residual() override
Definition: GeneralizedAlpha.cpp:91
void assemble_matrix() override
Definition: GeneralizedAlpha.cpp:66
int process_load() override
Definition: GeneralizedAlpha.cpp:95
vec from_incre_acceleration(const vec &, const uvec &) override
Definition: GeneralizedAlpha.cpp:186
void print() override
Definition: GeneralizedAlpha.cpp:192
int update_trial_status() override
Definition: GeneralizedAlpha.cpp:159
Definition: Integrator.h:149