ParMooN
 All Classes Functions Variables Friends Pages
InterfaceJoint.h
1 // =======================================================================
2 // @(#)InterfaceJoint.h 1.3 07/19/99
3 //
4 // Class: TInterfaceJoint
5 // Purpose: connects two cells on an interface
6 //
7 // Author: Volker Behns 09.03.98
8 //
9 // =======================================================================
10 
11 #ifndef __INTERFACEJOINT__
12 #define __INTERFACEJOINT__
13 
14 #include <JointEqN.h>
15 #include <Vertex.h>
16 
18 class TInterfaceJoint : public TJointEqN
19 {
20  protected:
23 
25  double T_0;
27  double T_1;
28 
29  public:
30  // Constructors
32  TInterfaceJoint(TBoundComp2D *bdcomp, double t_0, double t_1,
33  TBaseCell *neighb0);
35  TInterfaceJoint(TBoundComp2D *bdcomp, double t_0, double t_1,
36  TBaseCell *neighb0, TBaseCell *neighb1);
37 
38  // Methods
40  virtual TJoint *NewInst(double T_0, double T_1, TBaseCell *Me);
41  virtual TJoint *NewInst();
42 
45  { return T_0; }
46 
48  double GetEndParameter()
49  { return T_1; }
50 
52  void GetParameters(double &t0, double &t1)
53  {
54  t0 = T_0;
55  t1 = T_1;
56  }
57 
58 #ifdef __2D__
59 
60  void UpdateParameters(TVertex *Begin, TVertex *End);
61 #endif
62 
65  { return BoundComp; }
66 
68  int GetXYofT(double T, double &X, double &Y);
69 
71  int CheckOrientation();
72 
75  {
76  if (Neighb0 == Me)
77  return true;
78  else
79  return false;
80  }
81 
82  // Destructor
83  virtual ~TInterfaceJoint(){};
84 
85 };
86 
87 #endif
TBoundComp2D * BoundComp
Definition: InterfaceJoint.h:22
bool CheckInside(TBaseCell *Me)
Definition: InterfaceJoint.h:74
TBoundComp2D * GetBoundComp()
Definition: InterfaceJoint.h:64
void UpdateParameters(TVertex *Begin, TVertex *End)
Definition: InterfaceJoint.C:76
double T_0
Definition: InterfaceJoint.h:25
Definition: JointEqN.h:20
virtual TJoint * NewInst(double T_0, double T_1, TBaseCell *Me)
Definition: InterfaceJoint.C:56
Definition: Joint.h:48
Definition: BoundComp2D.h:17
TBaseCell * Neighb0
Definition: Joint.h:54
void GetParameters(double &t0, double &t1)
Definition: InterfaceJoint.h:52
int GetXYofT(double T, double &X, double &Y)
Definition: InterfaceJoint.C:67
information for finite element data structure
Definition: BaseCell.h:25
double GetEndParameter()
Definition: InterfaceJoint.h:48
Definition: Vertex.h:19
int CheckOrientation()
Definition: InterfaceJoint.C:98
double T_1
Definition: InterfaceJoint.h:27
double GetStartParameter()
Definition: InterfaceJoint.h:44
TInterfaceJoint(TBoundComp2D *bdcomp, double t_0, double t_1, TBaseCell *neighb0)
Definition: InterfaceJoint.C:16
Definition: InterfaceJoint.h:18