Public Member Functions | Private Member Functions | Private Attributes
MeshWorker::Assembler::GnuplotPatch Class Reference

List of all members.

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

Detailed Description

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.

Note:
In the current implementation, only cell data can be written.

Constructor & Destructor Documentation

MeshWorker::Assembler::GnuplotPatch::GnuplotPatch ( ) [inline]

Constructor.


Member Function Documentation

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]

Set the stream os to which data is written. If no stream is selected with this function, data goes to deallog.

References os.

template<int dim>
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.

template<int dim>
void MeshWorker::Assembler::GnuplotPatch::assemble ( const DoFInfo< dim > &  info) [inline]
template<int dim>
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().

template<typename T >
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.

References deallog, and os.

Referenced by assemble().

void MeshWorker::Assembler::GnuplotPatch::write_endl ( ) const [inline, private]

References deallog, and os.

Referenced by assemble().


Member Data Documentation

Referenced by initialize(), and initialize_info().

Referenced by initialize(), and initialize_info().

Referenced by initialize(), and initialize_info().

std::ostream* MeshWorker::Assembler::GnuplotPatch::os [private]

The documentation for this class was generated from the following file:

deal.II documentation generated on Fri Aug 12 2011 15:01:09 by doxygen 1.7.4