OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
oofem::T3DInterface Class Reference

This class represents the interface to t3d mesh generation package. More...

#include <t3dinterface.h>

+ Inheritance diagram for oofem::T3DInterface:
+ Collaboration diagram for oofem::T3DInterface:

Public Member Functions

 T3DInterface (Domain *d)
 Constructor. More...
 
virtual ~T3DInterface ()
 Destructor. More...
 
virtual returnCode createMesh (TimeStep *tStep, int domainNumber, int domainSerNum, Domain **dNew)
 Runs the mesh generation, mesh will be written to corresponding domain din file. More...
 
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. More...
 
virtual ~MesherInterface ()
 Destructor. More...
 
virtual IRResultType initializeFrom (InputRecord *ir)
 Initializes receiver according to object description stored in input record. More...
 

Protected Member Functions

int createInput (Domain *d, TimeStep *tStep)
 Creates the mesher input, containing the required mesh density information. More...
 

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
Domaindomain
 

Detailed Description

This class represents the interface to t3d mesh generation package.

This interface is primarily responsible for two main tasks:

  • to create input mesher file, containing all information including the mesh density information based on information from remeshing criteria.
  • possibly to launch the mesher and transform its output to oofem input (using t3d2oofem)

Definition at line 55 of file t3dinterface.h.

Constructor & Destructor Documentation

oofem::T3DInterface::T3DInterface ( Domain d)
inline

Constructor.

Definition at line 59 of file t3dinterface.h.

virtual oofem::T3DInterface::~T3DInterface ( )
inlinevirtual

Destructor.

Definition at line 61 of file t3dinterface.h.

Member Function Documentation

int oofem::T3DInterface::createInput ( Element e,
char *  t3dInFile 
)
MesherInterface::returnCode oofem::T3DInterface::createMesh ( TimeStep tStep,
int  domainNumber,
int  domainSerNum,
Domain **  dNew 
)
virtual

Runs the mesh generation, mesh will be written to corresponding domain din file.

Parameters
tStepTime step.
domainNumberNew domain number.
domainSerNumNew domain serial number.
dNewNewly 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 
)
int oofem::T3DInterface::createVTKExportMesh ( const char *  t3dOutFile,
std::vector< FloatArray > &  nodeCoords,
std::vector< IntArray > &  cellNodes,
IntArray cellTypes 
)
int oofem::T3DInterface::t3d_2_OOFEM ( const char *  t3dOutFile,
Domain **  dNew 
)

Definition at line 289 of file t3dinterface.C.

References oofem::IntArray::at(), oofem::FloatArray::at(), oofem::classFactory, oofem::ClassFactory::createBoundaryCondition(), oofem::ClassFactory::createCrossSection(), oofem::ClassFactory::createElement(), oofem::ClassFactory::createFunction(), oofem::ClassFactory::createMaterial(), oofem::ClassFactory::createNonlocalBarrier(), oofem::MesherInterface::domain, oofem::Domain::giveBc(), oofem::Element::giveClassName(), oofem::Domain::giveCrossSection(), oofem::Element::giveCrossSection(), oofem::Domain::giveDefaultNodeDofIDArry(), oofem::Domain::giveDomainType(), oofem::Domain::giveElement(), oofem::Domain::giveEngngModel(), oofem::Domain::giveFunction(), oofem::Domain::giveIc(), oofem::FEMComponent::giveInputRecord(), oofem::GeneralBoundaryCondition::giveInputRecord(), oofem::Material::giveInputRecord(), oofem::CrossSection::giveInputRecord(), oofem::Domain::giveMaterial(), oofem::Element::giveMaterial(), oofem::Domain::giveNonlocalBarrier(), oofem::FEMComponent::giveNumber(), oofem::Domain::giveNumberOfBoundaryConditions(), oofem::Domain::giveNumberOfCrossSectionModels(), oofem::Domain::giveNumberOfFunctions(), oofem::Domain::giveNumberOfInitialConditions(), oofem::Domain::giveNumberOfMaterialModels(), oofem::Domain::giveNumberOfNonlocalBarriers(), oofem::Domain::giveOutputManager(), oofem::DynamicInputRecord::giveRecordKeywordField(), oofem::Domain::giveSerialNumber(), oofem::IntArray::giveSize(), oofem::FEMComponent::initializeFrom(), oofem::InitialCondition::initializeFrom(), oofem::GeneralBoundaryCondition::initializeFrom(), oofem::Material::initializeFrom(), oofem::CrossSection::initializeFrom(), OOFEM_ERROR, oofem::Node::setCoordinates(), oofem::Element::setCrossSection(), oofem::Element::setDofManagers(), oofem::Domain::setDomainType(), oofem::Element::setMaterial(), and oofem::DofManager::setNumberOfDofs().


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

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:42 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011