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 works only for elements with support points. The first dim data vectors will be the coordinates, the following are the data.
Definition at line 39 of file output.h.
| MeshWorker::Assembler::GnuplotPatch::GnuplotPatch | ( | ) | [inline] |
| void MeshWorker::Assembler::GnuplotPatch::initialize | ( | const unsigned int | n_points, |
| const unsigned int | n_vectors | ||
| ) | [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 will be the space coordinates of the points.
| void MeshWorker::Assembler::GnuplotPatch::initialize_stream | ( | std::ostream & | stream ) | [inline] |
| void MeshWorker::Assembler::GnuplotPatch::assemble | ( | const DoFInfo< dim > & | info ) | [inline] |
Assemble the local values into the global vectors.
Definition at line 203 of file output.h.
References AssertDimension, MeshWorker::DoFInfo< dim, spacedim, number >::face_number, numbers::invalid_unsigned_int, n_points, MeshWorker::LocalResults< number >::n_quadrature_points(), MeshWorker::LocalResults< number >::n_quadrature_values(), n_vectors, MeshWorker::LocalResults< number >::quadrature_value(), write(), and write_endl().
Referenced by assemble().
| void MeshWorker::Assembler::GnuplotPatch::assemble | ( | const DoFInfo< dim > & | info1, |
| const DoFInfo< dim > & | info2 | ||
| ) | [inline] |
Assemble both local values into the global vectors.
Definition at line 238 of file output.h.
References assemble().
| void MeshWorker::Assembler::GnuplotPatch::write | ( | const T & | t ) | const [inline, private] |
| void MeshWorker::Assembler::GnuplotPatch::write_endl | ( | ) | const [inline, private] |
unsigned int MeshWorker::Assembler::GnuplotPatch::n_vectors [private] |
The number of output components in each point.
Definition at line 131 of file output.h.
Referenced by assemble(), initialize(), and initialize_info().
unsigned int MeshWorker::Assembler::GnuplotPatch::n_points [private] |
The number of points in one direction.
Definition at line 136 of file output.h.
Referenced by assemble(), initialize(), and initialize_info().
std::ostream* MeshWorker::Assembler::GnuplotPatch::os [private] |
Stream to which output is to be written. Set by initialize_stream().
Definition at line 141 of file output.h.
Referenced by initialize_stream(), write(), and write_endl().
documentation generated on Fri Feb 3 2012 06:04:15 by
doxygen
1.7.2