Reference documentation for deal.II version 9.2.0
|
#include <deal.II/meshworker/output.h>
Public Member Functions | |
GnuplotPatch () | |
void | initialize (const unsigned int n_points, const unsigned int n_vectors) |
void | initialize_stream (std::ostream &stream) |
template<int dim> | |
void | initialize_info (DoFInfo< dim > &info, bool face) |
template<int dim> | |
void | assemble (const DoFInfo< dim > &info) |
template<int dim> | |
void | assemble (const DoFInfo< dim > &info1, const DoFInfo< dim > &info2) |
Private Member Functions | |
template<typename T > | |
void | write (const T &t) const |
void | write_endl () const |
Private Attributes | |
unsigned int | n_vectors |
unsigned int | n_points |
std::ostream * | os |
A class that, instead of assembling into a matrix or vector, outputs the results on a cell to a gnuplot patch.
This assembler expects that LocalResults contains quadrature values set with LocalResults::quadrature_value(). When it is initialized with the number of quadrature points in a single (!) space direction and the number of data fields to be displayed, it initializes LocalResults automatically. The number of data fields in local results will be increased by dim in order to accommodate for the coordinates of the data points.
While data slots for the space coordinates are allocated automatically, these coordinates are not entered. It is up to the user to enter the coordinates in the first dim data entries at every point. This adds the flexibility to output transformed coordinates or even something completely different.
|
inline |
|
inline |
Initialize for writing n data vectors. The number of points is the number of quadrature points in a single direction in a tensor product formula. It must match the number in the actual Quadrature used to create the patches. The total number of data vectors produced is n+dim
and the first dim should be the space coordinates of the points. Nevertheless, it is up to the user to set these values to whatever is desired.
|
inline |
|
inline |
|
inlineprivate |
Write the object T either to the stream os, if initialize_stream() has been called, or to deallog
if no pointer has been set.
|
inlineprivate |
|
private |
|
private |
|
private |
Stream to which output is to be written. Set by initialize_stream().