PartBase< DataType, dim > Class Template Reference

#include <Part.h>

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

List of all members.

Public Types

enum  IOType {
  pointList, VTK_curve, Brep2D, VTK_PL,
  Brep3D, STL, loft, VelDat
}
typedef Connection ConBase
typedef Segment< DataType, dim > SegType
typedef Facet< DataTypeFacetType

Public Member Functions

 PartBase ()
 ~PartBase ()
virtual void read (const int type, std::string file)=0
virtual void output (int type, DataType time, std::string file)=0
virtual void output (int type, DataType time, FILE *fout)=0
virtual std::string Name () const
virtual void setName (std::string val)
virtual std::vector< int > & IdTag ()
virtual void setIdTag (std::vector< int > val)
virtual void setDHMat (MType val)
virtual MType GetDHMat ()
virtual void setDHMat_old (MType val)
virtual MType GetDHMat_old ()
virtual void measure ()=0
virtual DataType Length () const =0
virtual DataType Area () const =0
virtual DataType Volume () const =0
virtual bool closure () const =0
virtual void setClosure (bool val)=0
virtual PType Centroid () const =0
virtual void setCentroid (PType val)=0
virtual void AddPoint (PType v)=0
virtual int GetNumPoints () const =0
virtual PType GetNthPoint (int n) const =0
virtual PTypeGetNthPointAddress (int n)=0
virtual PTypeGetNthVelocityAddress (int n)=0
virtual int GetNumConnections () const =0
virtual ConBaseGetNthConnection (int n) const =0
virtual int getNthCon (int i) const =0
virtual std::vector< PType > & GetCPoints ()=0
virtual std::vector< PType > & GetCPoints_org ()=0
virtual std::vector< PType > & GetVelocities ()=0
virtual void updatePart (DataType dt, DataType time)=0
virtual void resetPart ()=0
virtual void setDeformation (bool val)=0
virtual bool GetDeformation () const =0
virtual void deformPart (DataType dt, DataType time)=0
virtual void setMobility (bool val)
virtual bool GetMobility () const
virtual void print ()
virtual void Restart (std::ifstream &ifs, int &pos, double &t, double &dt)=0
virtual void Checkpointing (std::ofstream &ofs)=0
virtual void RestartPart (std::ifstream &ifs, int &pos, double &t, double &dt)
virtual void CheckpointPart (std::ofstream &ofs)
virtual void setCGS (int val)
virtual int GetCGS () const
virtual void pressureForce (multi_index_type *cons, DataType *press, DataType scale)=0
virtual void logLoad (std::ofstream &ofs, DataType time_, int step)=0

Public Attributes

std::string name
std::vector< int > idTag

Protected Attributes

bool deformable
bool mobile
MType AssemblyTmatrix
MType MotionTmatrix
MType DHMat
MType DHMat_old
int cgs

Detailed Description

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

Generic geometry object interface.


Member Typedef Documentation


Member Enumeration Documentation

template<class DataType, int dim>
enum PartBase::IOType

File I/O formats:

Enumerator:
pointList 

simple point list with NREL style header [.txt]

VTK_curve 

VTK 2D lines [.curve]

Brep2D 

2D Brep [.iss]

VTK_PL 

VTK 3D polylines [.vtk]

Brep3D 

3D Brep [.iss]

STL 

STL [.stl]

loft 

loft [.loft]

VelDat 

velocity vectors [_vel.dat]


Constructor & Destructor Documentation

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

Member Function Documentation

template<class DataType, int dim>
virtual void PartBase< DataType, dim >::AddPoint ( PType  v  )  [pure virtual]
template<class DataType, int dim>
virtual DataType PartBase< DataType, dim >::Area (  )  const [pure virtual]
template<class DataType, int dim>
virtual PType PartBase< DataType, dim >::Centroid (  )  const [pure virtual]
template<class DataType, int dim>
virtual void PartBase< DataType, dim >::Checkpointing ( std::ofstream &  ofs  )  [pure virtual]
template<class DataType, int dim>
virtual void PartBase< DataType, dim >::CheckpointPart ( std::ofstream &  ofs  )  [inline, virtual]
template<class DataType, int dim>
virtual bool PartBase< DataType, dim >::closure (  )  const [pure virtual]
template<class DataType, int dim>
virtual void PartBase< DataType, dim >::deformPart ( DataType  dt,
DataType  time 
) [pure virtual]
template<class DataType, int dim>
virtual int PartBase< DataType, dim >::GetCGS (  )  const [inline, virtual]
template<class DataType, int dim>
virtual std::vector<PType>& PartBase< DataType, dim >::GetCPoints (  )  [pure virtual]
template<class DataType, int dim>
virtual std::vector<PType>& PartBase< DataType, dim >::GetCPoints_org (  )  [pure virtual]
template<class DataType, int dim>
virtual bool PartBase< DataType, dim >::GetDeformation (  )  const [pure virtual]
template<class DataType, int dim>
virtual MType PartBase< DataType, dim >::GetDHMat (  )  [inline, virtual]
template<class DataType, int dim>
virtual MType PartBase< DataType, dim >::GetDHMat_old (  )  [inline, virtual]
template<class DataType, int dim>
virtual bool PartBase< DataType, dim >::GetMobility (  )  const [inline, virtual]
template<class DataType, int dim>
virtual int PartBase< DataType, dim >::getNthCon ( int  i  )  const [pure virtual]
template<class DataType, int dim>
virtual ConBase* PartBase< DataType, dim >::GetNthConnection ( int  n  )  const [pure virtual]
template<class DataType, int dim>
virtual PType PartBase< DataType, dim >::GetNthPoint ( int  n  )  const [pure virtual]
template<class DataType, int dim>
virtual PType* PartBase< DataType, dim >::GetNthPointAddress ( int  n  )  [pure virtual]
template<class DataType, int dim>
virtual PType* PartBase< DataType, dim >::GetNthVelocityAddress ( int  n  )  [pure virtual]
template<class DataType, int dim>
virtual std::vector<PType>& PartBase< DataType, dim >::GetVelocities (  )  [pure virtual]
template<class DataType, int dim>
virtual std::vector<int>& PartBase< DataType, dim >::IdTag (  )  [inline, virtual]
template<class DataType, int dim>
virtual DataType PartBase< DataType, dim >::Length (  )  const [pure virtual]
template<class DataType, int dim>
virtual void PartBase< DataType, dim >::logLoad ( std::ofstream &  ofs,
DataType  time_,
int  step 
) [pure virtual]
template<class DataType, int dim>
virtual void PartBase< DataType, dim >::measure (  )  [pure virtual]
template<class DataType, int dim>
virtual void PartBase< DataType, dim >::output ( int  type,
DataType  time,
FILE *  fout 
) [pure virtual]
template<class DataType, int dim>
virtual void PartBase< DataType, dim >::output ( int  type,
DataType  time,
std::string  file 
) [pure virtual]
template<class DataType, int dim>
virtual void PartBase< DataType, dim >::pressureForce ( multi_index_type cons,
DataType press,
DataType  scale 
) [pure virtual]
template<class DataType, int dim>
virtual void PartBase< DataType, dim >::print (  )  [inline, virtual]
template<class DataType, int dim>
virtual void PartBase< DataType, dim >::read ( const int  type,
std::string  file 
) [pure virtual]
template<class DataType, int dim>
virtual void PartBase< DataType, dim >::resetPart (  )  [pure virtual]
template<class DataType, int dim>
virtual void PartBase< DataType, dim >::Restart ( std::ifstream &  ifs,
int &  pos,
double &  t,
double &  dt 
) [pure virtual]
template<class DataType, int dim>
virtual void PartBase< DataType, dim >::RestartPart ( std::ifstream &  ifs,
int &  pos,
double &  t,
double &  dt 
) [inline, virtual]
template<class DataType, int dim>
virtual void PartBase< DataType, dim >::setCentroid ( PType  val  )  [pure virtual]
template<class DataType, int dim>
virtual void PartBase< DataType, dim >::setCGS ( int  val  )  [inline, virtual]
template<class DataType, int dim>
virtual void PartBase< DataType, dim >::setClosure ( bool  val  )  [pure virtual]
template<class DataType, int dim>
virtual void PartBase< DataType, dim >::setDeformation ( bool  val  )  [pure virtual]
template<class DataType, int dim>
virtual void PartBase< DataType, dim >::setDHMat ( MType  val  )  [inline, virtual]
template<class DataType, int dim>
virtual void PartBase< DataType, dim >::setDHMat_old ( MType  val  )  [inline, virtual]
template<class DataType, int dim>
virtual void PartBase< DataType, dim >::setIdTag ( std::vector< int >  val  )  [inline, virtual]
template<class DataType, int dim>
virtual void PartBase< DataType, dim >::setMobility ( bool  val  )  [inline, virtual]
template<class DataType, int dim>
virtual void PartBase< DataType, dim >::setName ( std::string  val  )  [inline, virtual]

Reimplemented in Curve< DataType, dim >, and Loft< DataType >.

template<class DataType, int dim>
virtual void PartBase< DataType, dim >::updatePart ( DataType  dt,
DataType  time 
) [pure virtual]
template<class DataType, int dim>
virtual DataType PartBase< DataType, dim >::Volume (  )  const [pure virtual]

Member Data Documentation

template<class DataType, int dim>
MType PartBase< DataType, dim >::AssemblyTmatrix [protected]
template<class DataType, int dim>
int PartBase< DataType, dim >::cgs [protected]

index of first part connection in the MotionSolver::connections array

Referenced by PartBase< DataType, 3 >::GetCGS(), and PartBase< DataType, 3 >::setCGS().

template<class DataType, int dim>
std::vector<int> PartBase< DataType, dim >::idTag

A std::vector of $ \mathcal{N} $ integers (+ for assemblies, - for parts) for the $ \mathcal{N}-1 $ assemblies from base assembly to this part. idTag[$ j $ ] is the index number of the Assembly in the subAssemblyList of Assembly[$ j-1 $]. idTag[$0$] is the index number of the base Assembly in the Scene's assemblyList. $ j \in [0,\mathcal{N}-1] = $ Assembly index $ j = \mathcal{N} = $ -1 * Part index

Referenced by PartBase< DataType, 3 >::IdTag(), and PartBase< DataType, 3 >::setIdTag().

template<class DataType, int dim>
MType PartBase< DataType, dim >::MotionTmatrix [protected]
template<class DataType, int dim>
std::string PartBase< DataType, dim >::name

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