Public Member Functions | Private Member Functions | Private Attributes

MeshWorker::Assembler::GnuplotPatch Class Reference

List of all members.

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

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.

Definition at line 39 of file output.h.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 168 of file output.h.


Member Function Documentation

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.

Definition at line 175 of file output.h.

References n_points, and n_vectors.

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.

Definition at line 184 of file output.h.

References os.

template<int dim>
void MeshWorker::Assembler::GnuplotPatch::initialize_info ( DoFInfo< dim > &  info,
bool  face 
) [inline]

Initialize the local data in the DoFInfo object used later for assembling.

The info object refers to a cell if !face, or else to an interior or boundary face.

Definition at line 192 of file output.h.

References MeshWorker::LocalResults< number >::initialize_quadrature(), n_points, and n_vectors.

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.

Definition at line 238 of file output.h.

References assemble().

template<typename T >
void MeshWorker::Assembler::GnuplotPatch::write ( const T &  t ) const [inline, private]

Write the object T either to the stream os, if initialize_stream has been called, or to deallog if no pointer has been set.

Definition at line 148 of file output.h.

References deallog, and os.

Referenced by assemble().

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

Write an end-of-line marker either to the stream os, if initialize_stream has been called, or to deallog if no pointer has been set.

Definition at line 158 of file output.h.

References deallog, and os.

Referenced by assemble().


Member Data Documentation

The number of output components in each point.

Definition at line 131 of file output.h.

Referenced by assemble(), initialize(), and initialize_info().

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().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

deal.II documentation generated on Fri Feb 3 2012 06:04:15 by doxygen 1.7.2