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");
34 :
SampledOutput(parameters), _binary(getParam<bool>(
"binary"))
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";
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
registerMooseObjectAliased("MooseApp", VTKOutput, "VTK")
unsigned int _padding
Number of digits to pad the extensions.
std::string _file_base
The base filename from the input paramaters.
unsigned int & _file_num
A file number counter, initialized to 0 (this must be controlled by the child class,...
libMesh::EquationSystems * _es_ptr
Reference the the libMesh::EquationSystems object that contains the data.
Based class for providing re-positioning and oversampling support to output objects.
static InputParameters validParams()
VTKOutput(const InputParameters ¶meters)
Class constructor.
static InputParameters validParams()
virtual void output() override
Perform the output of VTKOutput.
virtual std::string filename() override
Return the file name with the *.vtk extension.
bool _binary
Flag for using binary compression.
const MeshBase & get_mesh() const
virtual void write_equation_systems(const std::string &, const EquationSystems &, const std::set< std::string > *system_names=nullptr)
void set_compression(bool b)