25CProperties::CProperties()
26: m_YarnLinearDensity(
"kg/m")
27, m_FibreDensity(
"kg/m^3")
30, m_YoungsModulusX(
"MPa")
31, m_YoungsModulusY(
"MPa")
32, m_YoungsModulusZ(
"MPa")
33, m_ShearModulusXY(
"MPa")
34, m_ShearModulusXZ(
"MPa")
35, m_ShearModulusYZ(
"MPa")
40, m_CalculatedArea(
"m^2")
47: m_YarnLinearDensity(
"kg/m")
48, m_FibreDensity(
"kg/m^3")
51, m_YoungsModulusX(
"MPa")
52, m_YoungsModulusY(
"MPa")
53, m_YoungsModulusZ(
"MPa")
54, m_ShearModulusXY(
"MPa")
55, m_ShearModulusXZ(
"MPa")
56, m_ShearModulusYZ(
"MPa")
61, m_CalculatedArea(
"m^2")
double GetShearModulusYZ(string Units="MPa") const
double GetAlphaZ(string Units="/K") const
int GetFibresPerYarn() const
void SetPoissonsRatioZ(double dValue)
void SetShearModulusXY(double dValue, string Units="MPa")
Set the Shear modulus for a yarn.
double GetYarnLinearDensity(string Units="kg/m") const
void SetAlphaX(double dValue, string Units="/K")
Set the coefficients of thermal expansion for a yarn.
void SetYoungsModulus(double dValue, string Units="MPa")
Set the Young's modulus for a yarn.
virtual void PopulateTiXmlElement(TiXmlElement &Element, OUTPUT_TYPE OutputType)
Used for saving data to XML.
void SetFibreArea(double dValue, string Units="m^2")
Set the area occupied by fibres in a yarn cross-section.
virtual ~CProperties(void)
void SetAlphaY(double dValue, string Units="/K")
double GetFibreDiameter(string Units="m") const
void SetFibresPerYarn(int iValue)
Set the number of fibres in a yarn.
void SetShearModulusYZ(double dValue, string Units="MPa")
double GetAlphaY(string Units="/K") const
void SetYoungsModulusY(double dValue, string Units="MPa")
CProperty m_YoungsModulusX
void SetAlphaZ(double dValue, string Units="/K")
void SetYarnLinearDensity(double dValue, string Units="kg/m")
Set the fibre linear density, i.e. the mass per unit length of fibre.
double GetYoungsModulusY(string Units="MPa") const
double GetPoissonsRatioY() const
CProperty m_YoungsModulusZ
void SetFibreDiameter(double dValue, string Units="m")
Set the fibre diameter.
void SetFibreDensity(double dValue, string Units="kg/m^3")
Set the fibre density, i.e. the mass per unit volume of fibre.
CProperty m_FibreDiameter
double GetPoissonsRatioZ() const
CProperty m_YarnLinearDensity
void SetPoissonsRatio(double dValue)
Set the Poisson's ratio for a yarn.
double GetFibreArea(string Units="m^2") const
Get the area occupied by fibres given fibre diameter and number of fibres.
CProperty m_CalculatedArea
void SetDefaultProperties()
Set default properties as specified by DefaultProperties.h.
CProperty m_ShearModulusXY
double GetYoungsModulusX(string Units="MPa") const
double GetPoissonsRatioX() const
void SetShearModulusXZ(double dValue, string Units="MPa")
CProperty m_ShearModulusYZ
double GetAlphaX(string Units="/K") const
double GetShearModulusXZ(string Units="MPa") const
void SetYoungsModulusX(double dValue, string Units="MPa")
void SetPoissonsRatioY(double dValue)
void SetPoissonsRatioX(double dValue)
double GetFibreDensity(string Units="kg/m^3") const
double GetYoungsModulusZ(string Units="MPa") const
double GetShearModulusXY(string Units="MPa") const
void SetYoungsModulusZ(double dValue, string Units="MPa")
CProperty m_YoungsModulusY
CProperty m_ShearModulusXZ
double GetValue(string Units) const
void SetValue(double dValue, string Units)
double GetSIValue() const
void WriteAttribute(TiXmlElement &Element, string AttributeName)
void ReadAttribute(TiXmlElement &Element, string AttributeName)
Namespace containing a series of customised math operations not found in the standard c++ library.
std::string stringify(const T &x, int iPrecision=12, bool bScientific=true)
Function to convert a value (e.g. int, double, etc...) to a string.
double ConvertUnits(double dValue, std::string SourceUnits, std::string TargetUnits)