|
OOFEM 3.0
|
#include <t3dinterface.h>
Public Member Functions | |
| T3DInterface (Domain *d) | |
| Constructor. | |
| virtual | ~T3DInterface () |
| Destructor. | |
| returnCode | createMesh (TimeStep *tStep, int domainNumber, int domainSerNum, Domain **dNew) override |
| int | t3d_2_OOFEM (const char *t3dOutFile, Domain **dNew) |
| int | createInput (Element *e, char *t3dInFile) |
| int | createVTKExportMesh (const char *t3dOutFile, std::vector< FloatArray > &nodeCoords, std::vector< IntArray > &cellNodes, IntArray &cellTypes) |
| int | createQCInterpolationMesh (const char *t3dOutFile, std::vector< FloatArray > &nodeCoords, std::vector< IntArray > &cellNodes, IntArray &cellTypes) |
| Public Member Functions inherited from oofem::MesherInterface | |
| MesherInterface (Domain *d) | |
| Constructor. | |
| virtual | ~MesherInterface () |
| Destructor. | |
| virtual void | initializeFrom (InputRecord &ir) |
Protected Member Functions | |
| int | createInput (Domain *d, TimeStep *tStep) |
| Creates the mesher input, containing the required mesh density information. | |
Additional Inherited Members | |
| Public Types inherited from oofem::MesherInterface | |
| enum | returnCode { MI_OK , MI_NEEDS_EXTERNAL_ACTION , MI_FAILED } |
| Protected Attributes inherited from oofem::MesherInterface | |
| Domain * | domain |
This class represents the interface to t3d mesh generation package. This interface is primarily responsible for two main tasks:
Definition at line 55 of file t3dinterface.h.
|
inline |
Constructor.
Definition at line 59 of file t3dinterface.h.
References oofem::MesherInterface::MesherInterface().
|
inlinevirtual |
Destructor.
Definition at line 61 of file t3dinterface.h.
Creates the mesher input, containing the required mesh density information.
Definition at line 73 of file t3dinterface.C.
References oofem::__Element_Geometry_TypeToString(), oofem::IntArray::at(), BMF_FILENAME, oofem::DofManager::giveCoordinate(), oofem::Domain::giveElement(), oofem::Domain::giveEngngModel(), oofem::Domain::giveErrorEstimator(), oofem::Element::giveGeometryType(), oofem::Domain::giveNode(), oofem::Element::giveNode(), oofem::FEMComponent::giveNumber(), oofem::Domain::giveNumberOfDofManagers(), oofem::Domain::giveNumberOfElements(), oofem::EngngModel::giveRank(), oofem::ErrorEstimator::giveRemeshingCrit(), oofem::RemeshingCriteria::giveRequiredDofManDensity(), oofem::EngngModel::isParallel(), OOFEM_ERROR, OOFEM_LOG_INFO, and oofem::IntArray::resize().
| int oofem::T3DInterface::createInput | ( | Element * | e, |
| char * | t3dInFile ) |
Definition at line 568 of file t3dinterface.C.
References oofem::DofManager::giveCoordinate(), oofem::Element::giveNode(), and oofem::Element::giveNumberOfDofManagers().
Referenced by createMesh().
|
overridevirtual |
Runs the mesh generation, mesh will be written to corresponding domain din file.
| tStep | Time step. |
| domainNumber | New domain number. |
| domainSerNum | New domain serial number. |
| dNew | Newly allocated domain, representing new mesh or set to NULL if external generation has to be performed. |
Implements oofem::MesherInterface.
Definition at line 62 of file t3dinterface.C.
References createInput(), oofem::MesherInterface::domain, oofem::MesherInterface::MI_FAILED, and oofem::MesherInterface::MI_NEEDS_EXTERNAL_ACTION.
| int oofem::T3DInterface::createQCInterpolationMesh | ( | const char * | t3dOutFile, |
| std::vector< FloatArray > & | nodeCoords, | ||
| std::vector< IntArray > & | cellNodes, | ||
| IntArray & | cellTypes ) |
Definition at line 722 of file t3dinterface.C.
References oofem::FloatArray::at(), oofem::IntArray::at(), OOFEM_ERROR, and oofem::IntArray::resize().
Referenced by oofem::QClinearStatic::generateInterpolationMesh(), and oofem::QClinearStatic::loadInterpolationMesh().
| int oofem::T3DInterface::createVTKExportMesh | ( | const char * | t3dOutFile, |
| std::vector< FloatArray > & | nodeCoords, | ||
| std::vector< IntArray > & | cellNodes, | ||
| IntArray & | cellTypes ) |
Definition at line 603 of file t3dinterface.C.
References oofem::FloatArray::at(), oofem::IntArray::at(), OOFEM_ERROR, and oofem::IntArray::resize().
| int oofem::T3DInterface::t3d_2_OOFEM | ( | const char * | t3dOutFile, |
| Domain ** | dNew ) |
Definition at line 289 of file t3dinterface.C.
References oofem::FloatArray::at(), oofem::IntArray::at(), oofem::classFactory, oofem::MesherInterface::domain, oofem::Element::giveClassName(), oofem::Element::giveCrossSection(), oofem::Element::giveMaterial(), oofem::FEMComponent::giveNumber(), oofem::DynamicInputRecord::giveRecordKeywordField(), oofem::IntArray::giveSize(), and OOFEM_ERROR.