Public Member Functions | |
| GnuplotPatch () | |
| void | initialize (unsigned int dim, unsigned int n_vectors, unsigned int n_points) |
| void | initialize_stream (std::ostream &stream) |
| template<int dim> | |
| void | initialize_info (DoFInfo< dim > &info, bool interior_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 | patch_dimension |
| 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.
| MeshWorker::Assembler::GnuplotPatch::GnuplotPatch | ( | ) | [inline] |
Constructor.
| void MeshWorker::Assembler::GnuplotPatch::initialize | ( | unsigned int | dim, |
| unsigned int | n_vectors, | ||
| unsigned int | n_points | ||
| ) | [inline] |
Initialize for writing n data vectors. The total number of data vectors produced is n+dim and the first dim will be the space coordinates of the points.
References n_points, n_vectors, and patch_dimension.
| void MeshWorker::Assembler::GnuplotPatch::initialize_stream | ( | std::ostream & | stream | ) | [inline] |
| void MeshWorker::Assembler::GnuplotPatch::initialize_info | ( | DoFInfo< dim > & | info, |
| bool | interior_face | ||
| ) | [inline] |
Initialize the local data in the DoFInfo object used later for assembling.
The second parameter is used to distinguish between the data used on cells and boundary faces on the one hand and interior faces on the other. Interior faces may require additional data being initialized.
References AssertDimension, MeshWorker::LocalResults< number >::initialize_quadrature(), n_points, n_vectors, and patch_dimension.
| void MeshWorker::Assembler::GnuplotPatch::assemble | ( | const DoFInfo< dim > & | info | ) | [inline] |
Assemble the local values into the global vectors.
References MeshWorker::LocalResults< number >::n_quadrature_points(), MeshWorker::LocalResults< number >::n_quadrature_values(), MeshWorker::LocalResults< number >::quadrature_value(), write(), and write_endl().
| void MeshWorker::Assembler::GnuplotPatch::assemble | ( | const DoFInfo< dim > & | info1, |
| const DoFInfo< dim > & | info2 | ||
| ) | [inline] |
Assemble both local values into the global vectors.
References Assert, and StandardExceptions::ExcNotImplemented().
| void MeshWorker::Assembler::GnuplotPatch::write | ( | const T & | t | ) | const [inline, private] |
Write the object T either to the stream os, if the pointer is nonzero, or to deallog if no pointer has been set.
Referenced by assemble().
| void MeshWorker::Assembler::GnuplotPatch::write_endl | ( | ) | const [inline, private] |
Referenced by assemble().
unsigned int MeshWorker::Assembler::GnuplotPatch::patch_dimension [private] |
Referenced by initialize(), and initialize_info().
unsigned int MeshWorker::Assembler::GnuplotPatch::n_vectors [private] |
Referenced by initialize(), and initialize_info().
unsigned int MeshWorker::Assembler::GnuplotPatch::n_points [private] |
Referenced by initialize(), and initialize_info().
std::ostream* MeshWorker::Assembler::GnuplotPatch::os [private] |
Referenced by initialize_stream(), write(), and write_endl().
documentation generated on Fri Aug 12 2011 15:01:09 by
doxygen
1.7.4