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

#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
 

Detailed Description

Definition at line 53 of file Materials.h.

Constructor & Destructor Documentation

◆ CTextileMaterials()

TexGen::CTextileMaterials::CTextileMaterials ( )
inline

Definition at line 56 of file Materials.h.

◆ ~CTextileMaterials()

TexGen::CTextileMaterials::~CTextileMaterials ( )
inline

Definition at line 57 of file Materials.h.

Member Function Documentation

◆ AddMaterial()

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().

◆ AssignMaterial() [1/2]

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.

◆ AssignMaterial() [2/2]

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().

◆ CheckYarnConstants()

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().

◆ CompareMaterialConstants()

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().

◆ GetMaterialAssignements()

map< int, string > TexGen::CTextileMaterials::GetMaterialAssignements ( )
inline

Definition at line 76 of file Materials.h.

Referenced by TexGen::CSimulationAbaqus::CreateMaterials().

◆ GetMaterials()

map< string, pair< CObjectContainer< CMaterial >, CObjectContainer< CMaterial > > > TexGen::CTextileMaterials::GetMaterials ( )
inline

Definition at line 75 of file Materials.h.

Referenced by TexGen::CSimulationAbaqus::CreateMaterials().

◆ OutputMaterials()

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().

◆ SetupMaterials()

void CTextileMaterials::SetupMaterials ( CTextile Textile)

Member Data Documentation

◆ m_MaterialAssignements

map<int, string> TexGen::CTextileMaterials::m_MaterialAssignements
protected

Output materials and assign to yarn element sets.

Definition at line 80 of file Materials.h.

Referenced by AssignMaterial(), and OutputMaterials().

◆ m_Materials

map<string, pair< CObjectContainer<CMaterial>, CObjectContainer<CMaterial> > > TexGen::CTextileMaterials::m_Materials
protected

Definition at line 81 of file Materials.h.

Referenced by AddMaterial(), OutputMaterials(), and SetupMaterials().


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