TexGen
|
#include <Materials.h>
Public Member Functions | |
CTextileMaterials () | |
~CTextileMaterials () | |
void | SetupMaterials (CTextile &Textile) |
Set up a material for each unique set of material constants. More... | |
void | AssignMaterial (string Material, int iYarn) |
Assign the material to a given yarn. More... | |
void | AssignMaterial (string Material, const vector< int > &Yarns) |
Assign the material to a number of yarns. More... | |
bool | CompareMaterialConstants (const vector< double > &MatConstants, const vector< double > &ThermConstants, const pair< vector< double >, vector< double > > &Constants) |
Compare two sets of material constants. Return true if identical. More... | |
void | AddMaterial (string Name, const pair< vector< double >, vector< double > > &Constants) |
Add a material with associated name, this should then be assigned to yarns individually. More... | |
bool | CheckYarnConstants (pair< vector< double >, vector< double > > &Constants) |
Check if material constants have been assigned (ie != 0). Return false if all 0.0. More... | |
void | OutputMaterials (ostream &Output, int iNumYarns, bool bMatrixOnly) |
Output materials and assign to yarn element sets. More... | |
map< string, pair< CObjectContainer< CMaterial >, CObjectContainer< CMaterial > > > | GetMaterials () |
map< int, string > | GetMaterialAssignements () |
Protected Attributes | |
map< int, string > | m_MaterialAssignements |
Output materials and assign to yarn element sets. More... | |
map< string, pair< CObjectContainer< CMaterial >, CObjectContainer< CMaterial > > > | m_Materials |
Definition at line 53 of file Materials.h.
|
inline |
Definition at line 56 of file Materials.h.
|
inline |
Definition at line 57 of file Materials.h.
void CTextileMaterials::AddMaterial | ( | string | Name, |
const pair< vector< double >, vector< double > > & | Constants | ||
) |
Add a material with associated name, this should then be assigned to yarns individually.
Definition at line 138 of file Materials.cpp.
References m_Materials.
Referenced by SetupMaterials().
void CTextileMaterials::AssignMaterial | ( | string | Material, |
const vector< int > & | Yarns | ||
) |
Assign the material to a number of yarns.
Definition at line 112 of file Materials.cpp.
References m_MaterialAssignements.
void CTextileMaterials::AssignMaterial | ( | string | Material, |
int | iYarn | ||
) |
Assign the material to a given yarn.
Definition at line 107 of file Materials.cpp.
References m_MaterialAssignements.
Referenced by SetupMaterials().
bool CTextileMaterials::CheckYarnConstants | ( | pair< vector< double >, vector< double > > & | Constants | ) |
Check if material constants have been assigned (ie != 0). Return false if all 0.0.
Definition at line 147 of file Materials.cpp.
References DEFAULT_A, DEFAULT_E, DEFAULT_G, and DEFAULT_v.
Referenced by SetupMaterials().
bool CTextileMaterials::CompareMaterialConstants | ( | const vector< double > & | MatConstants, |
const vector< double > & | ThermConstants, | ||
const pair< vector< double >, vector< double > > & | Constants | ||
) |
Compare two sets of material constants. Return true if identical.
Definition at line 121 of file Materials.cpp.
Referenced by SetupMaterials().
|
inline |
Definition at line 76 of file Materials.h.
Referenced by TexGen::CSimulationAbaqus::CreateMaterials().
|
inline |
Definition at line 75 of file Materials.h.
Referenced by TexGen::CSimulationAbaqus::CreateMaterials().
void CTextileMaterials::OutputMaterials | ( | ostream & | Output, |
int | iNumYarns, | ||
bool | bMatrixOnly | ||
) |
Output materials and assign to yarn element sets.
Definition at line 187 of file Materials.cpp.
References m_MaterialAssignements, and m_Materials.
Referenced by TexGen::CShellElementExport::SaveShellElementToABAQUS(), TexGen::CVoxelMesh::SaveToAbaqus(), and TexGen::CMesher::SaveVolumeMeshToABAQUS().
void CTextileMaterials::SetupMaterials | ( | CTextile & | Textile | ) |
Set up a material for each unique set of material constants.
Definition at line 31 of file Materials.cpp.
References AddMaterial(), AssignMaterial(), CheckYarnConstants(), CompareMaterialConstants(), TexGen::CProperties::GetAlphaX(), TexGen::CProperties::GetAlphaY(), TexGen::CProperties::GetAlphaZ(), TexGen::CPropertiesTextile::GetMatrixAlpha(), TexGen::CPropertiesTextile::GetMatrixPoissonsRatio(), TexGen::CPropertiesTextile::GetMatrixYoungsModulus(), TexGen::CTextile::GetNumYarns(), TexGen::CProperties::GetPoissonsRatioX(), TexGen::CProperties::GetPoissonsRatioY(), TexGen::CProperties::GetPoissonsRatioZ(), TexGen::CProperties::GetShearModulusXY(), TexGen::CProperties::GetShearModulusXZ(), TexGen::CProperties::GetShearModulusYZ(), TexGen::CTextile::GetYarn(), TexGen::CProperties::GetYoungsModulusX(), TexGen::CProperties::GetYoungsModulusY(), TexGen::CProperties::GetYoungsModulusZ(), m_Materials, TexGen::stringify(), and TGERROR.
Referenced by TexGen::CSimulationAbaqus::CreateAbaqusInputFile(), TexGen::CShellElementExport::SaveShellElementToABAQUS(), TexGen::CVoxelMesh::SaveToAbaqus(), and TexGen::CMesher::SaveVolumeMeshToABAQUS().
|
protected |
Output materials and assign to yarn element sets.
Definition at line 80 of file Materials.h.
Referenced by AssignMaterial(), and OutputMaterials().
|
protected |
Definition at line 81 of file Materials.h.
Referenced by AddMaterial(), OutputMaterials(), and SetupMaterials().