IOSS 2.0
Loading...
Searching...
No Matches
CatalystManagerBase.h
Go to the documentation of this file.
1// Copyright(C) 1999-2021 National Technology & Engineering Solutions
2// of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
3// NTESS, the U.S. Government retains certain rights in this software.
4//
5// See packages/seacas/LICENSE for details
6
7#ifndef __CATALYST_MANAGER_BASE_H
8#define __CATALYST_MANAGER_BASE_H
9
10#ifndef __CATALYST_PLUGIN_BUILD
11#include "iovs_export.h"
12#else
13#define IOVS_EXPORT
14#endif
15
18#include <memory>
19#include <string>
20#include <vector>
21
22namespace Iovs {
23
24 class IOVS_EXPORT CatalystManagerBase
25 {
26
27 public:
30
32 {
33 std::string jsonParseResult = "";
34 bool parseFailed = true;
35 };
36
37 virtual void parsePhactoriFile(const std::string &filepath, ParseResult &pres) = 0;
38
39 virtual void parsePhactoriString(const std::string &phactori, ParseResult &pres) = 0;
40
41 virtual int getCatalystOutputIDNumber() = 0;
42
43 virtual std::string getCatalystPluginVersion() = 0;
44
45 // Parameters:
46 // cataystPythonFilename - Python file with instructions for Catalyst.
47 // restartTag - if not empty, contains the current restart iteration string, ie s0001
48 // enableLogging - turn on logging in the adapter. Default is off.
49 // debugLevel - enable catalyst debug output 0, 1, 2. Default is 0.
50 // resultsOutputFilename - filename associated with the Ioss results output block.
51 // catalystOutputDirectory - name of the output directory for storing Catalyst output.
52 // Default is CatalystOutput.
53 // catalystData - string data vector for development and debugging.
74
75 virtual std::unique_ptr<Iovs_cgns::CatalystCGNSMeshBase>
77
78 // Parameters:
79 // underscoreVectors - joined vector variable names end in an underscore.
80 // applyDisplacements - a nodal variable named DISPL or displ is applied to
81 // the mesh node coordinates each time-step.
87
88 virtual std::unique_ptr<Iovs_exodus::CatalystExodusMeshBase>
90 };
91
92} // namespace Iovs
93
94#endif // __CATALYST_MANAGER_BASE_H
Definition CatalystManagerBase.h:25
virtual std::unique_ptr< Iovs_cgns::CatalystCGNSMeshBase > createCatalystCGNSMesh(CatalystMeshInit &cmInit)=0
virtual std::unique_ptr< Iovs_exodus::CatalystExodusMeshBase > createCatalystExodusMesh(CatalystExodusMeshInit &cmInit)=0
virtual ~CatalystManagerBase()
Definition CatalystManagerBase.h:29
virtual std::string getCatalystPluginVersion()=0
virtual void parsePhactoriString(const std::string &phactori, ParseResult &pres)=0
CatalystManagerBase()
Definition CatalystManagerBase.h:28
virtual void parsePhactoriFile(const std::string &filepath, ParseResult &pres)=0
virtual int getCatalystOutputIDNumber()=0
Definition CatalystManager.h:22
Definition CatalystManagerBase.h:83
bool applyDisplacements
Definition CatalystManagerBase.h:85
bool underScoreVectors
Definition CatalystManagerBase.h:84
Definition CatalystManagerBase.h:55
std::string restartTag
Definition CatalystManagerBase.h:60
std::string catalystBlockJSON
Definition CatalystManagerBase.h:57
std::string catalystSeparatorCharacter
Definition CatalystManagerBase.h:58
std::string catalystOutputDirectory
Definition CatalystManagerBase.h:68
bool enableCatalystMultiInputPipeline
Definition CatalystManagerBase.h:72
std::string catalystMultiInputPipelineName
Definition CatalystManagerBase.h:71
bool writeCatalystMeshFilePerProc
Definition CatalystManagerBase.h:65
bool writeCatalystMeshOneFile
Definition CatalystManagerBase.h:63
std::string catalystMeshFilePerProcPrefix
Definition CatalystManagerBase.h:66
bool enableLogging
Definition CatalystManagerBase.h:61
std::string catalystMeshOneFilePrefix
Definition CatalystManagerBase.h:64
std::vector< std::string > catalystData
Definition CatalystManagerBase.h:69
std::string resultsOutputFilename
Definition CatalystManagerBase.h:67
std::string catalystPythonFilename
Definition CatalystManagerBase.h:56
int debugLevel
Definition CatalystManagerBase.h:62
std::string catalystInputDeckName
Definition CatalystManagerBase.h:59
std::string catalystInputName
Definition CatalystManagerBase.h:70
Definition CatalystManagerBase.h:32