26CFibreDistributionConst::CFibreDistributionConst()
48 double dVf = dFibreArea/dArea;
53 TGERROR(
"Warning: Volume fraction is not realistic " << dVf);
57 TGERROR(
"Warning: Volume fraction is not realistic: " << dVf <<
", Yarn: " << YarnIndex);
65 double dVf = dFibreArea/dArea;
70 TGERROR(
"Warning: Volume fraction is not realistic " << dVf);
74 TGERROR(
"Warning: Volume fraction is not realistic: " << dVf <<
", Yarn: " << YarnIndex);
#define TGERROR(MESSAGE)
Macros used to report the file name and line number to the TexGenError and TexGenLog functions.
double IntegrateDistribution(const vector< XY > &Section) const
double GetVolumeFraction(const vector< XY > &Section, double dFibreArea, XY Location, int YarnIndex=-1) const
Get the volume fraction for a given location.
void PopulateTiXmlElement(TiXmlElement &Element, OUTPUT_TYPE OutputType) const
Used for saving data to XML.
CFibreDistributionConst()
Abstract base class that defines how the fibres are distributed within a yarn.
virtual void PopulateTiXmlElement(TiXmlElement &Element, OUTPUT_TYPE OutputType) const
Used for saving data to XML.
static double GetArea(const vector< XY > &Section)
Get the area of a section.
Namespace containing a series of customised math operations not found in the standard c++ library.
Struct for representing points in 2D space.