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

Class for exporting surface mesh to ABAQUS. More...

#include <ShellElementExport.h>

Public Member Functions

 CShellElementExport (bool bWholeSurfaces, bool bTrimSurface=true)
 
 ~CShellElementExport (void)
 
bool SaveShellElementToABAQUS (string Filename, CTextile &Textile)
 Save surface mesh to ABAQUS input file. More...
 
const CMeshGetMesh ()
 

Protected Types

typedef int YarnNumber
 

Protected Member Functions

void GetElementInfo (CTextile &Textile)
 Get the element info for centre points of surface mesh elements. More...
 
void BuildIndexOffsets ()
 Generate node and element offsets for merging individual yarn nodes and elements into one ABAQUS file. More...
 
void CreateSurfaceDefinitions (int iNumYarns, const vector< XYZ > &Repeats, map< string, vector< pair< int, int > > > &SurfaceDefinitions)
 
void GetYarnSurfaces (int iYarn, const vector< XYZ > &Repeats, vector< pair< int, int > > &UpperFaces, vector< pair< int, int > > &LowerFaces)
 
void GetYarnSurface (int iYarn, vector< pair< int, int > > &Elements)
 
void CreateSurfaces (ostream &Output, map< string, vector< pair< YarnNumber, int > > > &SurfaceDefinitions)
 
int GetGlobalElementIndex (pair< YarnNumber, int > Element)
 
void CreateContacts (ostream &Output, const CTextile &Textile)
 
void CreateContacts (ostream &Output, const CTextileWeave &Weave)
 
void CreateContacts (ostream &Output, const CTextile3DWeave &Weave)
 
void OutputContacts (ostream &Output, set< pair< int, int > > &Contacts)
 
void CreateContact (ostream &Output, string Name1, string Name2, string InteractionName)
 
void CreateInteractions (ostream &Output)
 

Protected Attributes

CMesh m_SurfaceMesh
 
vector< CMeshm_YarnMeshes
 
vector< POINT_INFOm_ElementInfo
 
map< YarnNumber, int > m_ElementIndexOffsets
 
map< YarnNumber, int > m_NodeIndexOffsets
 
bool m_bTrimSurface
 True if surfaces to be trimmed to domain. More...
 
bool m_bExportDomain
 True if domain surface is to be exported. More...
 
bool m_bWholeSurfaces
 
CTextileMaterialsm_Materials
 Class for export of material properties. More...
 

Detailed Description

Class for exporting surface mesh to ABAQUS.

Definition at line 31 of file ShellElementExport.h.

Member Typedef Documentation

◆ YarnNumber

Definition at line 53 of file ShellElementExport.h.

Constructor & Destructor Documentation

◆ CShellElementExport()

CShellElementExport::CShellElementExport ( bool  bWholeSurfaces,
bool  bTrimSurface = true 
)

Definition at line 26 of file ShellElementExport.cpp.

◆ ~CShellElementExport()

CShellElementExport::~CShellElementExport ( void  )

Definition at line 32 of file ShellElementExport.cpp.

Member Function Documentation

◆ BuildIndexOffsets()

void CShellElementExport::BuildIndexOffsets ( )
protected

Generate node and element offsets for merging individual yarn nodes and elements into one ABAQUS file.

Definition at line 255 of file ShellElementExport.cpp.

References m_ElementIndexOffsets, m_NodeIndexOffsets, m_YarnMeshes, and TexGen::CMesh::QUAD.

Referenced by SaveShellElementToABAQUS().

◆ CreateContact()

void CShellElementExport::CreateContact ( ostream &  Output,
string  Name1,
string  Name2,
string  InteractionName 
)
protected

Definition at line 357 of file ShellElementExport.cpp.

Referenced by OutputContacts().

◆ CreateContacts() [1/3]

void CShellElementExport::CreateContacts ( ostream &  Output,
const CTextile Textile 
)
protected

Definition at line 279 of file ShellElementExport.cpp.

References CreateContacts().

Referenced by CreateContacts(), and SaveShellElementToABAQUS().

◆ CreateContacts() [2/3]

void CShellElementExport::CreateContacts ( ostream &  Output,
const CTextile3DWeave Weave 
)
protected

◆ CreateContacts() [3/3]

void CShellElementExport::CreateContacts ( ostream &  Output,
const CTextileWeave Weave 
)
protected

◆ CreateInteractions()

void CShellElementExport::CreateInteractions ( ostream &  Output)
protected

Definition at line 363 of file ShellElementExport.cpp.

Referenced by SaveShellElementToABAQUS().

◆ CreateSurfaceDefinitions()

void CShellElementExport::CreateSurfaceDefinitions ( int  iNumYarns,
const vector< XYZ > &  Repeats,
map< string, vector< pair< int, int > > > &  SurfaceDefinitions 
)
protected

◆ CreateSurfaces()

void CShellElementExport::CreateSurfaces ( ostream &  Output,
map< string, vector< pair< YarnNumber, int > > > &  SurfaceDefinitions 
)
protected

Definition at line 213 of file ShellElementExport.cpp.

References GetGlobalElementIndex().

Referenced by SaveShellElementToABAQUS().

◆ GetElementInfo()

void CShellElementExport::GetElementInfo ( CTextile Textile)
protected

Get the element info for centre points of surface mesh elements.

Definition at line 240 of file ShellElementExport.cpp.

References TexGen::CTextile::GetNumYarns(), TexGen::CTextile::GetPointInformation(), m_ElementInfo, m_YarnMeshes, TexGen::CMesh::QUAD, and TGLOG.

Referenced by SaveShellElementToABAQUS().

◆ GetGlobalElementIndex()

int CShellElementExport::GetGlobalElementIndex ( pair< YarnNumber, int >  Element)
protected

Definition at line 235 of file ShellElementExport.cpp.

References m_ElementIndexOffsets.

Referenced by CreateSurfaces().

◆ GetMesh()

const CMesh & TexGen::CShellElementExport::GetMesh ( )
inline

Definition at line 45 of file ShellElementExport.h.

◆ GetYarnSurface()

void CShellElementExport::GetYarnSurface ( int  iYarn,
vector< pair< int, int > > &  Elements 
)
protected

Definition at line 194 of file ShellElementExport.cpp.

References m_YarnMeshes, and TexGen::CMesh::QUAD.

Referenced by CreateSurfaceDefinitions().

◆ GetYarnSurfaces()

void CShellElementExport::GetYarnSurfaces ( int  iYarn,
const vector< XYZ > &  Repeats,
vector< pair< int, int > > &  UpperFaces,
vector< pair< int, int > > &  LowerFaces 
)
protected

◆ OutputContacts()

void CShellElementExport::OutputContacts ( ostream &  Output,
set< pair< int, int > > &  Contacts 
)
protected

Definition at line 343 of file ShellElementExport.cpp.

References CreateContact(), m_bWholeSurfaces, and TexGen::stringify().

Referenced by CreateContacts().

◆ SaveShellElementToABAQUS()

bool CShellElementExport::SaveShellElementToABAQUS ( string  Filename,
CTextile Textile 
)

Member Data Documentation

◆ m_bExportDomain

bool TexGen::CShellElementExport::m_bExportDomain
protected

True if domain surface is to be exported.

Definition at line 77 of file ShellElementExport.h.

◆ m_bTrimSurface

bool TexGen::CShellElementExport::m_bTrimSurface
protected

True if surfaces to be trimmed to domain.

Definition at line 75 of file ShellElementExport.h.

Referenced by SaveShellElementToABAQUS().

◆ m_bWholeSurfaces

bool TexGen::CShellElementExport::m_bWholeSurfaces
protected

Definition at line 78 of file ShellElementExport.h.

Referenced by CreateSurfaceDefinitions(), and OutputContacts().

◆ m_ElementIndexOffsets

map<YarnNumber, int> TexGen::CShellElementExport::m_ElementIndexOffsets
protected

Definition at line 71 of file ShellElementExport.h.

Referenced by BuildIndexOffsets(), and GetGlobalElementIndex().

◆ m_ElementInfo

vector<POINT_INFO> TexGen::CShellElementExport::m_ElementInfo
protected

Definition at line 69 of file ShellElementExport.h.

Referenced by GetElementInfo(), and SaveShellElementToABAQUS().

◆ m_Materials

CTextileMaterials* TexGen::CShellElementExport::m_Materials
protected

Class for export of material properties.

Definition at line 81 of file ShellElementExport.h.

Referenced by SaveShellElementToABAQUS().

◆ m_NodeIndexOffsets

map<YarnNumber, int> TexGen::CShellElementExport::m_NodeIndexOffsets
protected

Definition at line 72 of file ShellElementExport.h.

Referenced by BuildIndexOffsets().

◆ m_SurfaceMesh

CMesh TexGen::CShellElementExport::m_SurfaceMesh
protected

Definition at line 67 of file ShellElementExport.h.

Referenced by SaveShellElementToABAQUS().

◆ m_YarnMeshes

vector<CMesh> TexGen::CShellElementExport::m_YarnMeshes
protected

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