suanPan
Loading...
Searching...
No Matches
NonviscousNewmark.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 ******************************************************************************/
33#ifndef NONVISCOUSNEWMARK_H
34#define NONVISCOUSNEWMARK_H
35
36#include "Newmark.h"
37
38class NonviscousNewmark final : 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
47protected:
48 void update_parameter(double) override;
49
50public:
51 NonviscousNewmark(unsigned, double, double, cx_vec&&, cx_vec&&);
52
53 int initialize() override;
54
55 void assemble_resistance() override;
56 void assemble_matrix() override;
57
58 void commit_status() override;
59 void clear_status() override;
60
61 void print() override;
62};
63
64#endif
65
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:61
void print() override
Definition NonviscousNewmark.cpp:84
void commit_status() override
Definition NonviscousNewmark.cpp:70
void assemble_resistance() override
Definition NonviscousNewmark.cpp:36
void assemble_matrix() override
Definition NonviscousNewmark.cpp:48
void clear_status() override
Definition NonviscousNewmark.cpp:79
int initialize() override
Definition NonviscousNewmark.cpp:28