https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ConsoleUtils.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 "Moose.h"
14
15// Forward declarations
16class MooseApp;
17class FEProblemBase;
18class MooseObject;
19
20// libMesh forward declarations
21namespace libMesh
22{
23class System;
24}
25
26namespace ConsoleUtils
27{
28
30static const unsigned int console_field_width = 27;
31
33static const unsigned int console_line_length = 100;
34
38std::string indent(unsigned int spaces);
39
45std::string outputFrameworkInformation(const MooseApp & app);
46
50std::string outputMeshInformation(FEProblemBase & problem, bool verbose = true);
51
56
61 const unsigned int solver_sys_num);
62
66std::string outputRelationshipManagerInformation(const MooseApp & app);
67
71std::string outputExecutionInformation(const MooseApp & app, FEProblemBase & problem);
72
76std::string outputOutputInformation(MooseApp & app);
77
84
89
93std::string outputLegacyInformation(MooseApp & app);
94
98std::string outputDataFilePaths();
99
103std::string outputDataFileParams(MooseApp & app);
104
108void insertNewline(std::stringstream & oss, std::streampos & begin, std::streampos & curr);
109
116std::string formatString(std::string message, const std::string & prefix);
117
123std::string mooseObjectVectorToString(const std::vector<MooseObject *> & objs,
124 const std::string & sep = " ");
125} // ConsoleUtils namespace
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
Base class for MOOSE-based applications.
Definition MooseApp.h:110
Every object that can be built by the factory should be derived from this class.
Definition MooseObject.h:31
std::string outputOutputInformation(MooseApp &app)
Output the output information.
std::string outputPreSMOResidualInformation()
Output the information about pre-SMO residual evaluation.
std::string outputLegacyInformation(MooseApp &app)
Output the legacy flag information.
std::string outputMeshInformation(FEProblemBase &problem, bool verbose=true)
Output the mesh information.
std::string formatString(std::string message, const std::string &prefix)
Add new lines and prefixes to a string for pretty display in output NOTE: This makes a copy of the st...
static const unsigned int console_line_length
Line length for printing simulation information.
std::string mooseObjectVectorToString(const std::vector< MooseObject * > &objs, const std::string &sep=" ")
Routine to output the name of MooseObjects in a string.
std::string outputSolverSystemInformation(FEProblemBase &problem, const unsigned int solver_sys_num)
Output a solver system information.
std::string outputAuxiliarySystemInformation(FEProblemBase &problem)
Output the Auxiliary system information.
std::string outputDataFilePaths()
Output the registered data paths for searching.
std::string outputExecutionInformation(const MooseApp &app, FEProblemBase &problem)
Output execution information.
static const unsigned int console_field_width
Width used for printing simulation information.
std::string outputDataFileParams(MooseApp &app)
Output the (param path = value) pairs for each DataFileName parameter.
std::string outputRelationshipManagerInformation(const MooseApp &app)
Output action RelationshipManager information.
std::string outputSystemInformationHelper(libMesh::System &system)
Output system information.
std::string outputFrameworkInformation(const MooseApp &app)
Outputs framework information.
void insertNewline(std::stringstream &oss, std::streampos &begin, std::streampos &curr)
Helper function function for stringstream formatting.
std::string indent(unsigned int spaces)
Create empty string for indenting.
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...