Program listing for file kernel/src/simulationTools/GenericMechanical.hpp#
Return to documentation for this file
1#ifndef GENERICMECHANICAL_H
2#define GENERICMECHANICAL_H
3
4#include "Friction_cst.h"
5#include "LinearOSNS.hpp"
6#include "SiconosNumerics.h"
7
8TYPEDEF_SPTR(GenericMechanicalProblem)
9
10
11class GenericMechanical : public LinearOSNS {
12protected:
13
14 ACCEPT_SERIALIZATION(GenericMechanical);
15
16 GenericMechanicalProblem *_pnumerics_GMP;
17
18public:
19
20 GenericMechanical(int FC3D_Solver_Id = SICONOS_FRICTION_3D_ONECONTACT_NSN);
21
22
23 GenericMechanical(SP::SolverOptions options);
24
25
26 ~GenericMechanical();
27
28
29
30
31
32
33 void initialize(SP::Simulation sim) override;
34
35
36 int compute(double time) override;
37
38
39 void
40 computeInteractionBlock(const InteractionsGraph::EDescriptor &ed) override;
41
42
43 void computeDiagonalInteractionBlock(
44 const InteractionsGraph::VDescriptor &vd) override;
45
46
47 void display() const override;
48
49
50 void updateInteractionBlocks() override;
51
52
53 bool checkCompatibleNSLaw(NonSmoothLaw &nslaw) override;
54
55 ACCEPT_STD_VISITORS();
56};
57
58#endif