suanPan
🧮 An Open Source, Parallel and Heterogeneous Finite Element Analysis Framework
Loading...
Searching...
No Matches
RestitutionWallPenalty.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 ******************************************************************************/
29#ifndef RESTITUTIONWALLPENALTY_H
30#define RESTITUTIONWALLPENALTY_H
31
32#include "RigidWallPenalty.h"
33
34#include <Toolbox/container.h>
35
36class Node;
37
40
41 const double restitution_coefficient;
42
43public:
44 RestitutionWallPenalty(unsigned, unsigned, vec&&, vec&&, double, double, unsigned);
45 RestitutionWallPenalty(unsigned, unsigned, vec&&, vec&&, vec&&, double, double, unsigned);
46
47 int initialize(const shared_ptr<DomainBase>&) override;
48
49 int process(const shared_ptr<DomainBase>&) override;
50
51 void stage(const shared_ptr<DomainBase>&) override;
52
53 void commit_status() override;
54 void clear_status() override;
55 void reset_status() override;
56};
57
59public:
60 RestitutionWallPenalty1D(unsigned, unsigned, double, double, double, double);
61};
62
64public:
65 RestitutionWallPenalty2D(unsigned, unsigned, vec2&&, vec2&&, double, double);
66 RestitutionWallPenalty2D(unsigned, unsigned, vec2&&, vec3&&, double, double);
67};
68
70public:
71 RestitutionWallPenalty3D(unsigned, unsigned, vec3&&, vec3&&, double, double);
72 RestitutionWallPenalty3D(unsigned, unsigned, vec3&&, vec3&&, vec3&&, double, double);
73};
74
75#endif
76
The Node class holds the number of DoFs, coordinate, displacement, velocity and acceleration.
Definition Node.h:79
Definition RestitutionWallPenalty.h:58
Definition RestitutionWallPenalty.h:63
Definition RestitutionWallPenalty.h:69
A RestitutionWallPenalty class.
Definition RestitutionWallPenalty.h:38
void stage(const shared_ptr< DomainBase > &) override
Some algorithms need to manually modify some variables after solving.
Definition RestitutionWallPenalty.cpp:88
void reset_status() override
Definition RestitutionWallPenalty.cpp:111
void commit_status() override
Definition RestitutionWallPenalty.cpp:101
int process(const shared_ptr< DomainBase > &) override
Process and update both stiffness and resistance.
Definition RestitutionWallPenalty.cpp:41
void clear_status() override
Definition RestitutionWallPenalty.cpp:106
int initialize(const shared_ptr< DomainBase > &) override
Definition RestitutionWallPenalty.cpp:32
A RigidWall class.
Definition RigidWallPenalty.h:34
std::set< T > set
Definition container.h:54