12 #include "libmesh/vtk_io.h" 13 #include "libmesh/equation_systems.h" 24 params.
set<
unsigned int>(
"padding") = 3;
27 params.
addParam<
bool>(
"binary",
false,
"Set VTK files to output in binary format");
36 #ifndef LIBMESH_HAVE_VTK 37 mooseError(
"VTK output was requested, but libMesh was not configured with VTK. To fix this, you " 38 "must reconfigure libMesh to use VTK.");
45 #ifdef LIBMESH_HAVE_VTK 68 const std::string ext =
".pvtu";
Based class for providing re-positioning and oversampling support to output objects.
std::string _file_base
The base filename from the input paramaters.
static InputParameters validParams()
bool _binary
Flag for using binary compression.
unsigned int _padding
Number of digits to pad the extensions.
virtual std::string filename() override
Return the file name with the *.vtk extension.
EquationSystems * _es_ptr
Reference the the libMesh::EquationSystems object that contains the data.
registerMooseObjectAliased("MooseApp", VTKOutput, "VTK")
virtual void output() override
Perform the output of VTKOutput.
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
unsigned int & _file_num
A file number counter, initialized to 0 (this must be controlled by the child class, see Exodus)
VTKOutput(const InputParameters ¶meters)
Class constructor.
static InputParameters validParams()