16#include "libmesh/tecplot_io.h"
27 params.
addParam<
bool>(
"binary",
false,
"Set Tecplot files to output in binary format");
34 "If true, append to an existing ASCII file rather than creating a new file each time");
49 _binary(getParam<bool>(
"binary")),
50 _ascii_append(getParam<bool>(
"ascii_append")),
51 _first_time(declareRestartableData<bool>(
"first_time", true))
53#ifndef LIBMESH_HAVE_TECPLOT_API
57 "Teclplot binary output requested but not available, outputting ASCII format instead.");
71 out.ascii_append() =
true;
94 output <<
"_" << std::setw(
_padding) << std::setprecision(0) << std::setfill(
'0') << std::right
100 return output.str() +
".plt";
102 return output.str() +
".dat";
void mooseWarning(Args &&... args)
Emit a warning message with the given stringified, concatenated args.
registerMooseObject("MooseApp", Tecplot)
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,...
Real getGlobalTimeOffset() const
Each App has it's own local time.
MooseApp & _app
The MOOSE application this is associated with.
libMesh::EquationSystems * _es_ptr
Reference the the libMesh::EquationSystems object that contains the data.
MooseMesh * _mesh_ptr
A convenience pointer to the current mesh (reference or displaced depending on "use_displaced")
virtual Real getOutputTime()
Get the time that will be used for stream/file outputting.
Based class for providing re-positioning and oversampling support to output objects.
static InputParameters validParams()
Class for output data to the TecplotII format.
virtual std::string filename() override
Returns the current filename, this method handles adding the timestep suffix.
virtual void output() override
Overload the Output::output method, this is required for Tecplot output due to the method utilized fo...
Tecplot(const InputParameters ¶meters)
Class constructor.
static InputParameters validParams()
bool _ascii_append
Flag for turning on appending to ASCII files.
bool _binary
Flag for binary output.
bool & _first_time
True if this is the first time the file has been written to, gets set to false after the first call t...