OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
oofem::MesherInterface Class Referenceabstract

The base class representing the interface to mesh generation package. More...

#include <mesherinterface.h>

+ Inheritance diagram for oofem::MesherInterface:
+ Collaboration diagram for oofem::MesherInterface:

Public Types

enum  returnCode { MI_OK, MI_NEEDS_EXTERNAL_ACTION, MI_FAILED }
 

Public Member Functions

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

Protected Attributes

Domaindomain
 

Detailed Description

The base class representing the interface to mesh generation package.

This interface is primarily responsible for two main tasks:

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

Definition at line 52 of file mesherinterface.h.

Member Enumeration Documentation

Enumerator
MI_OK 
MI_NEEDS_EXTERNAL_ACTION 
MI_FAILED 

Definition at line 57 of file mesherinterface.h.

Constructor & Destructor Documentation

oofem::MesherInterface::MesherInterface ( Domain d)
inline

Constructor.

Definition at line 59 of file mesherinterface.h.

virtual oofem::MesherInterface::~MesherInterface ( )
inlinevirtual

Destructor.

Definition at line 63 of file mesherinterface.h.

Member Function Documentation

virtual returnCode oofem::MesherInterface::createMesh ( TimeStep tStep,
int  domainNumber,
int  domainSerNum,
Domain **  dNew 
)
pure 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.

Implemented in oofem::Subdivision, oofem::T3DInterface, oofem::FreemInterface, and oofem::Targe2Interface.

Referenced by oofem::AdaptiveNonLinearStatic::solveYourselfAt().

virtual IRResultType oofem::MesherInterface::initializeFrom ( InputRecord ir)
inlinevirtual

Initializes receiver according to object description stored in input record.

This function is called immediately after creating object using constructor. Input record can be imagined as data record in component database belonging to receiver. Receiver may use value-name extracting functions to extract particular field from record.

Definition at line 80 of file mesherinterface.h.

References oofem::IRRT_OK.

Member Data Documentation


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

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:38 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011