Class to create 2d geometry from polygons and circles and mesh it. More...
Definition at line 50 of file NucMeshDriver.H.
Public Types | |
using | Files = DriverOutFile |
using | Opts = NEM::SRV::NucMeshConf |
Public Member Functions | |
NucMeshDriver (Files file, Opts opts) | |
NucMeshDriver ctor. More... | |
const Files & | getFiles () const |
Get the output file name. More... | |
void | setFiles (Files files) |
Set the output file for the driver. More... | |
const Opts & | getOpts () const |
Get the options set on a driver object. More... | |
void | setOpts (Opts opts) |
Set the geometry/mesh and extrusion to execute. More... | |
vtkSmartPointer< NEM::MSH::geoMeshBase > | draw () const |
Construct the mesh. More... | |
void | execute () const override |
Construct the mesh and write to file. More... | |
Static Public Member Functions | |
static std::unique_ptr< NemDriver > | readJSON (const jsoncons::json &inputjson) |
Factory method for all drivers. More... | |
Private Member Functions | |
NucMeshDriver () | |
jsoncons::string_view | getProgramType () const override |
Private Attributes | |
Files | file_ |
Opts | opts_ |
Static Private Attributes | |
static constexpr const char * | programType = "NucMesh Generation" |
Inherits NEM::DRV::NemDriver.
Definition at line 52 of file NucMeshDriver.H.
Definition at line 54 of file NucMeshDriver.H.
file | Output file. Should end in ".vtu" |
opts | Specify shapes and extrusion. |
Definition at line 38 of file NucMeshDriver.C.
|
private |
Definition at line 41 of file NucMeshDriver.C.
vtkSmartPointer< NEM::MSH::geoMeshBase > NEM::DRV::NucMeshDriver::draw | ( | ) | const |
Definition at line 55 of file NucMeshDriver.C.
References opts_.
Referenced by execute().
|
overridevirtual |
Implements NEM::DRV::NemDriver.
Definition at line 62 of file NucMeshDriver.C.
References draw(), file_, NEM::MSH::New(), and NEM::DRV::DriverOutFile::outputFile.
const NucMeshDriver::Files & NEM::DRV::NucMeshDriver::getFiles | ( | ) | const |
Definition at line 43 of file NucMeshDriver.C.
References file_.
const NucMeshDriver::Opts & NEM::DRV::NucMeshDriver::getOpts | ( | ) | const |
Definition at line 47 of file NucMeshDriver.C.
References opts_.
|
overrideprivatevirtual |
Implements NEM::DRV::NemDriver.
Definition at line 51 of file NucMeshDriver.C.
References programType.
|
staticinherited |
inputjson | json input with "Program Type" key |
Definition at line 37 of file NemDriver.C.
Referenced by NEM::DRV::MeshGenDriver::MeshGenDriver().
void NEM::DRV::NucMeshDriver::setFiles | ( | Files | files | ) |
files | NEM::DRV::NucMeshDriver::Files object containing output file |
Definition at line 45 of file NucMeshDriver.C.
References file_.
void NEM::DRV::NucMeshDriver::setOpts | ( | Opts | opts | ) |
opts | geometry/mesh options |
Definition at line 49 of file NucMeshDriver.C.
References opts_.
|
private |
Definition at line 100 of file NucMeshDriver.H.
Referenced by execute(), getFiles(), and setFiles().
|
private |
Definition at line 101 of file NucMeshDriver.H.
|
staticprivate |
Definition at line 103 of file NucMeshDriver.H.
Referenced by NEM::DRV::JSON::as_shape(), and getProgramType().