NEMoSys  0.63.0
A modular, extensible resource with robust automated mesh generation, mesh quality analysis, adaptive mesh refinement, and data transfer between arbitrary meshes.
NEM::DRV::RefineDriver Class Referenceabstract

Detailed Description

Definition at line 40 of file RefineDriver.H.

Public Types

using Files = DriverInOutFiles
 

Public Member Functions

 RefineDriver (Files files)
 
virtual const FilesgetFiles () const
 
virtual void setFiles (Files files)
 
virtual void execute () const =0
 Run the workflow represented by the driver. More...
 

Static Public Member Functions

static std::unique_ptr< NemDriverreadJSON (const jsoncons::json &inputjson)
 Factory method for all drivers. More...
 

Protected Attributes

Files files_
 

Private Member Functions

jsoncons::string_view getProgramType () const override
 

Static Private Attributes

static constexpr const char * programType = "Refinement"
 

Inherits NEM::DRV::NemDriver.

Inherited by NEM::DRV::FoamRefineDriver, NEM::DRV::OmegahRefineDriver, NEM::DRV::SizeFieldRefineDriver, NEM::DRV::UniformRefineDriver, and NEM::DRV::Z2RefineDriver.

Member Typedef Documentation

◆ Files

Definition at line 42 of file RefineDriver.H.

Constructor & Destructor Documentation

◆ RefineDriver()

NEM::DRV::RefineDriver::RefineDriver ( Files  files)
explicit

Definition at line 34 of file RefineDriver.C.

Referenced by NEM::DRV::FoamRefineDriver::execute().

34 : files_(std::move(files)) {}

Member Function Documentation

◆ execute()

◆ getFiles()

const RefineDriver::Files & NEM::DRV::RefineDriver::getFiles ( ) const
virtual

Definition at line 40 of file RefineDriver.C.

References files_.

40  {
41  return files_;
42 }

◆ getProgramType()

jsoncons::string_view NEM::DRV::RefineDriver::getProgramType ( ) const
overrideprivatevirtual

Implements NEM::DRV::NemDriver.

Definition at line 36 of file RefineDriver.C.

References programType.

36  {
37  return programType;
38 }
static constexpr const char * programType
Definition: RefineDriver.H:54

◆ readJSON()

std::unique_ptr< NemDriver > NEM::DRV::NemDriver::readJSON ( const jsoncons::json &  inputjson)
staticinherited
Parameters
inputjsonjson input with "Program Type" key
Returns
pointer to base NemDriver class

Definition at line 37 of file NemDriver.C.

Referenced by NEM::DRV::MeshGenDriver::MeshGenDriver().

37  {
38  return inputjson.as<std::unique_ptr<NemDriver>>();
39 }

◆ setFiles()

void NEM::DRV::RefineDriver::setFiles ( Files  files)
virtual

Definition at line 44 of file RefineDriver.C.

References files_.

44  {
45  this->files_ = std::move(files);
46 }

Member Data Documentation

◆ files_

◆ programType

constexpr const char* NEM::DRV::RefineDriver::programType = "Refinement"
staticprivate

Definition at line 54 of file RefineDriver.H.

Referenced by getProgramType().


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