OOFEM 3.0
Loading...
Searching...
No Matches
oofem::MesherInterface Class Referenceabstract

#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.
virtual ~MesherInterface ()
 Destructor.
virtual returnCode createMesh (TimeStep *tStep, int domainNumber, int domainSerNum, Domain **dNew)=0
virtual void initializeFrom (InputRecord &ir)

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

◆ returnCode

Enumerator
MI_OK 
MI_NEEDS_EXTERNAL_ACTION 
MI_FAILED 

Definition at line 57 of file mesherinterface.h.

Constructor & Destructor Documentation

◆ MesherInterface()

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

◆ ~MesherInterface()

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

Destructor.

Definition at line 63 of file mesherinterface.h.

Member Function Documentation

◆ createMesh()

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::FreemInterface, oofem::Subdivision, oofem::T3DInterface, and oofem::Targe2Interface.

◆ initializeFrom()

virtual void 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.

Member Data Documentation

◆ domain


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

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011