www.mooseframework.org
DOFMapOutput.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 DOFMAPOUTPUT_H
16 #define DOFMAPOUTPUT_H
17 
18 // MOOSE includes
19 #include "FileOutput.h"
20 
21 // Forward declarations
22 class DOFMapOutput;
23 class MooseMesh;
24 
25 template <>
27 
31 class DOFMapOutput : public FileOutput
32 {
33 public:
35 
41  virtual std::string filename() override;
42 
46  void output(const ExecFlagType & type) override;
47 
48 protected:
55  template <typename T>
56  std::string join(const T & begin, const T & end, const char * const delim);
57 
66  void writeStreamToFile(bool append = true);
67 
71  std::string demangle(const std::string & name);
72 
75 
78 
80  std::stringstream _file_output_stream;
81 
83  std::string _system_name;
84 
87 };
88 
89 #endif /* DOFMAPOUTPUT_H */
const std::string & name() const
Get the name of the object.
Definition: MooseObject.h:47
void output(const ExecFlagType &type) override
Write the DOF mapt.
Definition: DOFMapOutput.C:109
InputParameters validParams< DOFMapOutput >()
Definition: DOFMapOutput.C:33
std::stringstream _file_output_stream
Stream for storing information to be written to a file.
Definition: DOFMapOutput.h:80
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
MooseMesh & _mesh
Reference to the mesh object.
Definition: DOFMapOutput.h:86
bool _write_screen
Flag for controlling outputting console information to screen.
Definition: DOFMapOutput.h:77
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
Definition: MooseMesh.h:74
An output object for writing the DOF map of the system in a machine parsable format.
Definition: DOFMapOutput.h:31
virtual std::string filename() override
Creates the output file name Appends the user-supplied &#39;file_base&#39; input parameter with a &#39;...
Definition: DOFMapOutput.C:59
MatType type
DOFMapOutput(const InputParameters &parameters)
Definition: DOFMapOutput.C:49
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
std::string _system_name
The name of the system to extract DOF information.
Definition: DOFMapOutput.h:83
ExecFlagType
Execution flags - when is the object executed/evaluated.
Definition: MooseTypes.h:90
void writeStreamToFile(bool append=true)
Write the file stream to the file.
Definition: DOFMapOutput.C:83
An outputter with filename support.
Definition: FileOutput.h:32
std::string join(const T &begin, const T &end, const char *const delim)
A helper method for joining items with a delimeter.
Definition: DOFMapOutput.C:100
std::string demangle(const std::string &name)
Try to demangle type name.
Definition: DOFMapOutput.C:68
bool _write_file
Flag for controlling outputting console information to a file.
Definition: DOFMapOutput.h:74