TexGen
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TexGen::CFibreDistribution1DQuad Class Reference

Fibre volume fraction is defined as a quadratic equation varying only along the X axis. More...

#include <FibreDistribution1DQuad.h>

Inheritance diagram for TexGen::CFibreDistribution1DQuad:
Inheritance graph
[legend]

Public Member Functions

 CFibreDistribution1DQuad (double dDropOff)
 
 CFibreDistribution1DQuad (TiXmlElement &Element)
 
 ~CFibreDistribution1DQuad ()
 
CFibreDistributionCopy () const
 Create a copy of the derived fibre distribution and return a pointer to the newly created instance. More...
 
string GetType () const
 Derived class should return the class name. More...
 
void PopulateTiXmlElement (TiXmlElement &Element, OUTPUT_TYPE OutputType) const
 Used for saving data to XML. More...
 
double GetVolumeFraction (const vector< XY > &Section, double dFibreArea, XY Location, int YarnIndex=-1) const
 Get the volume fraction for a given location. More...
 
virtual double GetVolumeFraction (double dArea, double dFibreArea, int YarnIndex=-1) const
 Get the volume fraction given an area. More...
 

Protected Member Functions

double ComputeMaxX (const vector< XY > &Section) const
 
double Distribution (double max, double min, double x, double dMaxX) const
 
double IntegrateDistribution (const vector< XY > &Section, double dMaxX) const
 

Protected Attributes

double m_dDropOff
 

Detailed Description

Fibre volume fraction is defined as a quadratic equation varying only along the X axis.

Definition at line 25 of file FibreDistribution1DQuad.h.

Constructor & Destructor Documentation

◆ CFibreDistribution1DQuad() [1/2]

CFibreDistribution1DQuad::CFibreDistribution1DQuad ( double  dDropOff)

Definition at line 25 of file FibreDistribution1DQuad.cpp.

◆ CFibreDistribution1DQuad() [2/2]

CFibreDistribution1DQuad::CFibreDistribution1DQuad ( TiXmlElement &  Element)

Definition at line 30 of file FibreDistribution1DQuad.cpp.

References m_dDropOff.

◆ ~CFibreDistribution1DQuad()

TexGen::CFibreDistribution1DQuad::~CFibreDistribution1DQuad ( )
inline

Definition at line 30 of file FibreDistribution1DQuad.h.

Member Function Documentation

◆ ComputeMaxX()

double CFibreDistribution1DQuad::ComputeMaxX ( const vector< XY > &  Section) const
protected

Definition at line 42 of file FibreDistribution1DQuad.cpp.

Referenced by GetVolumeFraction().

◆ Copy()

CFibreDistribution * TexGen::CFibreDistribution1DQuad::Copy ( ) const
inlinevirtual

Create a copy of the derived fibre distribution and return a pointer to the newly created instance.

Implements TexGen::CFibreDistribution.

Definition at line 32 of file FibreDistribution1DQuad.h.

◆ Distribution()

double CFibreDistribution1DQuad::Distribution ( double  max,
double  min,
double  x,
double  dMaxX 
) const
protected

Definition at line 89 of file FibreDistribution1DQuad.cpp.

Referenced by GetVolumeFraction(), and IntegrateDistribution().

◆ GetType()

string TexGen::CFibreDistribution1DQuad::GetType ( ) const
inlinevirtual

Derived class should return the class name.

Implements TexGen::CFibreDistribution.

Definition at line 33 of file FibreDistribution1DQuad.h.

◆ GetVolumeFraction() [1/2]

double CFibreDistribution1DQuad::GetVolumeFraction ( const vector< XY > &  Section,
double  dFibreArea,
XY  Location,
int  YarnIndex = -1 
) const
virtual

Get the volume fraction for a given location.

Implements TexGen::CFibreDistribution.

Definition at line 68 of file FibreDistribution1DQuad.cpp.

References ComputeMaxX(), Distribution(), IntegrateDistribution(), m_dDropOff, TGERROR, and TexGen::XY::x.

◆ GetVolumeFraction() [2/2]

double CFibreDistribution::GetVolumeFraction ( double  dArea,
double  dFibreArea,
int  YarnIndex = -1 
) const
virtualinherited

Get the volume fraction given an area.

Reimplemented in TexGen::CFibreDistributionConst.

Definition at line 42 of file FibreDistribution.cpp.

◆ IntegrateDistribution()

double CFibreDistribution1DQuad::IntegrateDistribution ( const vector< XY > &  Section,
double  dMaxX 
) const
protected

Definition at line 52 of file FibreDistribution1DQuad.cpp.

References Distribution(), and m_dDropOff.

Referenced by GetVolumeFraction().

◆ PopulateTiXmlElement()

void CFibreDistribution1DQuad::PopulateTiXmlElement ( TiXmlElement &  Element,
OUTPUT_TYPE  OutputType 
) const
virtual

Used for saving data to XML.

Reimplemented from TexGen::CFibreDistribution.

Definition at line 36 of file FibreDistribution1DQuad.cpp.

References m_dDropOff, and TexGen::CFibreDistribution::PopulateTiXmlElement().

Member Data Documentation

◆ m_dDropOff

double TexGen::CFibreDistribution1DQuad::m_dDropOff
protected

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