CG  Version 25
PenaltySlipWallBC.h
Go to the documentation of this file.
1 #ifndef PENALTY_SLIP_WALL_BC_H
2 #define PENALTY_SLIP_WALL_BC_H
3 
4 #include "Parameters.h"
5 #include "DBase.hh"
6 
8 
10 
11  public:
12  PenaltySlipWallBC(const aString &nm);
13 
14  virtual ~PenaltySlipWallBC();
15 
16  virtual bool inputFromGI(GenericGraphicsInterface &gi);
17  virtual bool applyBC(Parameters &parameters,
18  const real & t, const real &dt,
19  realMappedGridFunction &u,
20  const int & grid,
21  int side0 /* = -1 */,
22  int axis0 /* = -1 */,
23  realMappedGridFunction *gridVelocity = 0);
24 
25  virtual bool setBCCoefficients(Parameters &parameters,
26  const real & t, const real &dt,
27  realMappedGridFunction &u,
28  realMappedGridFunction &coeff,
29  const int & grid,
30  int side0 /* = -1 */,
31  int axis0 /* = -1 */,
32  realMappedGridFunction *gridVelocity = 0);
33 
34 
35  virtual bool addPenaltyForcing(Parameters &parameters,
36  const real & t, const real &dt,
37  const realMappedGridFunction &u,
38  realMappedGridFunction &dudt,
39  const int & grid,
40  int side0 /* = -1 */,
41  int axis0 /* = -1 */,
42  const realMappedGridFunction *gridVelocity = 0);
43 
44  virtual const bool isPenaltyBC() const;
45 
46  // private:
47  real normalFlux;
49  DBase::DataBase db;
50 
51 };
52 #endif