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::ProteusDriver Class Reference

Driver to read Proteus output. More...

Detailed Description

Converts Proteus HDF mesh to VTK/Exodus format

Definition at line 42 of file ProteusDriver.H.

Classes

struct  Files
 
struct  Opts
 

Public Member Functions

 ProteusDriver (Files files, Opts opts)
 
const FilesgetFiles () const
 
void setFiles (Files files)
 
const OptsgetOpts () const
 
void setOpts (Opts opts)
 
void execute () const override
 Run the workflow represented by the driver. More...
 
 ~ProteusDriver () override
 

Static Public Member Functions

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

Private Member Functions

 ProteusDriver ()
 
jsoncons::string_view getProgramType () const override
 

Private Attributes

Files files_
 
Opts opts_
 

Static Private Attributes

static constexpr const char * programType = "Proteus"
 

Inherits NEM::DRV::NemDriver.

Constructor & Destructor Documentation

◆ ProteusDriver() [1/2]

NEM::DRV::ProteusDriver::ProteusDriver ( Files  files,
Opts  opts 
)

Definition at line 46 of file ProteusDriver.C.

47  : files_(std::move(files)), opts_(std::move(opts)) {
48  std::cout << "ProteusDriver created\n";
49 }

◆ ~ProteusDriver()

NEM::DRV::ProteusDriver::~ProteusDriver ( )
override

Definition at line 61 of file ProteusDriver.C.

61  {
62  std::cout << "ProteusDriver destroyed" << std::endl;
63 }

◆ ProteusDriver() [2/2]

NEM::DRV::ProteusDriver::ProteusDriver ( )
private

Definition at line 51 of file ProteusDriver.C.

51 : ProteusDriver({{}, {}, {}}, Opts{{}}) {}

Member Function Documentation

◆ execute()

void NEM::DRV::ProteusDriver::execute ( ) const
overridevirtual

Implements NEM::DRV::NemDriver.

Definition at line 69 of file ProteusDriver.C.

References NEM::DRV::ProteusDriver::Files::fieldFName, and files_.

69  {
70  proteusHdf5(this->files_.fieldFName, this->files_.meshFName,
71  this->opts_.edgeSidesetName, this->files_.exoMeshFName,
72  this->opts_.lowOrder, this->opts_.bndryConst);
73 }
std::string fieldFName
Proteus format HDF5 field filename.
Definition: ProteusDriver.H:51
Class to store HDF5 data from Proteus files.
Definition: proteusHdf5.H:110

◆ getFiles()

const ProteusDriver::Files & NEM::DRV::ProteusDriver::getFiles ( ) const

Definition at line 53 of file ProteusDriver.C.

References files_.

53 { return files_; }

◆ getOpts()

const ProteusDriver::Opts & NEM::DRV::ProteusDriver::getOpts ( ) const

Definition at line 57 of file ProteusDriver.C.

References opts_.

57 { return opts_; }

◆ getProgramType()

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

Implements NEM::DRV::NemDriver.

Definition at line 65 of file ProteusDriver.C.

References programType.

65  {
66  return programType;
67 }
static constexpr const char * programType

◆ 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::ProteusDriver::setFiles ( Files  files)

Definition at line 55 of file ProteusDriver.C.

References files_.

55 { this->files_ = std::move(files); }

◆ setOpts()

void NEM::DRV::ProteusDriver::setOpts ( Opts  opts)

Definition at line 59 of file ProteusDriver.C.

References opts_.

59 { this->opts_ = std::move(opts); }

Member Data Documentation

◆ files_

Files NEM::DRV::ProteusDriver::files_
private

Definition at line 99 of file ProteusDriver.H.

Referenced by execute(), getFiles(), and setFiles().

◆ opts_

Opts NEM::DRV::ProteusDriver::opts_
private

Definition at line 100 of file ProteusDriver.H.

Referenced by getOpts(), and setOpts().

◆ programType

constexpr const char* NEM::DRV::ProteusDriver::programType = "Proteus"
staticprivate

Definition at line 102 of file ProteusDriver.H.

Referenced by getProgramType().


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