TexGen
|
Represents a textile cell containing yarns. More...
#include <Textile.h>
Public Member Functions | |
CTextile (void) | |
CTextile (const vector< CYarn > &Yarns) | |
CTextile (const CTextile &CopyMe) | |
CTextile (TiXmlElement &Element) | |
virtual | ~CTextile (void) |
virtual CTextile * | Copy () const |
virtual string | GetType () const |
Derived class should return the class name. More... | |
CTextile & | operator= (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 |
CTextileWeave * | GetWeave () |
If this textile is a woven textile get a pointer of that type else return NULL. More... | |
CTextileWeave2D * | GetWeave2D () |
CTextile3DWeave * | Get3DWeave () |
CTextileOrthogonal * | GetOrthogonalWeave () |
CTextileLayered * | GetLayeredTextile () |
CTextileLayerToLayer * | GetLayerToLayerWeave () |
CTextileDecoupledLToL * | GetDecoupledLToLWeave () |
CTextileAngleInterlock * | GetAngleInterlockWeave () |
int | GetNumYarns () const |
const CYarn * | GetYarn (int iIndex) const |
CYarn * | GetYarn (int iIndex) |
const vector< CYarn > & | GetYarns () const |
vector< CYarn > & | GetYarns () |
const CDomain * | GetDomain () const |
CDomain * | GetDomain () |
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 |
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< CYarn > | m_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< CDomain > | m_pDomain |
string | m_GeometryScale |
double | m_MatrixPoissonsRatio |
double | m_MatrixAlpha |
int | m_iFibresPerYarn |
double | m_PoissonsRatioX |
double | m_PoissonsRatioY |
double | m_PoissonsRatioZ |
CTextile::CTextile | ( | void | ) |
Definition at line 29 of file Textile.cpp.
CTextile::CTextile | ( | const vector< CYarn > & | Yarns | ) |
Definition at line 34 of file Textile.cpp.
References m_Yarns.
CTextile::CTextile | ( | const CTextile & | CopyMe | ) |
Definition at line 40 of file Textile.cpp.
CTextile::CTextile | ( | TiXmlElement & | Element | ) |
Definition at line 65 of file Textile.cpp.
References AddYarn(), FOR_EACH_TIXMLELEMENT, m_bNeedsBuilding, and m_pDomain.
|
virtual |
Definition at line 46 of file Textile.cpp.
void CTextile::AddCentrePlaneToMesh | ( | CMesh & | Mesh, |
bool | bTrimToDomain = false |
||
) |
Create centre plane mesh for this textile and add it to the mesh object.
Mesh | Mesh to add elements to |
bTrimToDomain | Mesh inserted will be clipped to the domain size |
Definition at line 319 of file Textile.cpp.
References BuildTextileIfNeeded(), m_pDomain, and m_Yarns.
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.
void CTextile::AddPathToMesh | ( | CMesh & | Mesh | ) |
Add yarn centerline path to mesh.
Definition at line 176 of file Textile.cpp.
References BuildTextileIfNeeded(), and m_Yarns.
void CTextile::AddSurfaceToMesh | ( | CMesh & | Mesh, |
bool | bTrimToDomain = false |
||
) |
Create surface mesh for this textile and add it to the mesh object.
Mesh | Mesh to add elements to |
bTrimToDomain | Mesh 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().
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
Mesh | Mesh to add elements to |
bTrimToDomain | Mesh inserted will be clipped to the domain size |
DomainMeshes | Vector 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.
void CTextile::AddVolumeToMesh | ( | CMesh & | Mesh, |
bool | bTrimToDomain = false |
||
) |
Create volume mesh for this textile and add it to the mesh object.
Mesh | Mesh to add elements to |
bTrimToDomain | Mesh inserted will be clipped to the domain size |
Definition at line 287 of file Textile.cpp.
References BuildTextileIfNeeded(), m_pDomain, and m_Yarns.
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.
YarnMeshes | Vector of meshes, one for each yarn, to add elements to |
bTrimToDomain | Mesh 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().
int CTextile::AddYarn | ( | const CYarn & | Yarn | ) |
Add a Yarn to the textile.
Definition at line 122 of file Textile.cpp.
References m_Yarns.
Referenced by TexGen::CTextileLayered::AddLayer(), TexGen::CTextileLayerToLayer::BuildLayerToLayerTextile(), TexGen::CShearedTextileWeave2D::BuildTextile(), TexGen::CTextile3DWeave::BuildTextile(), TexGen::CTextileAngleInterlock::BuildTextile(), TexGen::CTextileOffsetAngleInterlock::BuildTextile(), TexGen::CTextileOrthogonal::BuildTextile(), TexGen::CTextileWeave::BuildTextile(), TexGen::CTextileOrthogonal::BuildWeavePatternTextile(), and CTextile().
|
protected |
Definition at line 137 of file Textile.cpp.
References m_Yarns.
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().
|
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().
|
protected |
Build the textile only if needed.
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.
Definition at line 710 of file Textile.cpp.
References BuildTextile(), and m_bNeedsBuilding.
Referenced by AddCentrePlaneToMesh(), AddNodesToMesh(), AddPathToMesh(), AddSurfaceToMesh(), AddVolumeToMesh(), TexGen::CTextile3DWeave::CheckUpVectors(), DetectInterference(), GetApproximateSize(), GetDomainVolumeFraction(), GetFibreVolume(), GetFibreVolumePerUnitArea(), GetFibreYarnVolumeFraction(), GetNumYarns(), GetPointInformation(), GetQuickDomainVolumeFraction(), TexGen::CTextile3DWeave::GetXYarns(), TexGen::CTextileWeave::GetXYarns(), GetYarn(), GetYarnLength(), GetYarnLengthPerUnitArea(), GetYarns(), GetYarnVolume(), GetYarnVolumePerUnitArea(), TexGen::CTextile3DWeave::GetYYarns(), TexGen::CTextileWeave::GetYYarns(), PopulateTiXmlElement(), Rotate(), SetAllYarnsAlphaX(), SetAllYarnsAlphaY(), SetAllYarnsAlphaZ(), SetAllYarnsPoissonsRatioX(), SetAllYarnsPoissonsRatioY(), SetAllYarnsPoissonsRatioZ(), SetAllYarnsShearModulusXY(), SetAllYarnsShearModulusXZ(), SetAllYarnsShearModulusYZ(), SetAllYarnsYoungsModulusX(), SetAllYarnsYoungsModulusY(), SetAllYarnsYoungsModulusZ(), TexGen::CTextile3DWeave::SetDomainZValues(), SetResolution(), and Translate().
|
protected |
Remove all dynamic memory (called by destructor and copy constructor) Not to be used to empty the yarn data for re-use
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().
|
inlinevirtual |
Reimplemented in TexGen::CShearedTextileWeave2D, TexGen::CTextile3DWeave, TexGen::CTextileAngleInterlock, TexGen::CTextileDecoupledLToL, TexGen::CTextileLayered, TexGen::CTextileLayerToLayer, TexGen::CTextileOffsetAngleInterlock, TexGen::CTextileOrthogonal, TexGen::CTextileWeave, TexGen::CTextileWeave2D, and TexGen::CTextileWeave3D.
Definition at line 48 of file Textile.h.
Referenced by TexGen::CTexGen::AddTextile(), and TexGen::CTextileDeformer::GetDeformedCopyOfTextile().
bool CTextile::DeleteYarn | ( | int | iIndex | ) |
Delete an Yarn from the textile.
iIndex | The index of the yarn to delete |
Definition at line 152 of file Textile.cpp.
References m_Yarns.
void CTextile::DeleteYarns | ( | ) |
int CTextile::DetectInterference | ( | vector< float > & | DistanceToSurface, |
vector< int > & | YarnIndex, | ||
bool | bTrimToDomain, | ||
CMesh * | pInterferingPoints = NULL |
||
) |
Find out if any of the yarns are interfering with each other.
Definition at line 577 of file Textile.cpp.
References TexGen::CMesh::AddNode(), TexGen::BoundingBoxIntersect(), BuildTextileIfNeeded(), TexGen::CMesh::Clear(), TexGen::CMesh::GetAABB(), GetName(), m_pDomain, m_Yarns, TexGen::CYarn::SURFACE, TGERROR, TGLOG, and TGLOGINDENT.
Referenced by TexGen::CAdjustMeshInterference::CheckInitialIntersections(), and TexGen::CTexGenRenderer::RenderInterference().
CTextile3DWeave * CTextile::Get3DWeave | ( | ) |
Definition at line 867 of file Textile.cpp.
|
inherited |
Definition at line 319 of file Properties.cpp.
References TexGen::CProperty::GetValue(), and TexGen::CProperties::m_AlphaX.
Referenced by TexGen::CTextileMaterials::SetupMaterials().
|
inherited |
Definition at line 324 of file Properties.cpp.
References TexGen::CProperty::GetValue(), and TexGen::CProperties::m_AlphaY.
Referenced by TexGen::CTextileMaterials::SetupMaterials().
|
inherited |
Definition at line 329 of file Properties.cpp.
References TexGen::CProperty::GetValue(), and TexGen::CProperties::m_AlphaZ.
Referenced by TexGen::CTextileMaterials::SetupMaterials().
CTextileAngleInterlock * CTextile::GetAngleInterlockWeave | ( | ) |
Definition at line 887 of file Textile.cpp.
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().
|
inherited |
Definition at line 93 of file PropertiesTextile.cpp.
References TexGen::CProperty::GetValue(), and TexGen::CPropertiesTextile::m_ArealDensity.
CTextileDecoupledLToL * CTextile::GetDecoupledLToLWeave | ( | ) |
Definition at line 882 of file Textile.cpp.
|
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().
|
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().
double CTextile::GetDomainVolumeFraction | ( | ) |
Calculates the fibre volume fraction for the domain.
Definition at line 1130 of file Textile.cpp.
References BuildTextileIfNeeded(), TexGen::CMesh::ConvertToTetMesh(), TexGen::CrossProduct(), TexGen::DotProduct(), TexGen::CMesh::GetElementCenters(), TexGen::CMesh::GetIndices(), TexGen::CMesh::GetNode(), m_pDomain, m_Yarns, TexGen::CMesh::TET, TGERROR, and TOL.
|
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().
|
inherited |
Definition at line 246 of file Properties.cpp.
References TexGen::CProperty::GetValue(), and TexGen::CProperties::m_FibreDensity.
Referenced by TexGen::CYarn::GetFibreVolume(), TexGen::CYarn::GetFibreVolumePerUnitArea(), and TexGen::CTextile3DWeave::SetYarnProperties().
|
inherited |
Definition at line 279 of file Properties.cpp.
References TexGen::CProperty::GetValue(), and TexGen::CProperties::m_FibreDiameter.
Referenced by TexGen::CTextile3DWeave::SetYarnProperties().
|
inherited |
Definition at line 284 of file Properties.cpp.
References TexGen::CProperties::m_iFibresPerYarn.
Referenced by TexGen::CTextile3DWeave::SetYarnProperties().
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().
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().
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().
|
inherited |
Definition at line 88 of file PropertiesTextile.cpp.
References TexGen::CPropertiesTextile::m_GeometryScale.
Referenced by TexGen::CSimulationAbaqus::GetSectionVolumeFraction().
CTextileLayered * CTextile::GetLayeredTextile | ( | ) |
Definition at line 862 of file Textile.cpp.
CTextileLayerToLayer * CTextile::GetLayerToLayerWeave | ( | ) |
Definition at line 877 of file Textile.cpp.
|
inherited |
Definition at line 123 of file PropertiesTextile.cpp.
References TexGen::CPropertiesTextile::m_MatrixAlpha.
Referenced by TexGen::CTextileMaterials::SetupMaterials().
|
inherited |
Definition at line 118 of file PropertiesTextile.cpp.
References TexGen::CPropertiesTextile::m_MatrixPoissonsRatio.
Referenced by TexGen::CTextileMaterials::SetupMaterials().
|
inherited |
Definition at line 113 of file PropertiesTextile.cpp.
References TexGen::CProperty::GetValue(), and TexGen::CPropertiesTextile::m_MatrixYoungsModulus.
Referenced by TexGen::CTextileMaterials::SetupMaterials().
string CTextile::GetName | ( | ) | const |
Get the name associated with this textile.
Definition at line 355 of file Textile.cpp.
References TEXGEN.
Referenced by TexGen::CTextileLayerToLayer::BuildLayerToLayerTextile(), TexGen::CShearedTextileWeave2D::BuildTextile(), TexGen::CTextile3DWeave::BuildTextile(), TexGen::CTextileAngleInterlock::BuildTextile(), TexGen::CTextileOffsetAngleInterlock::BuildTextile(), TexGen::CTextileOrthogonal::BuildTextile(), TexGen::CTextileWeave::BuildTextile(), TexGen::CTextileWeave2D::BuildTextile(), TexGen::CTextileOrthogonal::BuildWeavePatternTextile(), TexGen::CTextileWeave::CorrectInterference(), TexGen::CShearedTextileWeave2D::CorrectInterference(), TexGen::CTextileWeave::CorrectYarnWidths(), DetectInterference(), TexGen::CTexGenRenderer::RenderMesh(), TexGen::CTexGenRenderer::RenderNodes(), TexGen::CTexGenRenderer::RenderPath(), and TexGen::CTexGenRenderer::RenderTextile().
int CTextile::GetNumYarns | ( | ) | const |
Definition at line 704 of file Textile.cpp.
References BuildTextileIfNeeded(), and m_Yarns.
Referenced by TexGen::CAdjustMeshInterference::AdjustMesh(), TexGen::CAdjustMeshInterference::AdjustSectionMeshes(), TexGen::CAdjustMeshInterference::AdjustTextileMesh(), TexGen::CGeometrySolver::AssignFibreDirectionToElements(), TexGen::CSimulationAbaqus::CreateAbaqusInputFile(), TexGen::CSimulationAbaqus::CreateContacts(), TexGen::CGeometrySolver::CreateSystem(), TexGen::CTextileDeformer::DeformTextile(), TexGen::CMesher::FillYarnTangentsData(), TexGen::CShellElementExport::GetElementInfo(), TexGen::CShellElementExport::SaveShellElementToABAQUS(), TexGen::CVoxelMesh::SaveToAbaqus(), TexGen::CMesher::SaveVolumeMeshToABAQUS(), and TexGen::CTextileMaterials::SetupMaterials().
CTextileOrthogonal * CTextile::GetOrthogonalWeave | ( | ) |
Definition at line 872 of file Textile.cpp.
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.
Points | List of points for which the tangents is required |
PointsInfo | Information about the point as described in the POINT_INFO structure |
dTolerance | Points 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().
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.
bSurface | default 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.
|
inherited |
Definition at line 334 of file Properties.cpp.
References TexGen::CProperties::m_PoissonsRatioX.
Referenced by TexGen::CTextileMaterials::SetupMaterials().
|
inherited |
Definition at line 339 of file Properties.cpp.
References TexGen::CProperties::m_PoissonsRatioY.
Referenced by TexGen::CTextileMaterials::SetupMaterials().
|
inherited |
Definition at line 344 of file Properties.cpp.
References TexGen::CProperties::m_PoissonsRatioZ.
Referenced by TexGen::CTextileMaterials::SetupMaterials().
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.
|
inherited |
Definition at line 304 of file Properties.cpp.
References TexGen::CProperty::GetValue(), and TexGen::CProperties::m_ShearModulusXY.
Referenced by TexGen::CTextileMaterials::SetupMaterials().
|
inherited |
Definition at line 309 of file Properties.cpp.
References TexGen::CProperty::GetValue(), and TexGen::CProperties::m_ShearModulusXZ.
Referenced by TexGen::CTextileMaterials::SetupMaterials().
|
inherited |
Definition at line 314 of file Properties.cpp.
References TexGen::CProperty::GetValue(), and TexGen::CProperties::m_ShearModulusYZ.
Referenced by TexGen::CTextileMaterials::SetupMaterials().
|
inlinevirtual |
Derived class should return the class name.
Reimplemented in TexGen::CShearedTextileWeave2D, TexGen::CTextile3DWeave, TexGen::CTextileAngleInterlock, TexGen::CTextileDecoupledLToL, TexGen::CTextileLayered, TexGen::CTextileLayerToLayer, TexGen::CTextileOffsetAngleInterlock, TexGen::CTextileOrthogonal, TexGen::CTextileWeave, TexGen::CTextileWeave2D, and TexGen::CTextileWeave3D.
Definition at line 51 of file Textile.h.
Referenced by TexGen::CTextileLayered::AddLayer(), and PopulateTiXmlElement().
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.
CTextileWeave2D * CTextile::GetWeave2D | ( | ) |
Definition at line 857 of file Textile.cpp.
CYarn * CTextile::GetYarn | ( | int | iIndex | ) |
Definition at line 682 of file Textile.cpp.
References BuildTextileIfNeeded(), m_Yarns, NULL, and TGERROR.
const CYarn * CTextile::GetYarn | ( | int | iIndex | ) | const |
Definition at line 693 of file Textile.cpp.
References BuildTextileIfNeeded(), m_Yarns, NULL, and TGERROR.
Referenced by TexGen::CTextileLayered::AddLayer(), TexGen::CAdjustMeshInterference::AdjustSectionMeshes(), TexGen::CTextileLayered::ApplyLayerOffset(), TexGen::CGeometrySolver::AssignFibreDirectionToElements(), TexGen::CAdjustMeshInterference::CheckInitialIntersections(), TexGen::CSimulationAbaqus::CreateAbaqusInputFile(), TexGen::CGeometrySolver::CreateSystem(), TexGen::CMesher::CreateVolumeMesh(), TexGen::CTextileDeformer::DeformTextile(), TexGen::CMesher::FillYarnTangentsData(), TexGen::CTextileLayered::GetLayerMeshes(), TexGen::CTextileLayered::GetLayerRepeats(), TexGen::CSimulationAbaqus::GetSectionVolumeFraction(), TexGen::CShellElementExport::SaveShellElementToABAQUS(), and TexGen::CTextileMaterials::SetupMaterials().
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.
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.
|
inherited |
Definition at line 241 of file Properties.cpp.
References TexGen::CProperty::GetValue(), and TexGen::CProperties::m_YarnLinearDensity.
Referenced by TexGen::CYarn::GetFibreVolume(), TexGen::CYarn::GetFibreVolumePerUnitArea(), and TexGen::CTextile3DWeave::SetYarnProperties().
vector< CYarn > & CTextile::GetYarns | ( | ) |
Definition at line 670 of file Textile.cpp.
References BuildTextileIfNeeded(), and m_Yarns.
const vector< CYarn > & CTextile::GetYarns | ( | ) | const |
Definition at line 676 of file Textile.cpp.
References BuildTextileIfNeeded(), and m_Yarns.
Referenced by TexGen::CTextileLayered::AddLayer(), TexGen::CExporter::ConvertTextile(), TexGen::CBasicVolumes::CreateBasicVolumes(), TexGen::CTexGenRenderer::RefreshYarn(), TexGen::CTexGenRenderer::RenderGrid(), TexGen::CTexGenRenderer::RenderMesh(), TexGen::CTexGenRenderer::RenderNodes(), TexGen::CTexGenRenderer::RenderPath(), TexGen::CTexGenRenderer::RenderPaths(), and TexGen::CTexGenRenderer::RenderTextile().
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().
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().
|
inherited |
Definition at line 289 of file Properties.cpp.
References TexGen::CProperty::GetValue(), and TexGen::CProperties::m_YoungsModulusX.
Referenced by TexGen::CTextileMaterials::SetupMaterials().
|
inherited |
Definition at line 294 of file Properties.cpp.
References TexGen::CProperty::GetValue(), and TexGen::CProperties::m_YoungsModulusY.
Referenced by TexGen::CTextileMaterials::SetupMaterials().
|
inherited |
Definition at line 299 of file Properties.cpp.
References TexGen::CProperty::GetValue(), and TexGen::CProperties::m_YoungsModulusZ.
Referenced by TexGen::CTextileMaterials::SetupMaterials().
Definition at line 50 of file Textile.cpp.
References m_bNeedsBuilding, m_pDomain, and m_Yarns.
|
virtual |
Used for saving data to XML.
Reimplemented from TexGen::CPropertiesTextile.
Reimplemented in TexGen::CShearedTextileWeave2D, TexGen::CTextile3DWeave, TexGen::CTextileAngleInterlock, TexGen::CTextileDecoupledLToL, TexGen::CTextileLayered, TexGen::CTextileLayerToLayer, TexGen::CTextileOffsetAngleInterlock, TexGen::CTextileOrthogonal, TexGen::CTextileWeave, TexGen::CTextileWeave2D, and TexGen::CTextileWeave3D.
Definition at line 87 of file Textile.cpp.
References BuildTextileIfNeeded(), GetType(), m_pDomain, m_Yarns, TexGen::OUTPUT_MINIMAL, and TexGen::CPropertiesTextile::PopulateTiXmlElement().
Referenced by TexGen::CTextile3DWeave::PopulateTiXmlElement(), TexGen::CTextileLayered::PopulateTiXmlElement(), TexGen::CTextileWeave::PopulateTiXmlElement(), and TexGen::CTexGen::PopulateTiXmlElement().
void CTextile::RemoveDomain | ( | ) |
Remove the domain.
Definition at line 729 of file Textile.cpp.
References m_pDomain.
Referenced by TexGen::CTextile3DWeave::SetDomainZValues().
|
inlineinherited |
Definition at line 165 of file Properties.h.
|
inlineinherited |
Definition at line 166 of file Properties.h.
|
inlineinherited |
Definition at line 167 of file Properties.h.
|
inlineinherited |
Definition at line 56 of file PropertiesTextile.h.
|
inlineinherited |
Definition at line 158 of file Properties.h.
|
inlineinherited |
Definition at line 155 of file Properties.h.
|
inlineinherited |
Definition at line 156 of file Properties.h.
|
inlineinherited |
Definition at line 157 of file Properties.h.
|
inlineinherited |
Definition at line 168 of file Properties.h.
|
inlineinherited |
Definition at line 169 of file Properties.h.
|
inlineinherited |
Definition at line 170 of file Properties.h.
|
inlineinherited |
Definition at line 162 of file Properties.h.
|
inlineinherited |
Definition at line 163 of file Properties.h.
|
inlineinherited |
Definition at line 164 of file Properties.h.
|
inlineinherited |
Definition at line 154 of file Properties.h.
|
inlineinherited |
Definition at line 159 of file Properties.h.
|
inlineinherited |
Definition at line 160 of file Properties.h.
|
inlineinherited |
Definition at line 161 of file Properties.h.
Rotate the Textile by given quaternion.
Definition at line 333 of file Textile.cpp.
References BuildTextileIfNeeded(), and m_Yarns.
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().
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.
void CTextile::SetAllYarnsAlphaY | ( | double | dValue, |
string | Units = "/K" |
||
) |
Definition at line 1032 of file Textile.cpp.
References BuildTextileIfNeeded(), and m_Yarns.
void CTextile::SetAllYarnsAlphaZ | ( | double | dValue, |
string | Units = "/K" |
||
) |
Definition at line 1044 of file Textile.cpp.
References BuildTextileIfNeeded(), and m_Yarns.
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.
void CTextile::SetAllYarnsPoissonsRatioY | ( | double | dValue | ) |
Definition at line 1068 of file Textile.cpp.
References BuildTextileIfNeeded(), and m_Yarns.
void CTextile::SetAllYarnsPoissonsRatioZ | ( | double | dValue | ) |
Definition at line 1080 of file Textile.cpp.
References BuildTextileIfNeeded(), and m_Yarns.
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.
void CTextile::SetAllYarnsShearModulusXZ | ( | double | dValue, |
string | Units = "MPa" |
||
) |
Definition at line 996 of file Textile.cpp.
References BuildTextileIfNeeded(), and m_Yarns.
void CTextile::SetAllYarnsShearModulusYZ | ( | double | dValue, |
string | Units = "MPa" |
||
) |
Definition at line 1008 of file Textile.cpp.
References BuildTextileIfNeeded(), and m_Yarns.
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.
void CTextile::SetAllYarnsYoungsModulusY | ( | double | dValue, |
string | Units = "MPa" |
||
) |
Definition at line 960 of file Textile.cpp.
References BuildTextileIfNeeded(), and m_Yarns.
void CTextile::SetAllYarnsYoungsModulusZ | ( | double | dValue, |
string | Units = "MPa" |
||
) |
Definition at line 972 of file Textile.cpp.
References BuildTextileIfNeeded(), and m_Yarns.
|
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().
|
inherited |
Definition at line 209 of file Properties.cpp.
References TexGen::CProperties::m_AlphaY, and TexGen::CProperty::SetValue().
Referenced by TexGen::CProperties::SetDefaultProperties().
|
inherited |
Definition at line 214 of file Properties.cpp.
References TexGen::CProperties::m_AlphaZ, and TexGen::CProperty::SetValue().
Referenced by TexGen::CProperties::SetDefaultProperties().
|
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().
|
protectedinherited |
Set default matrix properties as specified by DefaultProperties.h.
Definition at line 128 of file PropertiesTextile.cpp.
References MATRIX_ALPHA, MATRIX_E, MATRIX_POISSON, TexGen::CPropertiesTextile::SetMatrixAlpha(), TexGen::CPropertiesTextile::SetMatrixPoissonsRatio(), and TexGen::CPropertiesTextile::SetMatrixYoungsModulus().
Referenced by TexGen::CPropertiesTextile::CPropertiesTextile().
|
protectedinherited |
Set default properties as specified by DefaultProperties.h.
Definition at line 349 of file Properties.cpp.
References TexGen::CProperties::SetAlphaX(), TexGen::CProperties::SetAlphaY(), TexGen::CProperties::SetAlphaZ(), TexGen::CProperties::SetPoissonsRatioX(), TexGen::CProperties::SetPoissonsRatioY(), TexGen::CProperties::SetPoissonsRatioZ(), TexGen::CProperties::SetShearModulusXY(), TexGen::CProperties::SetShearModulusXZ(), TexGen::CProperties::SetShearModulusYZ(), TexGen::CProperties::SetYoungsModulusX(), TexGen::CProperties::SetYoungsModulusY(), TexGen::CProperties::SetYoungsModulusZ(), YARN_ALPHAX, YARN_ALPHAY, YARN_ALPHAZ, YARN_EX, YARN_EY, YARN_EZ, YARN_GXY, YARN_GXZ, YARN_GYZ, YARN_POISSONX, YARN_POISSONY, and YARN_POISSONZ.
Referenced by TexGen::CProperties::CProperties().
|
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().
|
inherited |
Set the fibre density, i.e. the mass per unit volume of fibre.
Definition at line 130 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::SetFibreDensity(), and TexGen::CTextile3DWeave::SetYarnProperties().
|
inherited |
Set the fibre diameter.
Definition at line 145 of file Properties.cpp.
References TexGen::CProperty::GetSIValue(), TexGen::CProperties::m_CalculatedArea, TexGen::CProperties::m_FibreDiameter, TexGen::CProperties::m_iFibresPerYarn, PI, and TexGen::CProperty::SetValue().
Referenced by TexGen::CTextile3DWeave::SetFibreDiameter(), and TexGen::CTextile3DWeave::SetYarnProperties().
|
inherited |
Set the number of fibres in a yarn.
Definition at line 156 of file Properties.cpp.
References TexGen::CProperty::GetSIValue(), TexGen::CProperty::IsSet(), TexGen::CProperties::m_CalculatedArea, TexGen::CProperties::m_FibreDiameter, TexGen::CProperties::m_iFibresPerYarn, PI, and TexGen::CProperty::SetValue().
Referenced by TexGen::CTextile3DWeave::SetFibresPerYarn(), and TexGen::CTextile3DWeave::SetYarnProperties().
|
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.
|
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().
|
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().
|
inherited |
Set the Young's modulus for matrix.
Definition at line 98 of file PropertiesTextile.cpp.
References TexGen::CPropertiesTextile::m_MatrixYoungsModulus, and TexGen::CProperty::SetValue().
Referenced by TexGen::CPropertiesTextile::SetDefaultMatrixProperties().
|
inherited |
Set the Poisson's ratio for a yarn.
Definition at line 219 of file Properties.cpp.
References TexGen::CProperties::SetPoissonsRatioX(), TexGen::CProperties::SetPoissonsRatioY(), and TexGen::CProperties::SetPoissonsRatioZ().
|
inherited |
Definition at line 226 of file Properties.cpp.
References TexGen::CProperties::m_PoissonsRatioX.
Referenced by TexGen::CProperties::SetDefaultProperties(), and TexGen::CProperties::SetPoissonsRatio().
|
inherited |
Definition at line 231 of file Properties.cpp.
References TexGen::CProperties::m_PoissonsRatioY.
Referenced by TexGen::CProperties::SetDefaultProperties(), and TexGen::CProperties::SetPoissonsRatio().
|
inherited |
Definition at line 236 of file Properties.cpp.
References TexGen::CProperties::m_PoissonsRatioZ.
Referenced by TexGen::CProperties::SetDefaultProperties(), and TexGen::CProperties::SetPoissonsRatio().
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.
|
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().
|
inherited |
Definition at line 194 of file Properties.cpp.
References TexGen::CProperties::m_ShearModulusXZ, and TexGen::CProperty::SetValue().
Referenced by TexGen::CProperties::SetDefaultProperties().
|
inherited |
Definition at line 199 of file Properties.cpp.
References TexGen::CProperties::m_ShearModulusYZ, and TexGen::CProperty::SetValue().
Referenced by TexGen::CProperties::SetDefaultProperties().
|
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().
|
inherited |
Set the Young's modulus for a yarn.
Definition at line 167 of file Properties.cpp.
References TexGen::CProperties::SetYoungsModulusX(), TexGen::CProperties::SetYoungsModulusY(), and TexGen::CProperties::SetYoungsModulusZ().
|
inherited |
Definition at line 174 of file Properties.cpp.
References TexGen::CProperties::m_YoungsModulusX, and TexGen::CProperty::SetValue().
Referenced by TexGen::CProperties::SetDefaultProperties(), and TexGen::CProperties::SetYoungsModulus().
|
inherited |
Definition at line 179 of file Properties.cpp.
References TexGen::CProperties::m_YoungsModulusY, and TexGen::CProperty::SetValue().
Referenced by TexGen::CProperties::SetDefaultProperties(), and TexGen::CProperties::SetYoungsModulus().
|
inherited |
Definition at line 184 of file Properties.cpp.
References TexGen::CProperties::m_YoungsModulusZ, and TexGen::CProperty::SetValue().
Referenced by TexGen::CProperties::SetDefaultProperties(), and TexGen::CProperties::SetYoungsModulus().
void CTextile::Translate | ( | XYZ | Vector | ) |
Translate the Textile by given vector.
Definition at line 344 of file Textile.cpp.
References BuildTextileIfNeeded(), and m_Yarns.
|
inherited |
Definition at line 208 of file Properties.h.
Referenced by TexGen::CProperties::CProperties(), TexGen::CProperties::GetAlphaX(), TexGen::CProperties::PopulateTiXmlElement(), and TexGen::CProperties::SetAlphaX().
|
inherited |
Definition at line 209 of file Properties.h.
Referenced by TexGen::CProperties::CProperties(), TexGen::CProperties::GetAlphaY(), TexGen::CProperties::PopulateTiXmlElement(), and TexGen::CProperties::SetAlphaY().
|
inherited |
Definition at line 210 of file Properties.h.
Referenced by TexGen::CProperties::CProperties(), TexGen::CProperties::GetAlphaZ(), TexGen::CProperties::PopulateTiXmlElement(), and TexGen::CProperties::SetAlphaZ().
|
inherited |
|
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().
|
inherited |
Definition at line 211 of file Properties.h.
Referenced by TexGen::CProperties::GetFibreArea(), TexGen::CProperties::SetFibreDensity(), TexGen::CProperties::SetFibreDiameter(), TexGen::CProperties::SetFibresPerYarn(), and TexGen::CProperties::SetYarnLinearDensity().
|
inherited |
Definition at line 200 of file Properties.h.
Referenced by TexGen::CProperties::CProperties(), TexGen::CProperties::GetFibreArea(), TexGen::CProperties::PopulateTiXmlElement(), and TexGen::CProperties::SetFibreArea().
|
inherited |
Definition at line 199 of file Properties.h.
Referenced by TexGen::CProperties::CProperties(), TexGen::CProperties::GetFibreArea(), TexGen::CProperties::GetFibreDensity(), GetFibreVolumePerUnitArea(), TexGen::CProperties::PopulateTiXmlElement(), TexGen::CProperties::SetFibreDensity(), and TexGen::CProperties::SetYarnLinearDensity().
|
inherited |
Definition at line 201 of file Properties.h.
Referenced by TexGen::CProperties::CProperties(), TexGen::CProperties::GetFibreArea(), TexGen::CProperties::GetFibreDiameter(), TexGen::CProperties::PopulateTiXmlElement(), TexGen::CProperties::SetFibreDiameter(), and TexGen::CProperties::SetFibresPerYarn().
|
protectedinherited |
Definition at line 78 of file PropertiesTextile.h.
Referenced by TexGen::CPropertiesTextile::CPropertiesTextile(), TexGen::CPropertiesTextile::GetGeometryScale(), TexGen::CPropertiesTextile::PopulateTiXmlElement(), and TexGen::CPropertiesTextile::SetGeometryScale().
|
protectedinherited |
Definition at line 214 of file Properties.h.
Referenced by TexGen::CProperties::CProperties(), TexGen::CProperties::GetFibreArea(), TexGen::CProperties::GetFibresPerYarn(), TexGen::CProperties::PopulateTiXmlElement(), TexGen::CProperties::SetFibreDiameter(), and TexGen::CProperties::SetFibresPerYarn().
|
protectedinherited |
Definition at line 80 of file PropertiesTextile.h.
Referenced by TexGen::CPropertiesTextile::CPropertiesTextile(), TexGen::CPropertiesTextile::GetMatrixAlpha(), TexGen::CPropertiesTextile::PopulateTiXmlElement(), and TexGen::CPropertiesTextile::SetMatrixAlpha().
|
protectedinherited |
|
inherited |
|
protected |
Definition at line 332 of file Textile.h.
Referenced by AddCentrePlaneToMesh(), AddSurfaceToMesh(), AddVolumeToMesh(), AssignDomain(), CTextile(), DetectInterference(), GetDomainVolumeFraction(), TexGen::CTextileLayered::GetLayerMeshes(), GetQuickDomainVolumeFraction(), TexGen::CTextileLayered::MaxNestLayers(), TexGen::CTextileLayered::NestLayers(), operator=(), PopulateTiXmlElement(), and RemoveDomain().
|
protectedinherited |
Definition at line 215 of file Properties.h.
Referenced by TexGen::CProperties::CProperties(), TexGen::CProperties::GetPoissonsRatioX(), TexGen::CProperties::PopulateTiXmlElement(), and TexGen::CProperties::SetPoissonsRatioX().
|
protectedinherited |
Definition at line 216 of file Properties.h.
Referenced by TexGen::CProperties::CProperties(), TexGen::CProperties::GetPoissonsRatioY(), TexGen::CProperties::PopulateTiXmlElement(), and TexGen::CProperties::SetPoissonsRatioY().
|
protectedinherited |
Definition at line 217 of file Properties.h.
Referenced by TexGen::CProperties::CProperties(), TexGen::CProperties::GetPoissonsRatioZ(), TexGen::CProperties::PopulateTiXmlElement(), and TexGen::CProperties::SetPoissonsRatioZ().
|
inherited |
Definition at line 205 of file Properties.h.
Referenced by TexGen::CProperties::CProperties(), TexGen::CProperties::GetShearModulusXY(), TexGen::CProperties::PopulateTiXmlElement(), and TexGen::CProperties::SetShearModulusXY().
|
inherited |
Definition at line 206 of file Properties.h.
Referenced by TexGen::CProperties::CProperties(), TexGen::CProperties::GetShearModulusXZ(), TexGen::CProperties::PopulateTiXmlElement(), and TexGen::CProperties::SetShearModulusXZ().
|
inherited |
Definition at line 207 of file Properties.h.
Referenced by TexGen::CProperties::CProperties(), TexGen::CProperties::GetShearModulusYZ(), TexGen::CProperties::PopulateTiXmlElement(), and TexGen::CProperties::SetShearModulusYZ().
|
inherited |
Definition at line 198 of file Properties.h.
Referenced by TexGen::CProperties::CProperties(), TexGen::CProperties::GetFibreArea(), TexGen::CProperties::GetYarnLinearDensity(), TexGen::CProperties::PopulateTiXmlElement(), TexGen::CProperties::SetFibreDensity(), and TexGen::CProperties::SetYarnLinearDensity().
|
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().
|
inherited |
Definition at line 202 of file Properties.h.
Referenced by TexGen::CProperties::CProperties(), TexGen::CProperties::GetYoungsModulusX(), TexGen::CProperties::PopulateTiXmlElement(), and TexGen::CProperties::SetYoungsModulusX().
|
inherited |
Definition at line 203 of file Properties.h.
Referenced by TexGen::CProperties::CProperties(), TexGen::CProperties::GetYoungsModulusY(), TexGen::CProperties::PopulateTiXmlElement(), and TexGen::CProperties::SetYoungsModulusY().
|
inherited |
Definition at line 204 of file Properties.h.
Referenced by TexGen::CProperties::CProperties(), TexGen::CProperties::GetYoungsModulusZ(), TexGen::CProperties::PopulateTiXmlElement(), and TexGen::CProperties::SetYoungsModulusZ().