suanPan
RestitutionWallPenalty.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright (C) 2017-2022 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 public:
42  RestitutionWallPenalty(unsigned, unsigned, unsigned, vec&&, vec&&, double, double, unsigned);
43  RestitutionWallPenalty(unsigned, unsigned, unsigned, vec&&, vec&&, vec&&, double, double, unsigned);
44 
45  int initialize(const shared_ptr<DomainBase>&) override;
46 
47  int process(const shared_ptr<DomainBase>&) override;
48 
49  int stage(const shared_ptr<DomainBase>&) override;
50 
51  void commit_status() override;
52  void clear_status() override;
53  void reset_status() override;
54 };
55 
57 public:
58  RestitutionWallPenalty1D(unsigned, unsigned, unsigned, vec&&, vec&&, double, double);
59 };
60 
62 public:
63  RestitutionWallPenalty2D(unsigned, unsigned, unsigned, vec&&, vec&&, double, double);
64  RestitutionWallPenalty2D(unsigned, unsigned, unsigned, vec&&, vec&&, vec&&, double, double);
65 };
66 
68 public:
69  RestitutionWallPenalty3D(unsigned, unsigned, unsigned, vec&&, vec&&, double, double);
70  RestitutionWallPenalty3D(unsigned, unsigned, unsigned, vec&&, vec&&, vec&&, double, double);
71 };
72 
73 #endif
74 
The Node class holds the number of DoFs, coordinate, displacement, velocity and acceleration.
Definition: Node.h:77
Definition: RestitutionWallPenalty.h:56
RestitutionWallPenalty1D(unsigned, unsigned, unsigned, vec &&, vec &&, double, double)
Definition: RestitutionWallPenalty.cpp:110
Definition: RestitutionWallPenalty.h:61
RestitutionWallPenalty2D(unsigned, unsigned, unsigned, vec &&, vec &&, double, double)
Definition: RestitutionWallPenalty.cpp:113
Definition: RestitutionWallPenalty.h:67
RestitutionWallPenalty3D(unsigned, unsigned, unsigned, vec &&, vec &&, double, double)
Definition: RestitutionWallPenalty.cpp:124
A RestitutionWallPenalty class.
Definition: RestitutionWallPenalty.h:37
int stage(const shared_ptr< DomainBase > &) override
Some algorithms needs to manually modify some variables after solving. Typical example is the predict...
Definition: RestitutionWallPenalty.cpp:88
void reset_status() override
Definition: RestitutionWallPenalty.cpp:108
void commit_status() override
Definition: RestitutionWallPenalty.cpp:104
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:106
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