Surface< DataType > Class Template Reference

#include <Surface.h>

Inheritance diagram for Surface< DataType >:
Part< DataType, 3 > Facet< DataType > PartBase< DataType, 3 > Connection Loft< DataType >

List of all members.

Public Types

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

Public Member Functions

 Surface ()
 ~Surface ()
virtual void resetPart ()
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 DataType conArea () const
void setConArea (DataType val)
virtual bool closure () const
virtual void setClosure (bool val)
virtual PType Centroid () const
virtual void setCentroid (PType val)
virtual void AddPoint (const PType v)
virtual int GetNumPoints () const
virtual PType GetNthPoint (int n) const
virtual PTypeGetNthPointA (int n)
virtual PTypeGetNthPointAddress (int n)
virtual PTypeGetNthVelocityAddress (int n)
virtual PType UpdateNthPoint (int n, PType val)
virtual PType GetNthPoint_org (int n) const
virtual std::vector< PType > & GetCPoints ()
virtual std::vector< PType > & GetCPoints_org ()
virtual int GetNumVelocities () const
virtual PType UpdateNthVelocity (int n, PType val)
virtual PType GetNthVelocity (int n) const
virtual std::vector< PType > & GetVelocities ()
virtual int GetNumCons () const
virtual int GetConnectivity ()
virtual void AddConnection (SegType v)
virtual void AddConnection (FacetType v)
virtual int GetNumConnections () const
virtual ConBaseGetNthConnection (int n) const
virtual std::vector< FacetType > & GetConnections ()
virtual const SegTypeGetNthSegment (int n) const
virtual const FacetTypeGetNthFacet (int n) const
virtual FacetTypeEditNthFacet (int n)
virtual SegTypeEditNthSegment (int n)
virtual void setNthCon (int i, int val)
virtual int getNthCon (int i) const
virtual PType Normal () const
virtual void setNormal (PType val)
virtual void updatePart (DataType dt, DataType time)
virtual void setDeformation (bool val)
virtual bool GetDeformation () const
virtual void deformPart (DataType dt, DataType time)
virtual void nearestFacet (PType pointNearPart, DataType &minDist, int &facetId, PType &facetC, PType &facetN, int &orientationFlip)
virtual bool validFacet (const PType &a, const PType &b, const PType &c)
virtual void measure ()
virtual void read (const int type, std::string file)
virtual void output (int type, DataType time, FILE *fout)
virtual void output (int type, DataType time, std::string file)
virtual void Restart (std::ifstream &ifs, int &pos, double &t, double &dt)
virtual void Checkpointing (std::ofstream &ofs)
virtual void updateAxis ()
virtual void pressureForce (multi_index_type *cons, DataType *press, DataType scale)
virtual void logLoad (std::ofstream &ofs, DataType time_, int step)
virtual PType GetNetP ()
virtual PType GetMomP ()
virtual PType GetXaxis ()
virtual PType GetYaxis ()
virtual PType GetZaxis ()

Protected Attributes

bool closed
bool loft
PType centroid
PType netP
PType momP
PType xAxis
PType yAxis
PType zAxis
DataType area
DataType volume
std::vector< PTypecPoints
std::vector< PTypecPoints_org
std::vector< PTypevelocities_loc
std::vector< PTypepressureForce_con
std::vector< FacetTypeconnectivity
int num_cPoints_org
int num_cPoints
int num_connections
int num_velocities

Detailed Description

template<class DataType>
class Surface< DataType >

Surfaces are 3D parts with Facet Connections.


Member Typedef Documentation

template<class DataType >
typedef Connection Surface< DataType >::ConBase

Reimplemented from Part< DataType, 3 >.

template<class DataType >
typedef Facet<DataType> Surface< DataType >::FacetType

Reimplemented from Part< DataType, 3 >.

template<class DataType >
typedef Part<DataType,3> Surface< DataType >::PartType
template<class DataType >
typedef Segment<DataType,3> Surface< DataType >::SegType

Reimplemented from Part< DataType, 3 >.


Constructor & Destructor Documentation

template<class DataType >
Surface< DataType >::~Surface (  )  [inline]

Member Function Documentation

template<class DataType >
virtual void Surface< DataType >::AddConnection ( FacetType  v  )  [inline, virtual]

Implements Part< DataType, 3 >.

Reimplemented in Loft< DataType >.

References Surface< DataType >::connectivity.

template<class DataType >
virtual void Surface< DataType >::AddConnection ( SegType  v  )  [inline, virtual]
template<class DataType >
virtual void Surface< DataType >::AddPoint ( const PType  v  )  [inline, virtual]
template<class DataType >
virtual DataType Surface< DataType >::Area (  )  const [inline, virtual]

Reimplemented from Facet< DataType >.

Reimplemented in Loft< DataType >.

References Surface< DataType >::area.

Referenced by Surface< DataType >::measure().

template<class DataType >
virtual PType Surface< DataType >::Centroid (  )  const [inline, virtual]
template<class DataType >
virtual bool Surface< DataType >::closure (  )  const [inline, virtual]

Implements PartBase< DataType, 3 >.

Reimplemented in Loft< DataType >.

References Surface< DataType >::closed.

template<class DataType >
virtual DataType Surface< DataType >::conArea (  )  const [inline, virtual]

Reimplemented in Loft< DataType >.

References Surface< DataType >::area.

template<class DataType >
virtual void Surface< DataType >::deformPart ( DataType  dt,
DataType  time 
) [inline, virtual]

Implements PartBase< DataType, 3 >.

Reimplemented in Loft< DataType >.

template<class DataType >
virtual FacetType* Surface< DataType >::EditNthFacet ( int  n  )  [inline, virtual]
template<class DataType >
virtual SegType* Surface< DataType >::EditNthSegment ( int  n  )  [inline, virtual]

Implements Part< DataType, 3 >.

template<class DataType >
virtual std::vector<FacetType>& Surface< DataType >::GetConnections (  )  [inline, virtual]
template<class DataType >
virtual int Surface< DataType >::GetConnectivity (  )  [inline, virtual]

Reimplemented in Loft< DataType >.

template<class DataType >
virtual std::vector<PType>& Surface< DataType >::GetCPoints (  )  [inline, virtual]
template<class DataType >
virtual std::vector<PType>& Surface< DataType >::GetCPoints_org (  )  [inline, virtual]
template<class DataType >
virtual bool Surface< DataType >::GetDeformation (  )  const [inline, virtual]
template<class DataType >
virtual PType Surface< DataType >::GetMomP (  )  [inline, virtual]
template<class DataType >
virtual PType Surface< DataType >::GetNetP (  )  [inline, virtual]

Reimplemented in Loft< DataType >.

References Surface< DataType >::netP.

Referenced by Loft< DataType >::GetNetP().

template<class DataType >
virtual int Surface< DataType >::getNthCon ( int  i  )  const [inline, virtual]

Reimplemented from Facet< DataType >.

Reimplemented in Loft< DataType >.

Referenced by Surface< DataType >::measure(), and Surface< DataType >::output().

template<class DataType >
virtual ConBase* Surface< DataType >::GetNthConnection ( int  n  )  const [inline, virtual]
template<class DataType >
virtual const FacetType* Surface< DataType >::GetNthFacet ( int  n  )  const [inline, virtual]
template<class DataType >
virtual PType Surface< DataType >::GetNthPoint ( int  n  )  const [inline, virtual]
template<class DataType >
virtual PType Surface< DataType >::GetNthPoint_org ( int  n  )  const [inline, virtual]
template<class DataType >
virtual PType* Surface< DataType >::GetNthPointA ( int  n  )  [inline, virtual]

Reimplemented in Loft< DataType >.

References Surface< DataType >::cPoints.

template<class DataType >
virtual PType* Surface< DataType >::GetNthPointAddress ( int  n  )  [inline, virtual]
template<class DataType >
virtual const SegType* Surface< DataType >::GetNthSegment ( int  n  )  const [inline, virtual]

Implements Part< DataType, 3 >.

Reimplemented in Loft< DataType >.

template<class DataType >
virtual PType Surface< DataType >::GetNthVelocity ( int  n  )  const [inline, virtual]
template<class DataType >
virtual PType* Surface< DataType >::GetNthVelocityAddress ( int  n  )  [inline, virtual]
template<class DataType >
virtual int Surface< DataType >::GetNumConnections (  )  const [inline, virtual]
template<class DataType >
virtual int Surface< DataType >::GetNumCons (  )  const [inline, virtual]
template<class DataType >
virtual int Surface< DataType >::GetNumPoints (  )  const [inline, virtual]
template<class DataType >
virtual int Surface< DataType >::GetNumVelocities (  )  const [inline, virtual]
template<class DataType >
virtual std::vector<PType>& Surface< DataType >::GetVelocities (  )  [inline, virtual]
template<class DataType >
virtual PType Surface< DataType >::GetXaxis (  )  [inline, virtual]
template<class DataType >
virtual PType Surface< DataType >::GetYaxis (  )  [inline, virtual]
template<class DataType >
virtual PType Surface< DataType >::GetZaxis (  )  [inline, virtual]
template<class DataType >
virtual DataType Surface< DataType >::Length (  )  const [inline, virtual]

Reimplemented from Facet< DataType >.

Reimplemented in Loft< DataType >.

template<class DataType >
virtual void Surface< DataType >::nearestFacet ( PType  pointNearPart,
DataType minDist,
int &  facetId,
PType facetC,
PType facetN,
int &  orientationFlip 
) [inline, virtual]
template<class DataType >
virtual PType Surface< DataType >::Normal (  )  const [inline, virtual]

Reimplemented from Facet< DataType >.

Reimplemented in Loft< DataType >.

Referenced by Surface< DataType >::measure(), and Surface< DataType >::output().

template<class DataType >
virtual void Surface< DataType >::resetPart (  )  [inline, virtual]
template<class DataType >
virtual void Surface< DataType >::setArea ( DataType  val  )  [inline, virtual]

Reimplemented from Facet< DataType >.

Reimplemented in Loft< DataType >.

References Surface< DataType >::area.

template<class DataType >
virtual void Surface< DataType >::setCentroid ( PType  val  )  [inline, virtual]

Reimplemented from Facet< DataType >.

Reimplemented in Loft< DataType >.

References Surface< DataType >::centroid.

template<class DataType >
virtual void Surface< DataType >::setClosure ( bool  val  )  [inline, virtual]

Implements PartBase< DataType, 3 >.

Reimplemented in Loft< DataType >.

References Surface< DataType >::closed.

Referenced by Surface< DataType >::read().

template<class DataType >
void Surface< DataType >::setConArea ( DataType  val  )  [inline]

Reimplemented in Loft< DataType >.

References Surface< DataType >::area.

template<class DataType >
virtual void Surface< DataType >::setDeformation ( bool  val  )  [inline, virtual]
template<class DataType >
virtual void Surface< DataType >::setLength ( DataType  val  )  [inline, virtual]

Reimplemented from Facet< DataType >.

Reimplemented in Loft< DataType >.

template<class DataType >
virtual void Surface< DataType >::setNormal ( PType  val  )  [inline, virtual]

Reimplemented from Facet< DataType >.

Reimplemented in Loft< DataType >.

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

Reimplemented from Facet< DataType >.

Reimplemented in Loft< DataType >.

template<class DataType >
virtual void Surface< DataType >::setVolume ( DataType  val  )  [inline, virtual]

Reimplemented in Loft< DataType >.

References Surface< DataType >::volume.

template<class DataType >
virtual PType Surface< DataType >::UpdateNthPoint ( int  n,
PType  val 
) [inline, virtual]
template<class DataType >
virtual PType Surface< DataType >::UpdateNthVelocity ( int  n,
PType  val 
) [inline, virtual]
template<class DataType >
virtual bool Surface< DataType >::validFacet ( const PType a,
const PType b,
const PType c 
) [inline, virtual]

References norm_2(), and TOL.

Referenced by Loft< DataType >::makeFacets().

template<class DataType >
virtual DataType Surface< DataType >::Volume (  )  const [inline, virtual]

Implements PartBase< DataType, 3 >.

Reimplemented in Loft< DataType >.

References Surface< DataType >::volume.


Member Data Documentation

template<class DataType >
bool Surface< DataType >::loft [protected]

loft [.loft]

Reimplemented from PartBase< DataType, 3 >.

Referenced by Loft< DataType >::Loft().

template<class DataType >
int Surface< DataType >::num_cPoints [protected]
template<class DataType >
int Surface< DataType >::num_cPoints_org [protected]
template<class DataType >
int Surface< DataType >::num_velocities [protected]
template<class DataType >
std::vector<PType> Surface< DataType >::pressureForce_con [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