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";
Based class for providing re-positioning and oversampling support to output objects.
registerMooseObject("MooseApp", Tecplot)
std::string _file_base
The base filename from the input paramaters.
virtual void output() override
Overload the Output::output method, this is required for Tecplot output due to the method utilized fo...
void mooseWarning(Args &&... args) const
Emits a warning prefixed with object name and type.
unsigned int _padding
Number of digits to pad the extensions.
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...
EquationSystems * _es_ptr
Reference the the libMesh::EquationSystems object that contains the data.
bool _ascii_append
Flag for turning on appending to ASCII files.
MooseApp & _app
The MOOSE application this is associated with.
Class for output data to the TecplotII format.
MooseMesh * _mesh_ptr
A convenience pointer to the current mesh (reference or displaced depending on "use_displaced") ...
static InputParameters validParams()
unsigned int & _file_num
A file number counter, initialized to 0 (this must be controlled by the child class, see Exodus)
Real getGlobalTimeOffset() const
Each App has it's own local time.
Tecplot(const InputParameters ¶meters)
Class constructor.
static InputParameters validParams()
virtual Real getOutputTime()
Get the time that will be used for stream/file outputting.
virtual std::string filename() override
Returns the current filename, this method handles adding the timestep suffix.
bool _binary
Flag for binary output.