ESyS-Particle
2.2
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
BCorner2DInteraction.h
Go to the documentation of this file.
1
2
// //
3
// Copyright (c) 2003-2013 by The University of Queensland //
4
// Earth Systems Science Computational Centre (ESSCC) //
5
// http://www.uq.edu.au/esscc //
6
// //
7
// Primary Business: Brisbane, Queensland, Australia //
8
// Licensed under the Open Software License version 3.0 //
9
// http://www.opensource.org/licenses/osl-3.0.php //
10
// //
12
13
#ifndef __BCORNER2DINTERACTION_H
14
#define __BCORNER2DINTERACTION_H
15
16
// --- project includes ---
17
#include "
Geometry/Corner2D.h
"
18
#include "
Model/Particle.h
"
19
#include "
Model/BMesh2DIP.h
"
20
29
class
BCorner2DInteraction
30
{
31
private
:
32
CParticle
*
m_p
;
33
Corner2D
*
m_corner
;
34
double
m_k
;
35
double
m_break
;
36
double
m_dist
;
37
double
k1
,
k2
;
38
int
b_me
;
39
int
m_cid
;
40
int
m_pid
;
41
42
bool
m_inner_flag
;
43
44
public
:
45
typedef
BMesh2DIP
ParameterType
;
46
47
BCorner2DInteraction
();
48
BCorner2DInteraction
(
CParticle
*,
Corner2D
*,
BMesh2DIP
,
bool
iflag=
true
);
49
virtual
~BCorner2DInteraction
(){};
50
51
bool
isInner
(){
return
m_inner_flag
;};
52
virtual
void
calcForces
();
53
bool
broken
();
54
virtual
Vec3
getPos
()
const
{
return
m_p
->
getPos
();};
// ??
55
inline
int
getPid
()
const
{
return
m_pid
;};
56
inline
int
getCid
()
const
{
return
m_cid
;};
57
virtual
void
setPP
(
CParticle
* part_p){
m_p
=part_p;};
58
virtual
void
setCP
(
Corner2D
* corner_p){
m_corner
=corner_p;};
59
60
friend
class
TML_PackedMessageInterface
;
61
};
62
63
#endif // __BCORNER2DINTERACTION_H
Model
BCorner2DInteraction.h
Generated on Mon May 6 2013 23:26:30 for ESyS-Particle by
1.8.3.1