Curve< DataType, dim > Class Template Reference

#include <Curve.h>

Inheritance diagram for Curve< DataType, dim >:
Part< DataType, dim > Segment< DataType, dim > PartBase< DataType, dim > Connection SplineCurve< DataType, dim >

List of all members.

Public Types

typedef Part< DataType, dim > PartType
typedef Connection ConBase
typedef Segment< DataType, dim > SegType
typedef Facet< DataTypeFacetType

Public Member Functions

 Curve ()
 ~Curve ()
virtual void read (const int type, std::string file)
virtual void measure ()
virtual DataType Length () const
virtual DataType Area () const
virtual DataType Volume () const
virtual void setLength (DataType val)
virtual void setArea (DataType val)
virtual void setVolume (DataType val)
virtual void output (int type, DataType time, FILE *fout)
virtual void output (int type, DataType time, std::string file)
virtual std::string Name () const
virtual void setName (std::string val)
virtual bool closure () const
virtual void setClosure (bool val)
virtual PType Centroid () const
virtual void setCentroid (PType val)
virtual PType operator[] (int i) const
virtual void AddPoint (PType v)
virtual int GetNumPoints () const
virtual PType GetNthPoint (int n) const
virtual PType GetNthPoint_org (int n) const
virtual PTypeGetNthPointA (int n)
virtual PTypeGetNthPointAddress (int n)
virtual PTypeGetNthVelocityAddress (int n)
virtual std::vector< PType > & GetCPoints ()
virtual std::vector< PType > & GetCPoints_org ()
virtual std::vector< PType > & GetVelocities ()
virtual int GetNumCons ()
virtual int GetConnectivity ()
virtual void AddConnection (SegType v)
virtual void AddConnection (FacetType v)
virtual int GetNumConnections () const
virtual ConBaseGetNthConnection (int n) const
virtual const SegTypeGetNthSegment (int n) const
virtual const FacetTypeGetNthFacet (int n) const
virtual void setNthCon (int i, int val)
virtual int getNthCon (int i) const
virtual PType Normal () const
virtual void setNormal (PType val)
virtual void makeConnections ()
virtual void makeUnique ()
virtual void updatePart (DataType dt, DataType time)
virtual void deformPart (PType conPoint, DataType dt, DataType time)
virtual void deformPart (DataType dt, DataType time)
virtual void resetPart ()
virtual PType setNthCPoint (int n)
virtual void setDeformation (bool val)
virtual bool GetDeformation () const
virtual FacetTypeEditNthFacet (int n)
virtual SegTypeEditNthSegment (int n)
virtual void Restart (std::ifstream &ifs, int &pos, double &t, double &dt)
virtual void Checkpointing (std::ofstream &ofs)
virtual void pressureForce (multi_index_type *cons, DataType *press, DataType scale)
virtual void logLoad (std::ofstream &ofs, DataType time_, int step)

Protected Attributes

DataType Clength
std::string name
bool closed
PType centroid
std::vector< PTypecPoints_org
std::vector< PTypecPoints
std::vector< SegTypeconnectivity
std::vector< PTypevelocities_loc
int num_cPoints_org
int num_cPoints
int num_connections
int num_velocities

Detailed Description

template<class DataType, int dim>
class Curve< DataType, dim >

2D/3D Curves are Part point sets with Segment Connections.


Member Typedef Documentation

template<class DataType , int dim>
typedef Connection Curve< DataType, dim >::ConBase

Reimplemented from PartBase< DataType, dim >.

Reimplemented in SplineCurve< DataType, dim >.

template<class DataType , int dim>
typedef Facet<DataType> Curve< DataType, dim >::FacetType

Reimplemented from PartBase< DataType, dim >.

Reimplemented in SplineCurve< DataType, dim >.

template<class DataType , int dim>
typedef Part<DataType,dim> Curve< DataType, dim >::PartType

Reimplemented in SplineCurve< DataType, dim >.

template<class DataType , int dim>
typedef Segment<DataType,dim> Curve< DataType, dim >::SegType

Reimplemented from PartBase< DataType, dim >.

Reimplemented in SplineCurve< DataType, dim >.


Constructor & Destructor Documentation

template<class DataType , int dim>
Curve< DataType, dim >::Curve (  )  [inline]
template<class DataType , int dim>
Curve< DataType, dim >::~Curve (  )  [inline]

Member Function Documentation

template<class DataType , int dim>
virtual void Curve< DataType, dim >::AddConnection ( FacetType  v  )  [inline, virtual]
template<class DataType , int dim>
virtual void Curve< DataType, dim >::AddConnection ( SegType  v  )  [inline, virtual]
template<class DataType , int dim>
virtual DataType Curve< DataType, dim >::Area (  )  const [inline, virtual]

Reimplemented from Segment< DataType, dim >.

template<class DataType , int dim>
virtual PType Curve< DataType, dim >::Centroid (  )  const [inline, virtual]
template<class DataType , int dim>
virtual bool Curve< DataType, dim >::closure (  )  const [inline, virtual]
template<class DataType , int dim>
virtual void Curve< DataType, dim >::deformPart ( DataType  dt,
DataType  time 
) [inline, virtual]
template<class DataType , int dim>
virtual void Curve< DataType, dim >::deformPart ( PType  conPoint,
DataType  dt,
DataType  time 
) [inline, virtual]
template<class DataType , int dim>
virtual FacetType* Curve< DataType, dim >::EditNthFacet ( int  n  )  [inline, virtual]
template<class DataType , int dim>
virtual SegType* Curve< DataType, dim >::EditNthSegment ( int  n  )  [inline, virtual]
template<class DataType , int dim>
virtual int Curve< DataType, dim >::GetConnectivity (  )  [inline, virtual]
template<class DataType , int dim>
virtual std::vector<PType>& Curve< DataType, dim >::GetCPoints (  )  [inline, virtual]
template<class DataType , int dim>
virtual std::vector<PType>& Curve< DataType, dim >::GetCPoints_org (  )  [inline, virtual]
template<class DataType , int dim>
virtual bool Curve< DataType, dim >::GetDeformation (  )  const [inline, virtual]
template<class DataType , int dim>
virtual int Curve< DataType, dim >::getNthCon ( int  i  )  const [inline, virtual]
template<class DataType , int dim>
virtual ConBase* Curve< DataType, dim >::GetNthConnection ( int  n  )  const [inline, virtual]
template<class DataType , int dim>
virtual const FacetType* Curve< DataType, dim >::GetNthFacet ( int  n  )  const [inline, virtual]
template<class DataType , int dim>
virtual PType Curve< DataType, dim >::GetNthPoint_org ( int  n  )  const [inline, virtual]
template<class DataType , int dim>
virtual PType* Curve< DataType, dim >::GetNthPointA ( int  n  )  [inline, virtual]
template<class DataType , int dim>
virtual PType* Curve< DataType, dim >::GetNthPointAddress ( int  n  )  [inline, virtual]
template<class DataType , int dim>
virtual const SegType* Curve< DataType, dim >::GetNthSegment ( int  n  )  const [inline, virtual]
template<class DataType , int dim>
virtual PType* Curve< DataType, dim >::GetNthVelocityAddress ( int  n  )  [inline, virtual]
template<class DataType , int dim>
virtual int Curve< DataType, dim >::GetNumConnections (  )  const [inline, virtual]
template<class DataType , int dim>
virtual int Curve< DataType, dim >::GetNumCons (  )  [inline, virtual]
template<class DataType , int dim>
virtual std::vector<PType>& Curve< DataType, dim >::GetVelocities (  )  [inline, virtual]
template<class DataType , int dim>
virtual DataType Curve< DataType, dim >::Length (  )  const [inline, virtual]
template<class DataType , int dim>
virtual void Curve< DataType, dim >::logLoad ( std::ofstream &  ofs,
DataType  time_,
int  step 
) [inline, virtual]
template<class DataType , int dim>
virtual std::string Curve< DataType, dim >::Name (  )  const [inline, virtual]
template<class DataType , int dim>
virtual PType Curve< DataType, dim >::Normal (  )  const [inline, virtual]

Reimplemented from Segment< DataType, dim >.

template<class DataType , int dim>
virtual PType Curve< DataType, dim >::operator[] ( int  i  )  const [inline, virtual]
template<class DataType , int dim>
virtual void Curve< DataType, dim >::output ( int  type,
DataType  time,
FILE *  fout 
) [inline, virtual]
template<class DataType , int dim>
virtual void Curve< DataType, dim >::pressureForce ( multi_index_type cons,
DataType press,
DataType  scale 
) [inline, virtual]
template<class DataType , int dim>
virtual void Curve< DataType, dim >::resetPart (  )  [inline, virtual]
template<class DataType , int dim>
virtual void Curve< DataType, dim >::setArea ( DataType  val  )  [inline, virtual]

Reimplemented from Segment< DataType, dim >.

template<class DataType , int dim>
virtual void Curve< DataType, dim >::setCentroid ( PType  val  )  [inline, virtual]
template<class DataType , int dim>
virtual void Curve< DataType, dim >::setClosure ( bool  val  )  [inline, virtual]
template<class DataType , int dim>
virtual void Curve< DataType, dim >::setDeformation ( bool  val  )  [inline, virtual]
template<class DataType , int dim>
virtual void Curve< DataType, dim >::setLength ( DataType  val  )  [inline, virtual]
template<class DataType , int dim>
virtual void Curve< DataType, dim >::setName ( std::string  val  )  [inline, virtual]
template<class DataType , int dim>
virtual void Curve< DataType, dim >::setNormal ( PType  val  )  [inline, virtual]

Reimplemented from Segment< DataType, dim >.

template<class DataType , int dim>
virtual void Curve< DataType, dim >::setNthCon ( int  i,
int  val 
) [inline, virtual]

Reimplemented from Segment< DataType, dim >.

template<class DataType , int dim>
virtual PType Curve< DataType, dim >::setNthCPoint ( int  n  )  [inline, virtual]
template<class DataType , int dim>
virtual void Curve< DataType, dim >::setVolume ( DataType  val  )  [inline, virtual]
template<class DataType , int dim>
virtual void Curve< DataType, dim >::updatePart ( DataType  dt,
DataType  time 
) [inline, virtual]
template<class DataType , int dim>
virtual DataType Curve< DataType, dim >::Volume (  )  const [inline, virtual]

Member Data Documentation

template<class DataType , int dim>
bool Curve< DataType, dim >::closed [protected]
template<class DataType , int dim>
std::string Curve< DataType, dim >::name [protected]
template<class DataType , int dim>
int Curve< DataType, dim >::num_connections [protected]
template<class DataType , int dim>
int Curve< DataType, dim >::num_cPoints [protected]
template<class DataType , int dim>
int Curve< DataType, dim >::num_cPoints_org [protected]
template<class DataType , int dim>
int Curve< DataType, dim >::num_velocities [protected]

The documentation for this class was generated from the following file:
Generated on Thu Jun 30 02:18:58 2016 for Motion - rigid body dynamics solver by  doxygen 1.6.3