www.mooseframework.org
Nemesis.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #ifndef NEMESIS_H
16 #define NEMESIS_H
17 
18 // MOOSE includes
19 #include "AdvancedOutput.h"
20 
21 // Forward declarations
22 class Nemesis;
23 
24 // libMesh forward declarations
25 namespace libMesh
26 {
27 class Nemesis_IO;
28 }
29 
30 template <>
32 
36 class Nemesis : public AdvancedOutput
37 {
38 public:
42  Nemesis(const InputParameters & parameters);
43 
47  virtual ~Nemesis();
48 
52  virtual void initialSetup() override;
53 
57  virtual void meshChanged() override;
58 
59 protected:
64  virtual void output(const ExecFlagType & type) override;
65 
69  virtual void outputPostprocessors() override;
70 
74  virtual void outputScalarVariables() override;
75 
81  virtual std::string filename() override;
82 
84  std::unique_ptr<Nemesis_IO> _nemesis_io_ptr;
85 
87  std::vector<Real> _global_values;
88 
90  std::vector<std::string> _global_names;
91 
93  unsigned int _file_num;
94 
95 private:
97  unsigned int _nemesis_num;
98 
101 };
102 
103 #endif /* NEMESIS_H */
std::vector< Real > _global_values
Storage for scalar values (postprocessors and scalar AuxVariables)
Definition: Nemesis.h:87
std::vector< std::string > _global_names
Storage for names of the above scalar values.
Definition: Nemesis.h:90
unsigned int _nemesis_num
Count of outputs per exodus file.
Definition: Nemesis.h:97
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...
InputParameters validParams< Nemesis >()
Definition: Nemesis.C:29
Based class for output objects.
MatType type
bool _nemesis_initialized
Flag if the output has been initialized.
Definition: Nemesis.h:100
ExecFlagType
Execution flags - when is the object executed/evaluated.
Definition: MooseTypes.h:90
unsigned int _file_num
Current output filename; utilized by filename() to create the proper suffix.
Definition: Nemesis.h:93
std::unique_ptr< Nemesis_IO > _nemesis_io_ptr
Pointer to the libMesh::NemesisII_IO object that performs the actual data output. ...
Definition: Nemesis.h:84
Class for output data to the Nemesis format.
Definition: Nemesis.h:36