suanPan
NonviscousNewmark.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 ******************************************************************************/
33#ifndef NONVISCOUSNEWMARK_H
34#define NONVISCOUSNEWMARK_H
35
36#include "Newmark.h"
37
38class NonviscousNewmark : public Newmark {
39 const cx_vec m, s;
40
41 cx_vec s_para, m_para;
42
43 double accu_para{0.};
44
45 cx_mat current_damping;
46
47public:
48 explicit NonviscousNewmark(unsigned, double, double, cx_vec&&, cx_vec&&);
49
50 int initialize() override;
51
52 void assemble_resistance() override;
53 void assemble_matrix() override;
54
55 void update_parameter(double) override;
56
57 void commit_status() override;
58 void clear_status() override;
59
60 void print() override;
61};
62
63#endif
64
A Newmark class defines a solver using Newmark algorithm.
Definition: Newmark.h:45
A NonviscousNewmark class defines a solver using Newmark algorithm.
Definition: NonviscousNewmark.h:38
void update_parameter(double) override
Definition: NonviscousNewmark.cpp:59
void print() override
Definition: NonviscousNewmark.cpp:82
void commit_status() override
Definition: NonviscousNewmark.cpp:68
void assemble_resistance() override
Definition: NonviscousNewmark.cpp:35
void assemble_matrix() override
Definition: NonviscousNewmark.cpp:47
void clear_status() override
Definition: NonviscousNewmark.cpp:77
NonviscousNewmark(unsigned, double, double, cx_vec &&, cx_vec &&)
Definition: NonviscousNewmark.cpp:22
int initialize() override
Definition: NonviscousNewmark.cpp:27