suanPan
GeneralizedAlphaExplicit.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 ******************************************************************************/
29#ifndef GENERALIZEDALPHAEXPLICIT_H
30#define GENERALIZEDALPHAEXPLICIT_H
31
32#include "Integrator.h"
33
35 const double B, AM, AF;
36 double DT{0.};
37
38public:
39 GeneralizedAlphaExplicit(unsigned, double);
40
41 [[nodiscard]] bool has_corrector() const override;
42
43 void assemble_resistance() override;
44 void assemble_matrix() override;
45
46 vec get_force_residual() override;
47 vec get_displacement_residual() override;
48 sp_mat get_reference_load() override;
49
50 [[nodiscard]] int process_load() override;
51 [[nodiscard]] int process_constraint() override;
52 [[nodiscard]] int process_load_resistance() override;
53 [[nodiscard]] int process_constraint_resistance() override;
54
55 int update_trial_status() override;
56 int correct_trial_status() override;
57
58 void update_parameter(double) override;
59
60 void print() override;
61};
62
63#endif
64
Definition: Integrator.h:158
A GeneralizedAlphaExplicit class defines a solver using GeneralizedAlphaExplicit algorithm.
Definition: GeneralizedAlphaExplicit.h:34
GeneralizedAlphaExplicit(unsigned, double)
Definition: GeneralizedAlphaExplicit.cpp:22
void print() override
Definition: GeneralizedAlphaExplicit.cpp:140
void assemble_matrix() override
Definition: GeneralizedAlphaExplicit.cpp:47
int process_constraint_resistance() override
Definition: GeneralizedAlphaExplicit.cpp:103
void update_parameter(double) override
Definition: GeneralizedAlphaExplicit.cpp:138
int correct_trial_status() override
Definition: GeneralizedAlphaExplicit.cpp:129
int process_load_resistance() override
Definition: GeneralizedAlphaExplicit.cpp:87
int process_load() override
Definition: GeneralizedAlphaExplicit.cpp:55
sp_mat get_reference_load() override
Definition: GeneralizedAlphaExplicit.cpp:53
vec get_displacement_residual() override
Definition: GeneralizedAlphaExplicit.cpp:51
void assemble_resistance() override
Definition: GeneralizedAlphaExplicit.cpp:30
bool has_corrector() const override
Definition: GeneralizedAlphaExplicit.cpp:28
int process_constraint() override
Definition: GeneralizedAlphaExplicit.cpp:71
vec get_force_residual() override
Definition: GeneralizedAlphaExplicit.cpp:49
int update_trial_status() override
Definition: GeneralizedAlphaExplicit.cpp:119