https://mooseframework.inl.gov
Loading...
Searching...
No Matches
DOFMapOutput.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10#pragma once
11
12// MOOSE includes
13#include "FileOutput.h"
14
15class MooseMesh;
16
21{
22public:
24
26
32 virtual std::string filename() override;
33
37 void output() override;
38
39protected:
46 template <typename T>
47 std::string join(const T & begin, const T & end, const char * const delim);
48
57 void writeStreamToFile(bool append = true);
58
62 std::string demangle(const std::string & name);
63
66
69
71 std::stringstream _file_output_stream;
72
74 std::string _system_name;
75
78
80 const unsigned int _nl_sys_num;
81};
An output object for writing the DOF map of the system in a machine parsable format.
bool _write_file
Flag for controlling outputting console information to a file.
std::string join(const T &begin, const T &end, const char *const delim)
A helper method for joining items with a delimeter.
std::stringstream _file_output_stream
Stream for storing information to be written to a file.
static InputParameters validParams()
virtual std::string filename() override
Creates the output file name Appends the user-supplied 'file_base' input parameter with a '....
const unsigned int _nl_sys_num
The nonlinear system number we should output degree of freedom information for.
void output() override
Write the DOF mapt.
void writeStreamToFile(bool append=true)
Write the file stream to the file.
std::string demangle(const std::string &name)
Try to demangle type name.
MooseMesh & _mesh
Reference to the mesh object.
bool _write_screen
Flag for controlling outputting console information to screen.
std::string _system_name
The name of the system to extract DOF information.
An outputter with filename support.
Definition FileOutput.h:21
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
const std::string & name() const
Get the name of the class.
Definition MooseBase.h:103
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
Definition MooseMesh.h:95