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

Detailed Description

Definition at line 50 of file MeshQualityDriver.H.

Classes

struct  Files
 
struct  Opts
 

Public Member Functions

 CheckMeshQualDriver (Files files)
 
const FilesgetFiles () const
 
void setFiles (Files files)
 

Static Public Member Functions

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

Private Member Functions

 CheckMeshQualDriver ()
 
void execute () const override
 Run the workflow represented by the driver. More...
 

Static Private Member Functions

static Opts getOpts ()
 

Private Attributes

Files files_
 

Inherits NEM::DRV::MeshQualityDriver.

Constructor & Destructor Documentation

◆ CheckMeshQualDriver() [1/2]

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

Definition at line 45 of file MeshQualityDriver.C.

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

◆ CheckMeshQualDriver() [2/2]

NEM::DRV::CheckMeshQualDriver::CheckMeshQualDriver ( )
private

Definition at line 48 of file MeshQualityDriver.C.

Member Function Documentation

◆ execute()

void NEM::DRV::CheckMeshQualDriver::execute ( ) const
overrideprivatevirtual

Implements NEM::DRV::NemDriver.

Definition at line 60 of file MeshQualityDriver.C.

References meshBase::Create(), files_, NEM::DRV::CheckMeshQualDriver::Files::inputMeshFile, mesh, and NEM::DRV::CheckMeshQualDriver::Files::outputFile.

60  {
62  mesh->checkMesh(this->files_.outputFile);
63 }
static meshBase * Create(const std::string &fname)
Construct vtkMesh from filename.
Definition: meshBase.C:78
std::shared_ptr< meshBase > mesh

◆ getFiles()

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

Definition at line 52 of file MeshQualityDriver.C.

References files_.

52  {
53  return files_;
54 }

◆ getOpts()

CheckMeshQualDriver::Opts NEM::DRV::CheckMeshQualDriver::getOpts ( )
staticprivate

Definition at line 50 of file MeshQualityDriver.C.

50 { return {}; }

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

Definition at line 56 of file MeshQualityDriver.C.

References files_.

56  {
57  this->files_ = std::move(files);
58 }

Member Data Documentation

◆ files_

Files NEM::DRV::CheckMeshQualDriver::files_
private

Definition at line 71 of file MeshQualityDriver.H.

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


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