suanPan
Loading...
Searching...
No Matches
NonviscousNewmark.h
Go to the documentation of this file.
1/*******************************************************************************
2 * Copyright (C) 2017-2023 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 ******************************************************************************/
31#ifndef NONVISCOUSNEWMARK_H
32#define NONVISCOUSNEWMARK_H
33
34#include "Newmark.h"
35
36class NonviscousNewmark : public Newmark {
37 const cx_vec m, s;
38
39 cx_vec s_para, m_para;
40
41 double accu_para{0.};
42
43 cx_mat current_damping;
44
45public:
46 explicit NonviscousNewmark(unsigned, double, double, cx_vec&&, cx_vec&&);
47
48 int initialize() override;
49
50 void assemble_resistance() override;
51 void assemble_matrix() override;
52
53 void update_parameter(double) override;
54
55 void commit_status() override;
56 void clear_status() override;
57
58 void print() override;
59};
60
61#endif
62
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:36
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
int initialize() override
Definition NonviscousNewmark.cpp:27