Program listing for file kernel/src/modelingTools/HarmonicBC.hpp

Program listing for file kernel/src/modelingTools/HarmonicBC.hpp#

 1#ifndef HARMONICBC_HPP
 2#define HARMONICBC_HPP
 3
 4
 5#include "BoundaryCondition.hpp"
 6
 7
 8class HarmonicBC : public  BoundaryCondition
 9{
10public:
11
12
13  HarmonicBC(SP::UnsignedIntVector newVelocityIndices,
14             double a, double b,
15             double omega, double phi) ;
16
17  HarmonicBC(SP::UnsignedIntVector newVelocityIndices,
18             SP::SiconosVector a, SP::SiconosVector b,
19             SP::SiconosVector omega, SP::SiconosVector phi);
20
21
22
23  virtual ~HarmonicBC();
24
25
26  virtual void computePrescribedVelocity(double time);
27
28protected:
29
30  ACCEPT_SERIALIZATION(HarmonicBC);
31
32
33  HarmonicBC(): BoundaryCondition() {};
34
35
36  double _a;
37
38  double _b;
39
40  double _omega;
41
42  double _phi;
43
44
45  SP::SiconosVector _aV;
46
47  SP::SiconosVector _bV;
48
49  SP::SiconosVector _omegaV;
50
51  SP::SiconosVector _phiV;
52
53
54
55
56
57};
58
59TYPEDEF_SPTR(HarmonicBC)
60#endif