suanPan
🧮 An Open Source, Parallel and Heterogeneous Finite Element Analysis Framework
Loading...
Searching...
No Matches
Newmark.h
Go to the documentation of this file.
1/*******************************************************************************
2 * Copyright (C) 2017-2026 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 ******************************************************************************/
40#ifndef NEWMARK_H
41#define NEWMARK_H
42
43#include "../Integrator.h"
44
46 const double beta;
47 const double gamma;
49protected:
50 void update_parameter(double) override;
51
52 double C0 = 0., C1 = 0., C2 = 0., C3 = 0., C4 = 0., C5 = 0.;
54public:
55 explicit Newmark(unsigned = 0, double = .25, double = .5);
56
57 void assemble_resistance() override;
58 void assemble_effective_matrix() override;
59
60 int update_trial_status(bool) override;
61
62 vec from_incre_velocity(const vec&, const uvec&) override;
63 vec from_incre_acceleration(const vec&, const uvec&) override;
64
65 void print() override;
66};
67
68#endif
69
Definition Integrator.h:151
A Newmark class defines a solver using Newmark algorithm.
Definition Newmark.h:45
int update_trial_status(bool) override
Definition Newmark.cpp:55
double C1
Definition Newmark.h:52
vec from_incre_acceleration(const vec &, const uvec &) override
Definition Newmark.cpp:71
double C4
Definition Newmark.h:52
double C3
Definition Newmark.h:52
void update_parameter(double) override
Definition Newmark.cpp:77
double C2
Definition Newmark.h:52
double C5
Definition Newmark.h:52
double C0
Definition Newmark.h:52
vec from_incre_velocity(const vec &, const uvec &) override
Definition Newmark.cpp:65
void assemble_resistance() override
Definition Newmark.cpp:28
void print() override
Definition Newmark.cpp:88
void assemble_effective_matrix() override
Definition Newmark.cpp:45