26CPropertiesTextile::CPropertiesTextile()
27: m_ArealDensity(
"kg/m^2")
29, m_MatrixYoungsModulus(
"MPa")
31, m_MatrixPoissonsRatio(0.1)
37:
CProperties(Element), m_ArealDensity(
"kg/m^2"), m_GeometryScale(
"mm")
38, m_MatrixYoungsModulus(
"MPa")
40, m_MatrixPoissonsRatio(0.1)
42 const string* pGeomScale = Element.Attribute(
string(
"GeometryScale"));
78 TGERROR(
"Unable to set geometry scale, units must represent a length!");
#define TGERROR(MESSAGE)
Macros used to report the file name and line number to the TexGenError and TexGenLog functions.
Class to store properties related to a textile and/or yarn.
virtual void PopulateTiXmlElement(TiXmlElement &Element, OUTPUT_TYPE OutputType)
Used for saving data to XML.
void SetArealDensity(double dValue, string Units="kg/m^2")
Set the areal density, i.e. the mass per unit area of fabric.
double GetMatrixPoissonsRatio() const
double GetMatrixYoungsModulus(string Units="MPa") const
CProperty m_MatrixYoungsModulus
double m_MatrixPoissonsRatio
void SetMatrixAlpha(double dValue)
Set the coefficient of thermal expansion for the matrix.
bool SetGeometryScale(string Units)
Set the scale of the geometry.
void SetDefaultMatrixProperties()
Set default matrix properties as specified by DefaultProperties.h.
double GetMatrixAlpha() const
~CPropertiesTextile(void)
void SetMatrixPoissonsRatio(double dValue)
Set the Poisson's ration for matrix.
virtual void PopulateTiXmlElement(TiXmlElement &Element, OUTPUT_TYPE OutputType)
Used for saving data to XML.
double GetArealDensity(string Units="kg/m^2") const
void SetMatrixYoungsModulus(double dValue, string Units="MPa")
Set the Young's modulus for matrix.
string GetGeometryScale() const
double GetValue(string Units) const
void SetValue(double dValue, string Units)
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.
bool CompatibleUnits(std::string SourceUnits, std::string TargetUnits, std::string *pErrorMessage)
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.