Open PaperOpt
p3d::Fiber Class Reference

#include <FiberStatic.h>

List of all members.

Public Member Functions

 Fiber (double length, double radius, double formFC, double seglen)
 Fiber (ifstream &rInput)
 ~Fiber ()
double Length () const
double Radius () const
double FormFC () const
int NumSeg () const
double Weight ()
double Angle () const
double * Angles () const
double Seglen () const
void Angle (double angle)
void Angles (double *angles)
void GenerateSegments (Staticsheet *vol)
void Translate (V2< double > len)
void DropAngularInformation ()
const FiberSegmentGetSegments () const
FiberSegmentGetSegments ()
void GetSegmentCoordinates (int segNo, V2< double > &rV1, V2< double > &rV2) const
int GetDataSize () const
void SaveFiberBinary (ofstream &rFile)
void ReadFiberFromFile (string input)

Detailed Description

this fiber class mainly used for the p3d layer


Constructor & Destructor Documentation

Fiber::Fiber ( double  length,
double  radius,
double  formFC,
double  seglen 
)
Fiber::Fiber ( ifstream &  rInput)
p3d::Fiber::~Fiber ( void  ) [inline]

Member Function Documentation

double p3d::Fiber::Angle ( ) const [inline]
Returns:
the angle of the fiber
void p3d::Fiber::Angle ( double  angle) [inline]
double* p3d::Fiber::Angles ( ) const [inline]
Returns:
the local angles of each fiber segment
void p3d::Fiber::Angles ( double *  angles) [inline]
void p3d::Fiber::DropAngularInformation ( ) [inline]

clear the local angle information

Here is the call graph for this function:

double p3d::Fiber::FormFC ( ) const [inline]
void Fiber::GenerateSegments ( Staticsheet vol)

generate fiber segments according to the simulation volume

Parameters:
vol

Here is the call graph for this function:

int Fiber::GetDataSize ( ) const
void Fiber::GetSegmentCoordinates ( int  segNo,
V2< double > &  rV1,
V2< double > &  rV2 
) const
Parameters:
segNothe number of the fiber segment
rV1coordinates of the segment as output
rV2coordinates of the segment as output

Here is the call graph for this function:

Here is the caller graph for this function:

const FiberSegment* p3d::Fiber::GetSegments ( ) const [inline]
Returns:
the fiber segments

Here is the caller graph for this function:

FiberSegment* p3d::Fiber::GetSegments ( ) [inline]
double p3d::Fiber::Length ( ) const [inline]
int p3d::Fiber::NumSeg ( ) const [inline]

Here is the caller graph for this function:

double p3d::Fiber::Radius ( ) const [inline]

Here is the caller graph for this function:

void p3d::Fiber::ReadFiberFromFile ( string  input)

read the fibers from the file

Parameters:
inputthe path of the file
void Fiber::SaveFiberBinary ( ofstream &  rFile)

save the fiber into binary file output stream

double p3d::Fiber::Seglen ( ) const [inline]

Here is the caller graph for this function:

void Fiber::Translate ( V2< double >  len)

Here is the call graph for this function:

double Fiber::Weight ( )
Returns:
the weight of the fiber

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