|
TexGen
|
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 CMesh & | GetMesh () |
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< CMesh > | m_YarnMeshes |
| vector< POINT_INFO > | m_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 |
| CTextileMaterials * | m_Materials |
| Class for export of material properties. More... | |
Class for exporting surface mesh to ABAQUS.
Definition at line 31 of file ShellElementExport.h.
|
protected |
Definition at line 53 of file ShellElementExport.h.
| CShellElementExport::CShellElementExport | ( | bool | bWholeSurfaces, |
| bool | bTrimSurface = true |
||
| ) |
Definition at line 26 of file ShellElementExport.cpp.
| CShellElementExport::~CShellElementExport | ( | void | ) |
Definition at line 32 of file ShellElementExport.cpp.
|
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().
|
protected |
Definition at line 357 of file ShellElementExport.cpp.
Referenced by OutputContacts().
|
protected |
Definition at line 279 of file ShellElementExport.cpp.
References CreateContacts().
Referenced by CreateContacts(), and SaveShellElementToABAQUS().
|
protected |
Definition at line 324 of file ShellElementExport.cpp.
References TexGen::CTextile3DWeave::GetCell(), TexGen::CTextile3DWeave::GetNumXYarns(), TexGen::CTextile3DWeave::GetNumYYarns(), TexGen::CTextile3DWeave::GetYarnIndex(), OutputContacts(), and TexGen::PATTERN3D_NOYARN.
|
protected |
Definition at line 306 of file ShellElementExport.cpp.
References TexGen::CTextileWeave::GetCell(), TexGen::CTextileWeave::GetNumXYarns(), TexGen::CTextileWeave::GetNumYYarns(), TexGen::CTextileWeave::GetYarnIndex(), and OutputContacts().
|
protected |
Definition at line 363 of file ShellElementExport.cpp.
Referenced by SaveShellElementToABAQUS().
|
protected |
Definition at line 126 of file ShellElementExport.cpp.
References GetYarnSurface(), GetYarnSurfaces(), m_bWholeSurfaces, TexGen::stringify(), and TGLOG.
Referenced by SaveShellElementToABAQUS().
|
protected |
Definition at line 213 of file ShellElementExport.cpp.
References GetGlobalElementIndex().
Referenced by SaveShellElementToABAQUS().
|
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().
|
protected |
Definition at line 235 of file ShellElementExport.cpp.
References m_ElementIndexOffsets.
Referenced by CreateSurfaces().
|
inline |
Definition at line 45 of file ShellElementExport.h.
|
protected |
Definition at line 194 of file ShellElementExport.cpp.
References m_YarnMeshes, and TexGen::CMesh::QUAD.
Referenced by CreateSurfaceDefinitions().
|
protected |
Definition at line 147 of file ShellElementExport.cpp.
References TexGen::CrossProduct(), TexGen::CMesh::GetIndices(), TexGen::CMesh::GetNode(), TexGen::CMesh::GetNumNodes(), m_YarnMeshes, TexGen::CMesh::POLYGON, TexGen::CMesh::QUAD, TexGen::CMesh::RemoveElementType(), TexGen::CMesh::RemoveUnreferencedNodes(), and TexGen::XYZ::z.
Referenced by CreateSurfaceDefinitions().
|
protected |
Definition at line 343 of file ShellElementExport.cpp.
References CreateContact(), m_bWholeSurfaces, and TexGen::stringify().
Referenced by CreateContacts().
| bool CShellElementExport::SaveShellElementToABAQUS | ( | string | Filename, |
| CTextile & | Textile | ||
| ) |
Save surface mesh to ABAQUS input file.
| Filename | including path. Any spaces will be stripped in function |
| Textile | to be exported |
Definition at line 36 of file ShellElementExport.cpp.
References TexGen::CYarn::AddSurfaceToMesh(), BuildIndexOffsets(), CreateContacts(), CreateInteractions(), CreateSurfaceDefinitions(), CreateSurfaces(), TexGen::CTextile::GetDomain(), GetElementInfo(), TexGen::CTextile::GetNumYarns(), TexGen::CYarn::GetRepeats(), TexGen::CTextile::GetYarn(), TexGen::CMesh::InsertMesh(), m_bTrimSurface, m_ElementInfo, m_Materials, m_SurfaceMesh, m_YarnMeshes, TexGen::CTextileMaterials::OutputMaterials(), TexGen::ReplaceFilenameSpaces(), TexGen::CMesh::SaveToABAQUS(), TexGen::CTextileMaterials::SetupMaterials(), TGERROR, and TGLOG.
|
protected |
True if domain surface is to be exported.
Definition at line 77 of file ShellElementExport.h.
|
protected |
True if surfaces to be trimmed to domain.
Definition at line 75 of file ShellElementExport.h.
Referenced by SaveShellElementToABAQUS().
|
protected |
Definition at line 78 of file ShellElementExport.h.
Referenced by CreateSurfaceDefinitions(), and OutputContacts().
|
protected |
Definition at line 71 of file ShellElementExport.h.
Referenced by BuildIndexOffsets(), and GetGlobalElementIndex().
|
protected |
Definition at line 69 of file ShellElementExport.h.
Referenced by GetElementInfo(), and SaveShellElementToABAQUS().
|
protected |
Class for export of material properties.
Definition at line 81 of file ShellElementExport.h.
Referenced by SaveShellElementToABAQUS().
|
protected |
Definition at line 72 of file ShellElementExport.h.
Referenced by BuildIndexOffsets().
|
protected |
Definition at line 67 of file ShellElementExport.h.
Referenced by SaveShellElementToABAQUS().
|
protected |
Definition at line 68 of file ShellElementExport.h.
Referenced by BuildIndexOffsets(), GetElementInfo(), GetYarnSurface(), GetYarnSurfaces(), and SaveShellElementToABAQUS().