suanPan
RestitutionWallPenalty.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  ******************************************************************************/
29 #ifndef RESTITUTIONWALLPENALTY_H
30 #define RESTITUTIONWALLPENALTY_H
31 
32 #include "RigidWallPenalty.h"
33 #include <Toolbox/container.h>
34 
35 class Node;
36 
39 
40  const double restitution_coefficient;
41 
42 public:
43  RestitutionWallPenalty(unsigned, unsigned, unsigned, vec&&, vec&&, double, double, unsigned);
44  RestitutionWallPenalty(unsigned, unsigned, unsigned, vec&&, vec&&, vec&&, double, double, unsigned);
45 
46  int initialize(const shared_ptr<DomainBase>&) override;
47 
48  int process(const shared_ptr<DomainBase>&) override;
49 
50  void stage(const shared_ptr<DomainBase>&) override;
51 
52  void commit_status() override;
53  void clear_status() override;
54  void reset_status() override;
55 };
56 
58 public:
59  RestitutionWallPenalty1D(unsigned, unsigned, unsigned, vec&&, vec&&, double, double);
60 };
61 
63 public:
64  RestitutionWallPenalty2D(unsigned, unsigned, unsigned, vec&&, vec&&, double, double);
65  RestitutionWallPenalty2D(unsigned, unsigned, unsigned, vec&&, vec&&, vec&&, double, double);
66 };
67 
69 public:
70  RestitutionWallPenalty3D(unsigned, unsigned, unsigned, vec&&, vec&&, double, double);
71  RestitutionWallPenalty3D(unsigned, unsigned, unsigned, vec&&, vec&&, vec&&, double, double);
72 };
73 
74 #endif
75 
The Node class holds the number of DoFs, coordinate, displacement, velocity and acceleration.
Definition: Node.h:80
Definition: RestitutionWallPenalty.h:57
RestitutionWallPenalty1D(unsigned, unsigned, unsigned, vec &&, vec &&, double, double)
Definition: RestitutionWallPenalty.cpp:107
Definition: RestitutionWallPenalty.h:62
RestitutionWallPenalty2D(unsigned, unsigned, unsigned, vec &&, vec &&, double, double)
Definition: RestitutionWallPenalty.cpp:110
Definition: RestitutionWallPenalty.h:68
RestitutionWallPenalty3D(unsigned, unsigned, unsigned, vec &&, vec &&, double, double)
Definition: RestitutionWallPenalty.cpp:121
A RestitutionWallPenalty class.
Definition: RestitutionWallPenalty.h:37
void stage(const shared_ptr< DomainBase > &) override
Some algorithms needs to manually modify some variables after solving. Typical example is the predict...
Definition: RestitutionWallPenalty.cpp:87
void reset_status() override
Definition: RestitutionWallPenalty.cpp:105
void commit_status() override
Definition: RestitutionWallPenalty.cpp:101
int process(const shared_ptr< DomainBase > &) override
This method provides all necessary pieces of typical constraints/loads required, including additional...
Definition: RestitutionWallPenalty.cpp:41
void clear_status() override
Definition: RestitutionWallPenalty.cpp:103
RestitutionWallPenalty(unsigned, unsigned, unsigned, vec &&, vec &&, double, double, unsigned)
Definition: RestitutionWallPenalty.cpp:24
int initialize(const shared_ptr< DomainBase > &) override
Definition: RestitutionWallPenalty.cpp:32
A RigidWall class.
Definition: RigidWallPenalty.h:35
std::set< T > set
Definition: container.h:54