ESyS-Particle  4.0.1
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes
ABCDamping< ParticleType > Class Template Reference

#include <ABCDamping.h>

Inheritance diagram for ABCDamping< ParticleType >:
Inheritance graph
[legend]
Collaboration diagram for ABCDamping< ParticleType >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef ABCDampingIGP ParameterType
typedef double(ABCDamping::* ScalarFieldFunction )() const
typedef pair< bool, double >
(ABCDamping::* 
CheckedScalarFieldFunction )() const
typedef Vec3(ABCDamping::* VectorFieldFunction )() const
- Public Types inherited from CDamping< ParticleType >

Public Member Functions

 ABCDamping (ParticleType *, ABCDampingIGP *)
- Public Member Functions inherited from CDamping< ParticleType >
 CDamping (ParticleType *, const Vec3 &, double, double, int)
 CDamping (ParticleType *, const CDampingIGP &)
 CDamping (ParticleType *, CDampingIGP *)
void setLimit (double limit)
void setTimeStepSize (double dt)
virtual void calcForces ()
virtual bool hasTag (int, int) const
virtual Vec3 getPosFirst () const
virtual Vec3 getPosSecond () const
virtual Vec3 getPos () const
vector< int > getAllID () const
esys::lsm::quintuple< Vec3,
double, Vec3, double, Vec3
getRaw2Data () const
double getDissipatedEnergy () const
Vec3 getForce () const

Static Public Member Functions

static ScalarFieldFunction getScalarFieldFunction (const string &)
static CheckedScalarFieldFunction getCheckedScalarFieldFunction (const string &)
static VectorFieldFunction getVectorFieldFunction (const string &)
- Static Public Member Functions inherited from CDamping< ParticleType >
static void zeroFlops ()
static int Flops ()

Protected Attributes

Vec3 m_pos
Vec3 m_normal
double m_c1
- Protected Attributes inherited from CDamping< ParticleType >
ParticleType * m_p
 the particle
Vec3 m_vref
 reference velocity
double m_visc
 artificial viscosity
double m_dt
 time step
int m_maxiter
 iteration limit
double m_E_diss
 dissipated energy
Vec3 m_force
 current force

Additional Inherited Members

- Static Protected Attributes inherited from CDamping< ParticleType >
static double s_limit2
 square error limit for iteration
static int s_flops

Detailed Description

template<class ParticleType>
class ABCDamping< ParticleType >

Damping for absorbing boundary conditions - damping increases exponentially towards a given plane (boundary)


Constructor & Destructor Documentation

template<class ParticleType >
ABCDamping< ParticleType >::ABCDamping ( ParticleType *  P,
ABCDampingIGP param 
)

Construct a damping "interaction" for a particle

Parameters:
Pthe particle
paramthe parameters

References CDamping< ParticleType >::m_p, and CDamping< ParticleType >::m_visc.


Member Function Documentation

template<class T >
ABCDamping< T >::CheckedScalarFieldFunction ABCDamping< T >::getCheckedScalarFieldFunction ( const string &  name)
static

Get the particle member function which returns a checked scalar field of a given name.

Parameters:
namethe name of the field

Reimplemented from CDamping< ParticleType >.

template<class T >
ABCDamping< T >::VectorFieldFunction ABCDamping< T >::getVectorFieldFunction ( const string &  name)
static

Get the particle member function which returns a vector field of a given name.

Parameters:
namethe name of the field

Reimplemented from CDamping< ParticleType >.


The documentation for this class was generated from the following files: