suanPan
Loading...
Searching...
No Matches
GSSE.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 GSSE_H
33#define GSSE_H
34
35#include "../Integrator.h"
36
37class GSSE : public ExplicitIntegrator {
38 double DT{0.};
39
40 const double C;
41 const double UA0, VA0;
42 const double UB, VB, AB;
43
44protected:
45 void update_parameter(double) override;
46
47 [[nodiscard]] int process_load_impl(bool) override;
48 [[nodiscard]] int process_constraint_impl(bool) override;
49
50 [[nodiscard]] bool has_corrector() const override;
51
52 int correct_trial_status() override;
53
54public:
55 GSSE(unsigned, double, double);
56 GSSE(unsigned, double);
57
58 int update_trial_status(bool) override;
59
60 vec from_incre_acceleration(const vec&, const uvec&) override;
61 vec from_total_acceleration(const vec&, const uvec&) override;
62
63 void print() override;
64};
65
66class ICL final : public GSSE {
67public:
68 ICL(unsigned, double);
69};
70
71#endif
72
Definition Integrator.h:157
General explicit integration.
Definition GSSE.h:37
vec from_incre_acceleration(const vec &, const uvec &) override
Definition GSSE.cpp:88
vec from_total_acceleration(const vec &, const uvec &) override
Definition GSSE.cpp:90
void print() override
Definition GSSE.cpp:92
void update_parameter(double) override
Definition GSSE.cpp:23
int correct_trial_status() override
Definition GSSE.cpp:55
int process_load_impl(bool) override
Definition GSSE.cpp:25
int process_constraint_impl(bool) override
Definition GSSE.cpp:39
bool has_corrector() const override
Definition GSSE.cpp:53
int update_trial_status(bool) override
Definition GSSE.cpp:78
Definition GSSE.h:66