OOFEM 3.0
Loading...
Searching...
No Matches
oofem::Targe2Interface Class Reference

#include <targe2interface.h>

Inheritance diagram for oofem::Targe2Interface:
Collaboration diagram for oofem::Targe2Interface:

Public Member Functions

 Targe2Interface (Domain *d)
 Constructor.
virtual ~Targe2Interface ()
 Destructor.
returnCode createMesh (TimeStep *tStep, int domainNumber, int domainSerNum, Domain **dNew) override
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 informations.

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 Targe2 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 targe2oofem)

Definition at line 52 of file targe2interface.h.

Constructor & Destructor Documentation

◆ Targe2Interface()

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

Constructor.

Definition at line 56 of file targe2interface.h.

References oofem::MesherInterface::MesherInterface().

◆ ~Targe2Interface()

virtual oofem::Targe2Interface::~Targe2Interface ( )
inlinevirtual

Destructor.

Definition at line 58 of file targe2interface.h.

Member Function Documentation

◆ createInput()

int oofem::Targe2Interface::createInput ( Domain * d,
TimeStep * tStep )
protected

Creates the mesher input, containing the required mesh density informations.

Definition at line 58 of file targe2interface.C.

References oofem::MesherInterface::domain, oofem::Domain::giveErrorEstimator(), oofem::ErrorEstimator::giveRemeshingCrit(), oofem::RemeshingCriteria::giveRequiredDofManDensity(), and OOFEM_LOG_INFO.

Referenced by createMesh().

◆ createMesh()

MesherInterface::returnCode oofem::Targe2Interface::createMesh ( TimeStep * tStep,
int domainNumber,
int domainSerNum,
Domain ** dNew )
overridevirtual

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 47 of file targe2interface.C.

References createInput(), oofem::MesherInterface::domain, oofem::MesherInterface::MI_FAILED, and oofem::MesherInterface::MI_NEEDS_EXTERNAL_ACTION.


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

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