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

Represents a textile cell containing yarns. More...

#include <Textile.h>

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

Public Member Functions

 CTextile (void)
 
 CTextile (const vector< CYarn > &Yarns)
 
 CTextile (const CTextile &CopyMe)
 
 CTextile (TiXmlElement &Element)
 
virtual ~CTextile (void)
 
virtual CTextileCopy () const
 
virtual string GetType () const
 Derived class should return the class name. More...
 
CTextileoperator= (const CTextile &CopyMe)
 
virtual void PopulateTiXmlElement (TiXmlElement &Element, OUTPUT_TYPE OutputType)
 Used for saving data to XML. More...
 
int AddYarn (const CYarn &Yarn)
 Add a Yarn to the textile. More...
 
bool DeleteYarn (int iIndex)
 Delete an Yarn from the textile. More...
 
void DeleteYarns ()
 Delete all Yarns in the textile. More...
 
void AddNodesToMesh (CMesh &Mesh)
 Add the master nodes to the mesh. More...
 
void AddPathToMesh (CMesh &Mesh)
 Add yarn centerline path to mesh. More...
 
void AddSurfaceToMesh (CMesh &Mesh, bool bTrimToDomain=false)
 Create surface mesh for this textile and add it to the mesh object. More...
 
bool AddSurfaceToMesh (CMesh &Mesh, vector< CMesh > &DomainMeshes, bool bTrimToDomain=false)
 
void AddVolumeToMesh (vector< CMesh > &YarnMeshes, bool bTrimToDomain=false)
 Create volume mesh for each yarn in this textile and add to a vector of meshes. More...
 
void AddVolumeToMesh (CMesh &Mesh, bool bTrimToDomain=false)
 Create volume mesh for this textile and add it to the mesh object. More...
 
void AddCentrePlaneToMesh (CMesh &Mesh, bool bTrimToDomain=false)
 Create centre plane mesh for this textile and add it to the mesh object. More...
 
void GetPointInformation (const vector< XYZ > &Points, vector< POINT_INFO > &PointsInfo, double dTolerance=1e-9)
 Get useful information of a list of points. More...
 
void GetPointInformation (const vector< XYZ > &Points, vector< POINT_INFO > &PointsInfo, int iYarn, double dTolerance=1e-9, bool bSurface=false)
 Get information when know which yarn point is in. Saves iterating through entire textile. More...
 
void SavePointInformationToVTK (string Filename, const CMesh &Mesh, double dTolerance=1e-9)
 Output point information to VTK. More...
 
double GetApproximateSize ()
 Get an approximate size for the textile. More...
 
int DetectInterference (vector< float > &DistanceToSurface, vector< int > &YarnIndex, bool bTrimToDomain, CMesh *pInterferingPoints=NULL)
 Find out if any of the yarns are interfering with each other. More...
 
void Rotate (WXYZ Rotation, XYZ Origin=XYZ(0, 0, 0))
 Rotate the Textile by given quaternion. More...
 
void Translate (XYZ Vector)
 Translate the Textile by given vector. More...
 
virtual string GetDefaultName () const
 Get the default name to assign to a textile. More...
 
string GetName () const
 Get the name associated with this textile. More...
 
void AssignDomain (const CDomain &Domain)
 Assign a domain to the textile, will be used by default to trim the domain. More...
 
void RemoveDomain ()
 Remove the domain. More...
 
bool SetResolution (int Resolution)
 Set the resolution for all yarns in textile. More...
 
double GetYarnLength (string Units="m")
 Calculate the total yarn length. More...
 
double GetYarnLengthPerUnitArea (string Units="/m")
 Calculate the total yarn length per unit area. More...
 
double GetYarnVolume (string Units="m^3")
 Calculate the yarn volume. More...
 
double GetYarnVolumePerUnitArea (string Units="m")
 Calculate the total yarn volume per unit area. More...
 
double GetFibreVolume (string Units="m^3")
 Calculate the volume of fibre in the yarn, for just the nodes specified. More...
 
double GetFibreVolumePerUnitArea (string Units="m")
 Calculate the volume of fibre per unit area. More...
 
double GetFibreYarnVolumeFraction ()
 Calculates the total fibre volume fraction for all yarns. More...
 
double GetQuickDomainVolumeFraction ()
 Calculates the fibre volume fraction for the domain. More...
 
double GetDomainVolumeFraction ()
 Calculates the fibre volume fraction for the domain. More...
 
void SetAllYarnsYoungsModulusX (double dValue, string Units="MPa")
 Set the Youngs Modulus for all yarns in textile. More...
 
void SetAllYarnsYoungsModulusY (double dValue, string Units="MPa")
 
void SetAllYarnsYoungsModulusZ (double dValue, string Units="MPa")
 
void SetAllYarnsShearModulusXY (double dValue, string Units="MPa")
 Set the shear modulus for all yarns in textile. More...
 
void SetAllYarnsShearModulusXZ (double dValue, string Units="MPa")
 
void SetAllYarnsShearModulusYZ (double dValue, string Units="MPa")
 
void SetAllYarnsAlphaX (double dValue, string Units="/K")
 Set the coefficient of thermal expansion for all yarns in textile. More...
 
void SetAllYarnsAlphaY (double dValue, string Units="/K")
 
void SetAllYarnsAlphaZ (double dValue, string Units="/K")
 
void SetAllYarnsPoissonsRatioX (double dValue)
 Set the Poisson's ratio for all yarns in textile. More...
 
void SetAllYarnsPoissonsRatioY (double dValue)
 
void SetAllYarnsPoissonsRatioZ (double dValue)
 
bool ConvertToInterpNodes () const
 
CTextileWeaveGetWeave ()
 If this textile is a woven textile get a pointer of that type else return NULL. More...
 
CTextileWeave2DGetWeave2D ()
 
CTextile3DWeaveGet3DWeave ()
 
CTextileOrthogonalGetOrthogonalWeave ()
 
CTextileLayeredGetLayeredTextile ()
 
CTextileLayerToLayerGetLayerToLayerWeave ()
 
CTextileDecoupledLToLGetDecoupledLToLWeave ()
 
CTextileAngleInterlockGetAngleInterlockWeave ()
 
int GetNumYarns () const
 
const CYarnGetYarn (int iIndex) const
 
CYarnGetYarn (int iIndex)
 
const vector< CYarn > & GetYarns () const
 
vector< CYarn > & GetYarns ()
 
const CDomainGetDomain () const
 
CDomainGetDomain ()
 
bool SetGeometryScale (string Units)
 Set the scale of the geometry. More...
 
void SetArealDensity (double dValue, string Units="kg/m^2")
 Set the areal density, i.e. the mass per unit area of fabric. More...
 
void ResetArealDensity ()
 
void SetMatrixYoungsModulus (double dValue, string Units="MPa")
 Set the Young's modulus for matrix. More...
 
void SetMatrixPoissonsRatio (double dValue)
 Set the Poisson's ration for matrix. More...
 
void SetMatrixAlpha (double dValue)
 Set the coefficient of thermal expansion for the matrix. More...
 
string GetGeometryScale () const
 
double GetArealDensity (string Units="kg/m^2") const
 
double GetMatrixYoungsModulus (string Units="MPa") const
 
double GetMatrixPoissonsRatio () const
 
double GetMatrixAlpha () const
 
void SetYarnLinearDensity (double dValue, string Units="kg/m")
 Set the fibre linear density, i.e. the mass per unit length of fibre. More...
 
void SetFibreDensity (double dValue, string Units="kg/m^3")
 Set the fibre density, i.e. the mass per unit volume of fibre. More...
 
void SetFibreDiameter (double dValue, string Units="m")
 Set the fibre diameter. More...
 
void SetFibresPerYarn (int iValue)
 Set the number of fibres in a yarn. More...
 
void SetYoungsModulus (double dValue, string Units="MPa")
 Set the Young's modulus for a yarn. More...
 
void SetYoungsModulusX (double dValue, string Units="MPa")
 
void SetYoungsModulusY (double dValue, string Units="MPa")
 
void SetYoungsModulusZ (double dValue, string Units="MPa")
 
void SetShearModulusXY (double dValue, string Units="MPa")
 Set the Shear modulus for a yarn. More...
 
void SetShearModulusXZ (double dValue, string Units="MPa")
 
void SetShearModulusYZ (double dValue, string Units="MPa")
 
void SetPoissonsRatio (double dValue)
 Set the Poisson's ratio for a yarn. More...
 
void SetPoissonsRatioX (double dValue)
 
void SetPoissonsRatioY (double dValue)
 
void SetPoissonsRatioZ (double dValue)
 
void SetAlphaX (double dValue, string Units="/K")
 Set the coefficients of thermal expansion for a yarn. More...
 
void SetAlphaY (double dValue, string Units="/K")
 
void SetAlphaZ (double dValue, string Units="/K")
 
void SetFibreArea (double dValue, string Units="m^2")
 Set the area occupied by fibres in a yarn cross-section. More...
 
void ResetYarnLinearDensity ()
 
void ResetFibreDensity ()
 
void ResetFibreDiameter ()
 
void ResetFibresPerYarn ()
 
void ResetFibreArea ()
 
void ResetYoungsModulusX ()
 
void ResetYoungsModulusY ()
 
void ResetYoungsModulusZ ()
 
void ResetShearModulusXY ()
 
void ResetShearModulusXZ ()
 
void ResetShearModulusYZ ()
 
void ResetAlphaX ()
 
void ResetAlphaY ()
 
void ResetAlphaZ ()
 
void ResetPoissonsRatioX ()
 
void ResetPoissonsRatioY ()
 
void ResetPoissonsRatioZ ()
 
double GetYarnLinearDensity (string Units="kg/m") const
 
double GetFibreDensity (string Units="kg/m^3") const
 
double GetFibreDiameter (string Units="m") const
 
int GetFibresPerYarn () const
 
double GetFibreArea (string Units="m^2") const
 Get the area occupied by fibres given fibre diameter and number of fibres. More...
 
double GetYoungsModulusX (string Units="MPa") const
 
double GetYoungsModulusY (string Units="MPa") const
 
double GetYoungsModulusZ (string Units="MPa") const
 
double GetShearModulusXY (string Units="MPa") const
 
double GetShearModulusXZ (string Units="MPa") const
 
double GetShearModulusYZ (string Units="MPa") const
 
double GetAlphaX (string Units="/K") const
 
double GetAlphaY (string Units="/K") const
 
double GetAlphaZ (string Units="/K") const
 
double GetPoissonsRatioX () const
 
double GetPoissonsRatioY () const
 
double GetPoissonsRatioZ () const
 

Public Attributes

CProperty m_ArealDensity
 
CProperty m_MatrixYoungsModulus
 
CProperty m_YarnLinearDensity
 
CProperty m_FibreDensity
 
CProperty m_FibreArea
 
CProperty m_FibreDiameter
 
CProperty m_YoungsModulusX
 
CProperty m_YoungsModulusY
 
CProperty m_YoungsModulusZ
 
CProperty m_ShearModulusXY
 
CProperty m_ShearModulusXZ
 
CProperty m_ShearModulusYZ
 
CProperty m_AlphaX
 
CProperty m_AlphaY
 
CProperty m_AlphaZ
 
CProperty m_CalculatedArea
 

Protected Member Functions

bool BuildTextileIfNeeded () const
 Build the textile only if needed. More...
 
virtual bool BuildTextile () const
 Build the textile even if it is already built (virtual function which does nothing by default) More...
 
void CleanUp ()
 
int AddYarn (const CYarn &Yarn) const
 
void SetDefaultMatrixProperties ()
 Set default matrix properties as specified by DefaultProperties.h. More...
 
void SetDefaultProperties ()
 Set default properties as specified by DefaultProperties.h. More...
 

Protected Attributes

vector< CYarnm_Yarns
 Vector of yarns contained within this cell. More...
 
bool m_bNeedsBuilding
 Variable which keeps track of wether the textile needs building or not. More...
 
CObjectContainer< CDomainm_pDomain
 
string m_GeometryScale
 
double m_MatrixPoissonsRatio
 
double m_MatrixAlpha
 
int m_iFibresPerYarn
 
double m_PoissonsRatioX
 
double m_PoissonsRatioY
 
double m_PoissonsRatioZ
 

Detailed Description

Represents a textile cell containing yarns.

Definition at line 38 of file Textile.h.

Constructor & Destructor Documentation

◆ CTextile() [1/4]

CTextile::CTextile ( void  )

Definition at line 29 of file Textile.cpp.

◆ CTextile() [2/4]

CTextile::CTextile ( const vector< CYarn > &  Yarns)

Definition at line 34 of file Textile.cpp.

References m_Yarns.

◆ CTextile() [3/4]

CTextile::CTextile ( const CTextile CopyMe)

Definition at line 40 of file Textile.cpp.

◆ CTextile() [4/4]

CTextile::CTextile ( TiXmlElement &  Element)

Definition at line 65 of file Textile.cpp.

References AddYarn(), FOR_EACH_TIXMLELEMENT, m_bNeedsBuilding, and m_pDomain.

◆ ~CTextile()

CTextile::~CTextile ( void  )
virtual

Definition at line 46 of file Textile.cpp.

Member Function Documentation

◆ AddCentrePlaneToMesh()

void CTextile::AddCentrePlaneToMesh ( CMesh Mesh,
bool  bTrimToDomain = false 
)

Create centre plane mesh for this textile and add it to the mesh object.

Parameters
MeshMesh to add elements to
bTrimToDomainMesh inserted will be clipped to the domain size

Definition at line 319 of file Textile.cpp.

References BuildTextileIfNeeded(), m_pDomain, and m_Yarns.

◆ AddNodesToMesh()

void CTextile::AddNodesToMesh ( CMesh Mesh)

Add the master nodes to the mesh.

Definition at line 165 of file Textile.cpp.

References BuildTextileIfNeeded(), and m_Yarns.

◆ AddPathToMesh()

void CTextile::AddPathToMesh ( CMesh Mesh)

Add yarn centerline path to mesh.

Definition at line 176 of file Textile.cpp.

References BuildTextileIfNeeded(), and m_Yarns.

◆ AddSurfaceToMesh() [1/2]

void CTextile::AddSurfaceToMesh ( CMesh Mesh,
bool  bTrimToDomain = false 
)

Create surface mesh for this textile and add it to the mesh object.

Parameters
MeshMesh to add elements to
bTrimToDomainMesh inserted will be clipped to the domain size

Definition at line 187 of file Textile.cpp.

References BuildTextileIfNeeded(), m_pDomain, and m_Yarns.

Referenced by TexGen::CSurfaceMesh::SaveSurfaceMesh(), and TexGen::CTetgenMesh::SaveTetgenMesh().

◆ AddSurfaceToMesh() [2/2]

bool CTextile::AddSurfaceToMesh ( CMesh Mesh,
vector< CMesh > &  DomainMeshes,
bool  bTrimToDomain = false 
)

Create surface mesh for this textile and add it to the mesh object Create meshes for domain plane faces with yarn intersection polygons included

Parameters
MeshMesh to add elements to
bTrimToDomainMesh inserted will be clipped to the domain size
DomainMeshesVector of meshes, one for each face of the domain

Definition at line 201 of file Textile.cpp.

References TexGen::CMesh::AddElement(), TexGen::CMesh::AddNode(), BuildTextileIfNeeded(), TexGen::CMesh::ConvertTriToQuad(), TexGen::CMesh::GetIndices(), TexGen::CMesh::GetNode(), TexGen::CMesh::GetNumNodes(), m_pDomain, m_Yarns, TexGen::CMesh::NUM_ELEMENT_TYPES, TexGen::CMesh::POLYGON, and TGERROR.

◆ AddVolumeToMesh() [1/2]

void CTextile::AddVolumeToMesh ( CMesh Mesh,
bool  bTrimToDomain = false 
)

Create volume mesh for this textile and add it to the mesh object.

Parameters
MeshMesh to add elements to
bTrimToDomainMesh inserted will be clipped to the domain size

Definition at line 287 of file Textile.cpp.

References BuildTextileIfNeeded(), m_pDomain, and m_Yarns.

◆ AddVolumeToMesh() [2/2]

void CTextile::AddVolumeToMesh ( vector< CMesh > &  YarnMeshes,
bool  bTrimToDomain = false 
)

Create volume mesh for each yarn in this textile and add to a vector of meshes.

Parameters
YarnMeshesVector of meshes, one for each yarn, to add elements to
bTrimToDomainMesh inserted will be clipped to the domain size

Definition at line 301 of file Textile.cpp.

References BuildTextileIfNeeded(), m_pDomain, and m_Yarns.

Referenced by TexGen::CAdjustMeshInterference::AdjustTextileMesh(), and TexGen::CSimulationAbaqus::CreateAbaqusInputFile().

◆ AddYarn() [1/2]

int CTextile::AddYarn ( const CYarn Yarn)

◆ AddYarn() [2/2]

int CTextile::AddYarn ( const CYarn Yarn) const
protected

Definition at line 137 of file Textile.cpp.

References m_Yarns.

◆ AssignDomain()

void CTextile::AssignDomain ( const CDomain Domain)

Assign a domain to the textile, will be used by default to trim the domain.

Definition at line 724 of file Textile.cpp.

References m_pDomain.

Referenced by TexGen::CTextile3DWeave::AssignDefaultDomain(), TexGen::CTextileWeave::AssignDefaultDomain(), and TexGen::CTextile3DWeave::SetDomainZValues().

◆ BuildTextile()

virtual bool TexGen::CTextile::BuildTextile ( ) const
inlineprotectedvirtual

Build the textile even if it is already built (virtual function which does nothing by default)

Note: This is only relavant for classes which derive from CTextile and handle the construction of yarns automatically. Note that it may seem strange that this function should be declared as const, but it is to allow dynamic building of the textile when necessary even from within const functions.

Reimplemented in TexGen::CShearedTextileWeave2D, TexGen::CTextile3DWeave, TexGen::CTextileAngleInterlock, TexGen::CTextileDecoupledLToL, TexGen::CTextileLayerToLayer, TexGen::CTextileOffsetAngleInterlock, TexGen::CTextileOrthogonal, TexGen::CTextileWeave, and TexGen::CTextileWeave2D.

Definition at line 307 of file Textile.h.

Referenced by BuildTextileIfNeeded().

◆ BuildTextileIfNeeded()

bool CTextile::BuildTextileIfNeeded ( ) const
protected

◆ CleanUp()

void TexGen::CTextile::CleanUp ( )
protected

Remove all dynamic memory (called by destructor and copy constructor) Not to be used to empty the yarn data for re-use

◆ ConvertToInterpNodes()

bool CTextile::ConvertToInterpNodes ( ) const

Converts each yarn with constant cross-section to interpolate sections between nodes Sets the section at each node to the original section

Definition at line 1201 of file Textile.cpp.

References m_Yarns.

Referenced by TexGen::CShearedTextileWeave2D::Refine().

◆ Copy()

virtual CTextile * TexGen::CTextile::Copy ( ) const
inlinevirtual

◆ DeleteYarn()

bool CTextile::DeleteYarn ( int  iIndex)

Delete an Yarn from the textile.

Parameters
iIndexThe index of the yarn to delete
Returns
false if the index is out of range

Definition at line 152 of file Textile.cpp.

References m_Yarns.

◆ DeleteYarns()

void CTextile::DeleteYarns ( )

Delete all Yarns in the textile.

Definition at line 160 of file Textile.cpp.

References m_Yarns.

◆ DetectInterference()

int CTextile::DetectInterference ( vector< float > &  DistanceToSurface,
vector< int > &  YarnIndex,
bool  bTrimToDomain,
CMesh pInterferingPoints = NULL 
)

◆ Get3DWeave()

CTextile3DWeave * CTextile::Get3DWeave ( )

Definition at line 867 of file Textile.cpp.

◆ GetAlphaX()

double CProperties::GetAlphaX ( string  Units = "/K") const
inherited

◆ GetAlphaY()

double CProperties::GetAlphaY ( string  Units = "/K") const
inherited

◆ GetAlphaZ()

double CProperties::GetAlphaZ ( string  Units = "/K") const
inherited

◆ GetAngleInterlockWeave()

CTextileAngleInterlock * CTextile::GetAngleInterlockWeave ( )

Definition at line 887 of file Textile.cpp.

◆ GetApproximateSize()

double CTextile::GetApproximateSize ( )

Get an approximate size for the textile.

This is useful for rendering where the size of certain objects rendered should be relative to the approximate size of the textile.

Definition at line 556 of file Textile.cpp.

References BuildTextileIfNeeded(), TexGen::GetLength(), m_Yarns, TexGen::Max(), and TexGen::Min().

Referenced by TexGen::CTexGenRenderer::RenderInterference(), TexGen::CTexGenRenderer::RenderNodes(), and TexGen::CTexGenRenderer::RenderPath().

◆ GetArealDensity()

double CPropertiesTextile::GetArealDensity ( string  Units = "kg/m^2") const
inherited

◆ GetDecoupledLToLWeave()

CTextileDecoupledLToL * CTextile::GetDecoupledLToLWeave ( )

Definition at line 882 of file Textile.cpp.

◆ GetDefaultName()

virtual string TexGen::CTextile::GetDefaultName ( ) const
inlinevirtual

Get the default name to assign to a textile.

Derived classes should have different default names based on the type of textile

Reimplemented in TexGen::CTextile3DWeave, TexGen::CTextileLayered, TexGen::CTextileWeave, TexGen::CTextileWeave2D, and TexGen::CTextileWeave3D.

Definition at line 162 of file Textile.h.

Referenced by TexGen::CTexGen::AddTextile().

◆ GetDomain() [1/2]

CDomain * TexGen::CTextile::GetDomain ( )
inline

Definition at line 288 of file Textile.h.

◆ GetDomain() [2/2]

const CDomain * TexGen::CTextile::GetDomain ( ) const
inline

Definition at line 287 of file Textile.h.

Referenced by TexGen::CAdjustMeshInterference::AdjustSectionMeshes(), TexGen::CAdjustMeshInterference::AdjustTextileMesh(), TexGen::CGeometrySolver::AssignFibreDirectionToElements(), TexGen::CPrismVoxelMesh::CalculateVoxelSizes(), TexGen::CRectangularVoxelMesh::CalculateVoxelSizes(), TexGen::CRotatedVoxelMesh::CalculateVoxelSizes(), TexGen::CShearedVoxelMesh::CalculateVoxelSizes(), TexGen::CExporter::ConvertTextile(), TexGen::CSimulationAbaqus::CreateAbaqusInputFile(), TexGen::CBasicVolumes::CreateBasicVolumes(), TexGen::CGeometrySolver::CreateSystem(), TexGen::CShearedTextileWeave2D::CreateTopAndBottomMeshes(), TexGen::CTextileDeformer::DeformTextile(), TexGen::CMesher::FillYarnTangentsData(), TexGen::CPrismVoxelMesh::GetElementMap(), TexGen::COctreeVoxelMesh::OutputPeriodicBoundaries(), TexGen::CStaggeredVoxelMesh::OutputPeriodicBoundaries(), TexGen::CVoxelMesh::OutputPeriodicBoundaries(), TexGen::CShearedTextileWeave2D::Refine(), TexGen::CTexGenRenderer::RefreshYarn(), TexGen::CTexGenRenderer::RenderDomain(), TexGen::CTexGenRenderer::RenderDomainAxes(), TexGen::CTexGenRenderer::RenderGrid(), TexGen::CTexGenRenderer::RenderInterference(), TexGen::CTexGenRenderer::RenderMesh(), TexGen::CTexGenRenderer::RenderTextile(), TexGen::CShellElementExport::SaveShellElementToABAQUS(), TexGen::CSurfaceMesh::SaveSurfaceMesh(), TexGen::CMesher::SaveVolumeMeshToABAQUS(), TexGen::CVoxelMesh::SaveVoxelMesh(), TexGen::COctreeVoxelMesh::SaveVoxelMesh(), and TexGen::CTextile3DWeave::SetDomainZValues().

◆ GetDomainVolumeFraction()

double CTextile::GetDomainVolumeFraction ( )

◆ GetFibreArea()

double CProperties::GetFibreArea ( string  Units = "m^2") const
inherited

Get the area occupied by fibres given fibre diameter and number of fibres.

Either returns the value stored in m_dFibreArea or calculates it from m_iFibresPerYarn and m_FibreDiameter if they are set OR from m_dYarnLinearDensity and m_dFibreDensity if they are set.

Definition at line 251 of file Properties.cpp.

References TexGen::ConvertUnits(), TexGen::CProperty::GetSIValue(), TexGen::CProperty::GetValue(), TexGen::CProperty::IsSet(), TexGen::CProperties::m_CalculatedArea, TexGen::CProperties::m_FibreArea, TexGen::CProperties::m_FibreDensity, TexGen::CProperties::m_FibreDiameter, TexGen::CProperties::m_iFibresPerYarn, TexGen::CProperties::m_YarnLinearDensity, and PI.

Referenced by TexGen::CTextile3DWeave::GetFibreArea(), TexGen::CYarn::GetFibreVolume(), TexGen::CSimulationAbaqus::GetSectionVolumeFraction(), and TexGen::CYarn::PointInsideYarn().

◆ GetFibreDensity()

double CProperties::GetFibreDensity ( string  Units = "kg/m^3") const
inherited

◆ GetFibreDiameter()

double CProperties::GetFibreDiameter ( string  Units = "m") const
inherited

◆ GetFibresPerYarn()

int CProperties::GetFibresPerYarn ( ) const
inherited

◆ GetFibreVolume()

double CTextile::GetFibreVolume ( string  Units = "m^3")

Calculate the volume of fibre in the yarn, for just the nodes specified.

Calculates the raw volume of fibre without taking account of repeat vectors or unit cell sizes. This only works when the linear density of the yarns and fibre density are specified.

Definition at line 796 of file Textile.cpp.

References BuildTextileIfNeeded(), and m_Yarns.

Referenced by GetFibreYarnVolumeFraction().

◆ GetFibreVolumePerUnitArea()

double CTextile::GetFibreVolumePerUnitArea ( string  Units = "m")

Calculate the volume of fibre per unit area.

Calculates the volume of fibre per unit area of fabric. This only works when the areal density and fibre density is specified. Alternatively if linear density and fibre density is specified calculation will be based on these values.

Definition at line 809 of file Textile.cpp.

References BuildTextileIfNeeded(), TexGen::ConvertUnits(), TexGen::CProperty::GetSIValue(), TexGen::CProperty::IsSet(), TexGen::CPropertiesTextile::m_ArealDensity, TexGen::CProperties::m_FibreDensity, and m_Yarns.

Referenced by GetFibreYarnVolumeFraction().

◆ GetFibreYarnVolumeFraction()

double CTextile::GetFibreYarnVolumeFraction ( )

Calculates the total fibre volume fraction for all yarns.

Calculates the volume of fibre divided by the volume of yarn. See GetFibreVolume and GetYarnVolume functions for requirements.

Definition at line 838 of file Textile.cpp.

References BuildTextileIfNeeded(), GetFibreVolume(), GetFibreVolumePerUnitArea(), GetYarnVolume(), and GetYarnVolumePerUnitArea().

◆ GetGeometryScale()

string CPropertiesTextile::GetGeometryScale ( ) const
inherited

◆ GetLayeredTextile()

CTextileLayered * CTextile::GetLayeredTextile ( )

Definition at line 862 of file Textile.cpp.

◆ GetLayerToLayerWeave()

CTextileLayerToLayer * CTextile::GetLayerToLayerWeave ( )

Definition at line 877 of file Textile.cpp.

◆ GetMatrixAlpha()

double CPropertiesTextile::GetMatrixAlpha ( ) const
inherited

◆ GetMatrixPoissonsRatio()

double CPropertiesTextile::GetMatrixPoissonsRatio ( ) const
inherited

◆ GetMatrixYoungsModulus()

double CPropertiesTextile::GetMatrixYoungsModulus ( string  Units = "MPa") const
inherited

◆ GetName()

string CTextile::GetName ( ) const

◆ GetNumYarns()

int CTextile::GetNumYarns ( ) const

◆ GetOrthogonalWeave()

CTextileOrthogonal * CTextile::GetOrthogonalWeave ( )

Definition at line 872 of file Textile.cpp.

◆ GetPointInformation() [1/2]

void CTextile::GetPointInformation ( const vector< XYZ > &  Points,
vector< POINT_INFO > &  PointsInfo,
double  dTolerance = 1e-9 
)

Get useful information of a list of points.

Pass in a vector of point coordinates, for each point it will be determined if it lies within a yarn. If it does then the yarn index along with the tangent of the yarn at that point will be returned along with its 2D location relative to the yarn center line. If the point doesn't lie within the yarn an index of -1 will be returned.

Parameters
PointsList of points for which the tangents is required
PointsInfoInformation about the point as described in the POINT_INFO structure
dTolerancePoints outside the yarn by a distance less than this tolerance will be considered part of the yarn

Definition at line 410 of file Textile.cpp.

References BuildTextileIfNeeded(), TexGen::POINT_INFO::dSurfaceDistance, TexGen::POINT_INFO::dVolumeFraction, TexGen::CDomain::GetTranslations(), TexGen::POINT_INFO::iYarnIndex, TexGen::POINT_INFO::Location, m_Yarns, TexGen::Max(), TexGen::Min(), TexGen::POINT_INFO::Orientation, TexGen::POINT_INFO::Up, and TexGen::POINT_INFO::YarnTangent.

Referenced by TexGen::CSimulationAbaqus::CreateAbaqusInputFile(), TexGen::COctreeVoxelMesh::fillMaterialInfo(), TexGen::CShellElementExport::GetElementInfo(), TexGen::COctreeVoxelMesh::OutputNodes(), TexGen::CPrismVoxelMesh::OutputNodes(), TexGen::CRectangularVoxelMesh::OutputNodes(), TexGen::CRotatedVoxelMesh::OutputNodes(), TexGen::CShearedVoxelMesh::OutputNodes(), TexGen::CTexGenRenderer::RenderGrid(), TexGen::CTetgenMesh::SaveMesh(), SavePointInformationToVTK(), and TexGen::COctreeVoxelMesh::storePointInfo().

◆ GetPointInformation() [2/2]

void CTextile::GetPointInformation ( const vector< XYZ > &  Points,
vector< POINT_INFO > &  PointsInfo,
int  iYarn,
double  dTolerance = 1e-9,
bool  bSurface = false 
)

Get information when know which yarn point is in. Saves iterating through entire textile.

Parameters
bSurfacedefault is False. Set to True if getting point information for surface mesh export. Assumes Points are on yarn surface and doesn't do PointInside check

Definition at line 465 of file Textile.cpp.

References BuildTextileIfNeeded(), TexGen::POINT_INFO::dSurfaceDistance, TexGen::POINT_INFO::dVolumeFraction, TexGen::CDomain::GetTranslations(), TexGen::POINT_INFO::iYarnIndex, TexGen::POINT_INFO::Location, m_Yarns, TexGen::Max(), TexGen::Min(), TexGen::POINT_INFO::Orientation, TexGen::POINT_INFO::Up, and TexGen::POINT_INFO::YarnTangent.

◆ GetPoissonsRatioX()

double CProperties::GetPoissonsRatioX ( ) const
inherited

◆ GetPoissonsRatioY()

double CProperties::GetPoissonsRatioY ( ) const
inherited

◆ GetPoissonsRatioZ()

double CProperties::GetPoissonsRatioZ ( ) const
inherited

◆ GetQuickDomainVolumeFraction()

double CTextile::GetQuickDomainVolumeFraction ( )

Calculates the fibre volume fraction for the domain.

Uses the fibre volume fraction for whole yarns which may give inaccuracies where the yarn cross-section varies along its length. Useful for quick approximation as the more accurate GetDomainVolumeFraction may be slow.

Definition at line 1092 of file Textile.cpp.

References BuildTextileIfNeeded(), TexGen::CMesh::CalculateVolume(), m_pDomain, m_Yarns, TGERROR, and TOL.

◆ GetShearModulusXY()

double CProperties::GetShearModulusXY ( string  Units = "MPa") const
inherited

◆ GetShearModulusXZ()

double CProperties::GetShearModulusXZ ( string  Units = "MPa") const
inherited

◆ GetShearModulusYZ()

double CProperties::GetShearModulusYZ ( string  Units = "MPa") const
inherited

◆ GetType()

virtual string TexGen::CTextile::GetType ( ) const
inlinevirtual

◆ GetWeave()

CTextileWeave * CTextile::GetWeave ( )

If this textile is a woven textile get a pointer of that type else return NULL.

Internally the function just returns dynamic_cast<CTextileWeave*>(this) This is mainly usefull in the python interface because type casting is not supported in this language.

Definition at line 852 of file Textile.cpp.

◆ GetWeave2D()

CTextileWeave2D * CTextile::GetWeave2D ( )

Definition at line 857 of file Textile.cpp.

◆ GetYarn() [1/2]

CYarn * CTextile::GetYarn ( int  iIndex)

Definition at line 682 of file Textile.cpp.

References BuildTextileIfNeeded(), m_Yarns, NULL, and TGERROR.

◆ GetYarn() [2/2]

const CYarn * CTextile::GetYarn ( int  iIndex) const

◆ GetYarnLength()

double CTextile::GetYarnLength ( string  Units = "m")

Calculate the total yarn length.

This is the total length of yarn without taking in account of repeat vectors or unit cell sizes. It is calculated from the geometry alone and uses the m_GeometryScale to give the value in the requested units.

Definition at line 734 of file Textile.cpp.

References BuildTextileIfNeeded(), and m_Yarns.

◆ GetYarnLengthPerUnitArea()

double CTextile::GetYarnLengthPerUnitArea ( string  Units = "/m")

Calculate the total yarn length per unit area.

Calculates the total length of yarn in the unit cell taking into account the repeat vectors. This function only works when each yarn has two repeat vectors assigned to it, otherwise it does not make sense to obtain a length per unit AREA.

Definition at line 747 of file Textile.cpp.

References BuildTextileIfNeeded(), and m_Yarns.

◆ GetYarnLinearDensity()

double CProperties::GetYarnLinearDensity ( string  Units = "kg/m") const
inherited

◆ GetYarns() [1/2]

vector< CYarn > & CTextile::GetYarns ( )

Definition at line 670 of file Textile.cpp.

References BuildTextileIfNeeded(), and m_Yarns.

◆ GetYarns() [2/2]

const vector< CYarn > & CTextile::GetYarns ( ) const

◆ GetYarnVolume()

double CTextile::GetYarnVolume ( string  Units = "m^3")

Calculate the yarn volume.

This is the raw volume without taking account of repeat vectors or unit cell sizes. It is calculated from the geometry alone and uses the m_GeometryScale to give the value in the requested units.

Definition at line 765 of file Textile.cpp.

References BuildTextileIfNeeded(), and m_Yarns.

Referenced by GetFibreYarnVolumeFraction().

◆ GetYarnVolumePerUnitArea()

double CTextile::GetYarnVolumePerUnitArea ( string  Units = "m")

Calculate the total yarn volume per unit area.

Calculates the volume of yarn in the unit cell taking into account the repeat vectors. This function only works when each yarn has two repeat vectors assigned to it, otherwise it does not make sense to obtain a volume per unit AREA. If 1 repeat vector is given then a volume per unit length would be more suitable, similarly 2 repeat vectors would give a volume per unit volume (i.e. a volume fraction of region occupied by yarns).

Definition at line 778 of file Textile.cpp.

References BuildTextileIfNeeded(), and m_Yarns.

Referenced by GetFibreYarnVolumeFraction().

◆ GetYoungsModulusX()

double CProperties::GetYoungsModulusX ( string  Units = "MPa") const
inherited

◆ GetYoungsModulusY()

double CProperties::GetYoungsModulusY ( string  Units = "MPa") const
inherited

◆ GetYoungsModulusZ()

double CProperties::GetYoungsModulusZ ( string  Units = "MPa") const
inherited

◆ operator=()

CTextile & CTextile::operator= ( const CTextile CopyMe)

Definition at line 50 of file Textile.cpp.

References m_bNeedsBuilding, m_pDomain, and m_Yarns.

◆ PopulateTiXmlElement()

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

◆ RemoveDomain()

void CTextile::RemoveDomain ( )

Remove the domain.

Definition at line 729 of file Textile.cpp.

References m_pDomain.

Referenced by TexGen::CTextile3DWeave::SetDomainZValues().

◆ ResetAlphaX()

void TexGen::CProperties::ResetAlphaX ( )
inlineinherited

Definition at line 165 of file Properties.h.

◆ ResetAlphaY()

void TexGen::CProperties::ResetAlphaY ( )
inlineinherited

Definition at line 166 of file Properties.h.

◆ ResetAlphaZ()

void TexGen::CProperties::ResetAlphaZ ( )
inlineinherited

Definition at line 167 of file Properties.h.

◆ ResetArealDensity()

void TexGen::CPropertiesTextile::ResetArealDensity ( )
inlineinherited

Definition at line 56 of file PropertiesTextile.h.

◆ ResetFibreArea()

void TexGen::CProperties::ResetFibreArea ( )
inlineinherited

Definition at line 158 of file Properties.h.

◆ ResetFibreDensity()

void TexGen::CProperties::ResetFibreDensity ( )
inlineinherited

Definition at line 155 of file Properties.h.

◆ ResetFibreDiameter()

void TexGen::CProperties::ResetFibreDiameter ( )
inlineinherited

Definition at line 156 of file Properties.h.

◆ ResetFibresPerYarn()

void TexGen::CProperties::ResetFibresPerYarn ( )
inlineinherited

Definition at line 157 of file Properties.h.

◆ ResetPoissonsRatioX()

void TexGen::CProperties::ResetPoissonsRatioX ( )
inlineinherited

Definition at line 168 of file Properties.h.

◆ ResetPoissonsRatioY()

void TexGen::CProperties::ResetPoissonsRatioY ( )
inlineinherited

Definition at line 169 of file Properties.h.

◆ ResetPoissonsRatioZ()

void TexGen::CProperties::ResetPoissonsRatioZ ( )
inlineinherited

Definition at line 170 of file Properties.h.

◆ ResetShearModulusXY()

void TexGen::CProperties::ResetShearModulusXY ( )
inlineinherited

Definition at line 162 of file Properties.h.

◆ ResetShearModulusXZ()

void TexGen::CProperties::ResetShearModulusXZ ( )
inlineinherited

Definition at line 163 of file Properties.h.

◆ ResetShearModulusYZ()

void TexGen::CProperties::ResetShearModulusYZ ( )
inlineinherited

Definition at line 164 of file Properties.h.

◆ ResetYarnLinearDensity()

void TexGen::CProperties::ResetYarnLinearDensity ( )
inlineinherited

Definition at line 154 of file Properties.h.

◆ ResetYoungsModulusX()

void TexGen::CProperties::ResetYoungsModulusX ( )
inlineinherited

Definition at line 159 of file Properties.h.

◆ ResetYoungsModulusY()

void TexGen::CProperties::ResetYoungsModulusY ( )
inlineinherited

Definition at line 160 of file Properties.h.

◆ ResetYoungsModulusZ()

void TexGen::CProperties::ResetYoungsModulusZ ( )
inlineinherited

Definition at line 161 of file Properties.h.

◆ Rotate()

void CTextile::Rotate ( WXYZ  Rotation,
XYZ  Origin = XYZ(0,0,0) 
)

Rotate the Textile by given quaternion.

Definition at line 333 of file Textile.cpp.

References BuildTextileIfNeeded(), and m_Yarns.

◆ SavePointInformationToVTK()

void CTextile::SavePointInformationToVTK ( string  Filename,
const CMesh Mesh,
double  dTolerance = 1e-9 
)

Output point information to VTK.

Makes a call to GetPointInformation and stores the result in a VTK unstructured grid file

Definition at line 521 of file Textile.cpp.

References TexGen::CMeshDataBase::ELEMENT, TexGen::CMesh::GetNodes(), GetPointInformation(), TexGen::CMeshData< T >::m_Data, and TexGen::CMesh::SaveToVTK().

◆ SetAllYarnsAlphaX()

void CTextile::SetAllYarnsAlphaX ( double  dValue,
string  Units = "/K" 
)

Set the coefficient of thermal expansion for all yarns in textile.

Definition at line 1020 of file Textile.cpp.

References BuildTextileIfNeeded(), and m_Yarns.

◆ SetAllYarnsAlphaY()

void CTextile::SetAllYarnsAlphaY ( double  dValue,
string  Units = "/K" 
)

Definition at line 1032 of file Textile.cpp.

References BuildTextileIfNeeded(), and m_Yarns.

◆ SetAllYarnsAlphaZ()

void CTextile::SetAllYarnsAlphaZ ( double  dValue,
string  Units = "/K" 
)

Definition at line 1044 of file Textile.cpp.

References BuildTextileIfNeeded(), and m_Yarns.

◆ SetAllYarnsPoissonsRatioX()

void CTextile::SetAllYarnsPoissonsRatioX ( double  dValue)

Set the Poisson's ratio for all yarns in textile.

Definition at line 1056 of file Textile.cpp.

References BuildTextileIfNeeded(), and m_Yarns.

◆ SetAllYarnsPoissonsRatioY()

void CTextile::SetAllYarnsPoissonsRatioY ( double  dValue)

Definition at line 1068 of file Textile.cpp.

References BuildTextileIfNeeded(), and m_Yarns.

◆ SetAllYarnsPoissonsRatioZ()

void CTextile::SetAllYarnsPoissonsRatioZ ( double  dValue)

Definition at line 1080 of file Textile.cpp.

References BuildTextileIfNeeded(), and m_Yarns.

◆ SetAllYarnsShearModulusXY()

void CTextile::SetAllYarnsShearModulusXY ( double  dValue,
string  Units = "MPa" 
)

Set the shear modulus for all yarns in textile.

Definition at line 984 of file Textile.cpp.

References BuildTextileIfNeeded(), and m_Yarns.

◆ SetAllYarnsShearModulusXZ()

void CTextile::SetAllYarnsShearModulusXZ ( double  dValue,
string  Units = "MPa" 
)

Definition at line 996 of file Textile.cpp.

References BuildTextileIfNeeded(), and m_Yarns.

◆ SetAllYarnsShearModulusYZ()

void CTextile::SetAllYarnsShearModulusYZ ( double  dValue,
string  Units = "MPa" 
)

Definition at line 1008 of file Textile.cpp.

References BuildTextileIfNeeded(), and m_Yarns.

◆ SetAllYarnsYoungsModulusX()

void CTextile::SetAllYarnsYoungsModulusX ( double  dValue,
string  Units = "MPa" 
)

Set the Youngs Modulus for all yarns in textile.

Definition at line 948 of file Textile.cpp.

References BuildTextileIfNeeded(), and m_Yarns.

◆ SetAllYarnsYoungsModulusY()

void CTextile::SetAllYarnsYoungsModulusY ( double  dValue,
string  Units = "MPa" 
)

Definition at line 960 of file Textile.cpp.

References BuildTextileIfNeeded(), and m_Yarns.

◆ SetAllYarnsYoungsModulusZ()

void CTextile::SetAllYarnsYoungsModulusZ ( double  dValue,
string  Units = "MPa" 
)

Definition at line 972 of file Textile.cpp.

References BuildTextileIfNeeded(), and m_Yarns.

◆ SetAlphaX()

void CProperties::SetAlphaX ( double  dValue,
string  Units = "/K" 
)
inherited

Set the coefficients of thermal expansion for a yarn.

Definition at line 204 of file Properties.cpp.

References TexGen::CProperties::m_AlphaX, and TexGen::CProperty::SetValue().

Referenced by TexGen::CProperties::SetDefaultProperties().

◆ SetAlphaY()

void CProperties::SetAlphaY ( double  dValue,
string  Units = "/K" 
)
inherited

◆ SetAlphaZ()

void CProperties::SetAlphaZ ( double  dValue,
string  Units = "/K" 
)
inherited

◆ SetArealDensity()

void CPropertiesTextile::SetArealDensity ( double  dValue,
string  Units = "kg/m^2" 
)
inherited

Set the areal density, i.e. the mass per unit area of fabric.

Definition at line 83 of file PropertiesTextile.cpp.

References TexGen::CPropertiesTextile::m_ArealDensity, and TexGen::CProperty::SetValue().

◆ SetDefaultMatrixProperties()

void CPropertiesTextile::SetDefaultMatrixProperties ( )
protectedinherited

◆ SetDefaultProperties()

void CProperties::SetDefaultProperties ( )
protectedinherited

◆ SetFibreArea()

void CProperties::SetFibreArea ( double  dValue,
string  Units = "m^2" 
)
inherited

Set the area occupied by fibres in a yarn cross-section.

If not set it can be calculated from the yarn linear density and fibre density.

Definition at line 140 of file Properties.cpp.

References TexGen::CProperties::m_FibreArea, and TexGen::CProperty::SetValue().

Referenced by TexGen::CTextile3DWeave::SetFibreArea(), and TexGen::CTextile3DWeave::SetYarnProperties().

◆ SetFibreDensity()

void CProperties::SetFibreDensity ( double  dValue,
string  Units = "kg/m^3" 
)
inherited

◆ SetFibreDiameter()

void CProperties::SetFibreDiameter ( double  dValue,
string  Units = "m" 
)
inherited

◆ SetFibresPerYarn()

void CProperties::SetFibresPerYarn ( int  iValue)
inherited

◆ SetGeometryScale()

bool CPropertiesTextile::SetGeometryScale ( string  Units)
inherited

Set the scale of the geometry.

If 1 unit represents 1 mm in real world units then the geometry scale should be set to Units::mm. By default the geometry scale is set to millimetres.

Definition at line 68 of file PropertiesTextile.cpp.

References TexGen::CompatibleUnits(), TexGen::CPropertiesTextile::m_GeometryScale, and TGERROR.

◆ SetMatrixAlpha()

void CPropertiesTextile::SetMatrixAlpha ( double  dValue)
inherited

Set the coefficient of thermal expansion for the matrix.

Definition at line 108 of file PropertiesTextile.cpp.

References TexGen::CPropertiesTextile::m_MatrixAlpha.

Referenced by TexGen::CPropertiesTextile::SetDefaultMatrixProperties().

◆ SetMatrixPoissonsRatio()

void CPropertiesTextile::SetMatrixPoissonsRatio ( double  dValue)
inherited

Set the Poisson's ration for matrix.

Definition at line 103 of file PropertiesTextile.cpp.

References TexGen::CPropertiesTextile::m_MatrixPoissonsRatio.

Referenced by TexGen::CPropertiesTextile::SetDefaultMatrixProperties().

◆ SetMatrixYoungsModulus()

void CPropertiesTextile::SetMatrixYoungsModulus ( double  dValue,
string  Units = "MPa" 
)
inherited

◆ SetPoissonsRatio()

void CProperties::SetPoissonsRatio ( double  dValue)
inherited

◆ SetPoissonsRatioX()

void CProperties::SetPoissonsRatioX ( double  dValue)
inherited

◆ SetPoissonsRatioY()

void CProperties::SetPoissonsRatioY ( double  dValue)
inherited

◆ SetPoissonsRatioZ()

void CProperties::SetPoissonsRatioZ ( double  dValue)
inherited

◆ SetResolution()

bool CTextile::SetResolution ( int  Resolution)

Set the resolution for all yarns in textile.

Definition at line 1213 of file Textile.cpp.

References BuildTextileIfNeeded(), and m_Yarns.

◆ SetShearModulusXY()

void CProperties::SetShearModulusXY ( double  dValue,
string  Units = "MPa" 
)
inherited

Set the Shear modulus for a yarn.

Definition at line 189 of file Properties.cpp.

References TexGen::CProperties::m_ShearModulusXY, and TexGen::CProperty::SetValue().

Referenced by TexGen::CProperties::SetDefaultProperties().

◆ SetShearModulusXZ()

void CProperties::SetShearModulusXZ ( double  dValue,
string  Units = "MPa" 
)
inherited

◆ SetShearModulusYZ()

void CProperties::SetShearModulusYZ ( double  dValue,
string  Units = "MPa" 
)
inherited

◆ SetYarnLinearDensity()

void CProperties::SetYarnLinearDensity ( double  dValue,
string  Units = "kg/m" 
)
inherited

Set the fibre linear density, i.e. the mass per unit length of fibre.

Suppose 1 meter length of yarn weighs X kg, it's linear density is X kg/m

Definition at line 120 of file Properties.cpp.

References TexGen::CProperty::GetSIValue(), TexGen::CProperty::IsSet(), TexGen::CProperties::m_CalculatedArea, TexGen::CProperties::m_FibreDensity, TexGen::CProperties::m_YarnLinearDensity, and TexGen::CProperty::SetValue().

Referenced by TexGen::CTextile3DWeave::SetYarnLinearDensity(), and TexGen::CTextile3DWeave::SetYarnProperties().

◆ SetYoungsModulus()

void CProperties::SetYoungsModulus ( double  dValue,
string  Units = "MPa" 
)
inherited

◆ SetYoungsModulusX()

void CProperties::SetYoungsModulusX ( double  dValue,
string  Units = "MPa" 
)
inherited

◆ SetYoungsModulusY()

void CProperties::SetYoungsModulusY ( double  dValue,
string  Units = "MPa" 
)
inherited

◆ SetYoungsModulusZ()

void CProperties::SetYoungsModulusZ ( double  dValue,
string  Units = "MPa" 
)
inherited

◆ Translate()

void CTextile::Translate ( XYZ  Vector)

Translate the Textile by given vector.

Definition at line 344 of file Textile.cpp.

References BuildTextileIfNeeded(), and m_Yarns.

Member Data Documentation

◆ m_AlphaX

CProperty TexGen::CProperties::m_AlphaX
inherited

◆ m_AlphaY

CProperty TexGen::CProperties::m_AlphaY
inherited

◆ m_AlphaZ

CProperty TexGen::CProperties::m_AlphaZ
inherited

◆ m_ArealDensity

CProperty TexGen::CPropertiesTextile::m_ArealDensity
inherited

◆ m_bNeedsBuilding

bool TexGen::CTextile::m_bNeedsBuilding
mutableprotected

Variable which keeps track of wether the textile needs building or not.

Note: This is only relavant for classes which derive from CTextile and handle the construction of yarns automatically

Definition at line 330 of file Textile.h.

Referenced by TexGen::CTextile3DWeave::AddXLayers(), TexGen::CTextileWeave3D::AddXLayers(), TexGen::CTextile3DWeave::AddXYarn(), TexGen::CTextile3DWeave::AddYLayers(), TexGen::CTextileWeave3D::AddYLayers(), TexGen::CTextile3DWeave::AddYYarn(), TexGen::CTextile3DWeave::AssignSectionMesh(), TexGen::CTextileWeave::AssignSectionMesh(), TexGen::CTextileLayerToLayer::BuildLayerToLayerTextile(), TexGen::CTextile3DWeave::BuildTextile(), TexGen::CTextileAngleInterlock::BuildTextile(), TexGen::CTextileOffsetAngleInterlock::BuildTextile(), TexGen::CTextileOrthogonal::BuildTextile(), BuildTextileIfNeeded(), CTextile(), TexGen::CTextile3DWeave::DeleteXLayers(), TexGen::CTextileWeave3D::DeleteXLayers(), TexGen::CTextile3DWeave::DeleteYLayers(), TexGen::CTextileWeave3D::DeleteYLayers(), TexGen::CTextileLayered::MaxNestLayers(), TexGen::CTextileLayered::NestLayers(), operator=(), TexGen::CTextileWeave3D::PushDown(), TexGen::CTextileWeave3D::PushUp(), TexGen::CTextileAngleInterlock::SetBinderYarnPositions(), TexGen::CTextileOffsetAngleInterlock::SetBinderYarnPositions(), TexGen::CTextile3DWeave::SetGapSize(), TexGen::CTextileWeave::SetGapSize(), TexGen::CTextile3DWeave::SetMaxVolFraction(), TexGen::CTextile3DWeave::SetResolution(), TexGen::CTextileWeave::SetResolution(), TexGen::CTextile3DWeave::SetThickness(), TexGen::CTextileWeave::SetThickness(), TexGen::CTextile3DWeave::SetupWeftRow(), TexGen::CTextileOrthogonal::SetupWeftRow(), TexGen::CTextile3DWeave::SetXYarnHeights(), TexGen::CTextileWeave::SetXYarnHeights(), TexGen::CTextile3DWeave::SetXYarnSpacings(), TexGen::CTextileWeave::SetXYarnSpacings(), TexGen::CTextile3DWeave::SetXYarnWidths(), TexGen::CTextileWeave::SetXYarnWidths(), TexGen::CTextile3DWeave::SetYYarnHeights(), TexGen::CTextileWeave::SetYYarnHeights(), TexGen::CTextile3DWeave::SetYYarnSpacings(), TexGen::CTextileWeave::SetYYarnSpacings(), TexGen::CTextile3DWeave::SetYYarnWidths(), TexGen::CTextileWeave::SetYYarnWidths(), TexGen::CTextile3DWeave::ShapeWeftYarns(), TexGen::CTextileOrthogonal::ShapeWeftYarns(), TexGen::CTextileWeave2D::SwapAll(), TexGen::CTextileOrthogonal::SwapBinderPosition(), TexGen::CTextileWeave2D::SwapPosition(), TexGen::CTextile3DWeave::SwapPosition(), and TexGen::CTextileWeave3D::SwapPosition().

◆ m_CalculatedArea

CProperty TexGen::CProperties::m_CalculatedArea
inherited

◆ m_FibreArea

CProperty TexGen::CProperties::m_FibreArea
inherited

◆ m_FibreDensity

CProperty TexGen::CProperties::m_FibreDensity
inherited

◆ m_FibreDiameter

CProperty TexGen::CProperties::m_FibreDiameter
inherited

◆ m_GeometryScale

string TexGen::CPropertiesTextile::m_GeometryScale
protectedinherited

◆ m_iFibresPerYarn

int TexGen::CProperties::m_iFibresPerYarn
protectedinherited

◆ m_MatrixAlpha

double TexGen::CPropertiesTextile::m_MatrixAlpha
protectedinherited

◆ m_MatrixPoissonsRatio

double TexGen::CPropertiesTextile::m_MatrixPoissonsRatio
protectedinherited

◆ m_MatrixYoungsModulus

CProperty TexGen::CPropertiesTextile::m_MatrixYoungsModulus
inherited

◆ m_pDomain

CObjectContainer<CDomain> TexGen::CTextile::m_pDomain
protected

◆ m_PoissonsRatioX

double TexGen::CProperties::m_PoissonsRatioX
protectedinherited

◆ m_PoissonsRatioY

double TexGen::CProperties::m_PoissonsRatioY
protectedinherited

◆ m_PoissonsRatioZ

double TexGen::CProperties::m_PoissonsRatioZ
protectedinherited

◆ m_ShearModulusXY

CProperty TexGen::CProperties::m_ShearModulusXY
inherited

◆ m_ShearModulusXZ

CProperty TexGen::CProperties::m_ShearModulusXZ
inherited

◆ m_ShearModulusYZ

CProperty TexGen::CProperties::m_ShearModulusYZ
inherited

◆ m_YarnLinearDensity

CProperty TexGen::CProperties::m_YarnLinearDensity
inherited

◆ m_Yarns

vector<CYarn> TexGen::CTextile::m_Yarns
mutableprotected

Vector of yarns contained within this cell.

Note that this variable has been made mutable to enable building of the textile when necessary. For example, the function GetNumYarns should be declared as const but before the number of yarns can be retreived it must build the textile which cannot be done front a const function unless this variable is declared as mutable.

Definition at line 323 of file Textile.h.

Referenced by TexGen::CTextileAngleInterlock::AddBinderNodes(), TexGen::CTextileOffsetAngleInterlock::AddBinderNodes(), TexGen::CTextileOrthogonal::AddBinderNodes(), TexGen::CTextileLayerToLayer::AddBinderNodes(), AddCentrePlaneToMesh(), AddNodesToMesh(), AddPathToMesh(), AddSurfaceToMesh(), AddVolumeToMesh(), TexGen::CTextileOrthogonal::AddWeftNodes(), TexGen::CTextile3DWeave::AddWeftNodes(), AddYarn(), TexGen::CTextileOrthogonal::AdjustBinderPosition(), TexGen::CTextileOrthogonal::AdjustBinderYarnSection(), TexGen::CTextileOrthogonal::AdjustMidLayerHeights(), TexGen::CTextileOrthogonal::AdjustOuterWeftYarns(), TexGen::CShearedTextileWeave2D::AdjustSections(), TexGen::CShearedTextileWeave2D::AdjustSectionsForRotation(), TexGen::CTextileWeave2D::AdjustSectionsForRotation(), TexGen::CTextileWeave2D::AdjustTangents(), TexGen::CTextileLayerToLayer::BuildLayerToLayerTextile(), TexGen::CShearedTextileWeave2D::BuildTextile(), TexGen::CTextile3DWeave::BuildTextile(), TexGen::CTextileAngleInterlock::BuildTextile(), TexGen::CTextileOffsetAngleInterlock::BuildTextile(), TexGen::CTextileOrthogonal::BuildTextile(), TexGen::CTextileWeave::BuildTextile(), TexGen::CTextileOrthogonal::BuildWeavePatternTextile(), TexGen::CShearedTextileWeave2D::CalculateModifiers(), TexGen::CTextileOrthogonal::ChangeBinderSection(), TexGen::CTextileOrthogonal::ChangeWeftSection(), TexGen::CTextileOrthogonal::CheckBinderWidths(), TexGen::CTextile3DWeave::CheckUpVectors(), ConvertToInterpNodes(), TexGen::CTextileOrthogonal::CorrectCrimpInterference(), TexGen::CTextileWeave::CorrectEdgeInterference(), TexGen::CTextileWeave::CorrectInterference(), TexGen::CShearedTextileWeave2D::CorrectInterference(), TexGen::CTextileWeave::CorrectYarnWidths(), CTextile(), DeleteYarn(), DeleteYarns(), DetectInterference(), TexGen::CTextileWeave::FlattenYarns(), GetApproximateSize(), TexGen::CTextile3DWeave::GetCrossSection(), GetDomainVolumeFraction(), GetFibreVolume(), GetFibreVolumePerUnitArea(), TexGen::CTextileOrthogonal::GetHybridSectionWidth(), GetNumYarns(), GetPointInformation(), GetQuickDomainVolumeFraction(), TexGen::CTextile3DWeave::GetWeftCrossSection(), TexGen::CTextile3DWeave::GetXYarns(), TexGen::CTextileWeave::GetXYarns(), GetYarn(), GetYarnLength(), GetYarnLengthPerUnitArea(), GetYarns(), GetYarnVolume(), GetYarnVolumePerUnitArea(), TexGen::CTextile3DWeave::GetYYarns(), TexGen::CTextileWeave::GetYYarns(), TexGen::CTextile3DWeave::InsertBinderNode(), TexGen::CTextile3DWeave::InsertWeftNode(), TexGen::CTextileOrthogonal::OffsetYarn(), operator=(), PopulateTiXmlElement(), TexGen::CTextile3DWeave::ReplaceLastNode(), TexGen::CTextileOrthogonal::ReplaceYarnSection(), Rotate(), SetAllYarnsAlphaX(), SetAllYarnsAlphaY(), SetAllYarnsAlphaZ(), SetAllYarnsPoissonsRatioX(), SetAllYarnsPoissonsRatioY(), SetAllYarnsPoissonsRatioZ(), SetAllYarnsShearModulusXY(), SetAllYarnsShearModulusXZ(), SetAllYarnsShearModulusYZ(), SetAllYarnsYoungsModulusX(), SetAllYarnsYoungsModulusY(), SetAllYarnsYoungsModulusZ(), TexGen::CTextileWeave2D::SetInPlaneTangents(), SetResolution(), and Translate().

◆ m_YoungsModulusX

CProperty TexGen::CProperties::m_YoungsModulusX
inherited

◆ m_YoungsModulusY

CProperty TexGen::CProperties::m_YoungsModulusY
inherited

◆ m_YoungsModulusZ

CProperty TexGen::CProperties::m_YoungsModulusZ
inherited

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