Hermes2D  3.0
Hermes::Hermes2D::PostProcessing::IntegralCalculator< Scalar > Class Template Referenceabstract

#include <postprocessing.h>

+ Inheritance diagram for Hermes::Hermes2D::PostProcessing::IntegralCalculator< Scalar >:

Public Member Functions

 IntegralCalculator (MeshFunctionSharedPtr< Scalar > source_function, int number_of_integrals)
 
 IntegralCalculator (std::vector< MeshFunctionSharedPtr< Scalar > > source_functions, int number_of_integrals)
 
virtual Scalar * calculate (std::vector< std::string > markers)=0
 
virtual Scalar * calculate (std::string marker)
 
virtual void order (Func< Hermes::Ord > **fns, Hermes::Ord *result)=0
 The integration order calculation.
 

Protected Member Functions

void add_results (Scalar *results_local, Scalar *results)
 
template<>
void add_results (double *results_local, double *results)
 
template<>
void add_results (std::complex< double > *results_local, std::complex< double > *results)
 

Protected Attributes

std::vector
< MeshFunctionSharedPtr
< Scalar > > 
source_functions
 
int number_of_integrals
 
- Protected Attributes inherited from Hermes::Hermes2D::Mixins::Parallel
unsigned char num_threads_used
 
std::string exceptionMessageCaughtInParallelBlock
 

Detailed Description

template<typename Scalar>
class Hermes::Hermes2D::PostProcessing::IntegralCalculator< Scalar >

Integral calculator Abstract base class

Definition at line 118 of file postprocessing.h.

Constructor & Destructor Documentation

template<typename Scalar >
Hermes::Hermes2D::PostProcessing::IntegralCalculator< Scalar >::IntegralCalculator ( MeshFunctionSharedPtr< Scalar >  source_function,
int  number_of_integrals 
)
Parameters
[in]source_functionsThe functions forming the integral expression.
[in]number_of_integralsNumber of results (expressions) evaluated. The method integral will get the array result allocated according to this parameter.

Definition at line 580 of file postprocessing.cpp.

Member Function Documentation

template<typename Scalar >
virtual Scalar* Hermes::Hermes2D::PostProcessing::IntegralCalculator< Scalar >::calculate ( std::vector< std::string >  markers)
pure virtual

Main method returning the value(s).

Returns
The values (more values at once for saving time with initialization etc.)

Implemented in Hermes::Hermes2D::PostProcessing::SurfaceIntegralCalculator< Scalar >, and Hermes::Hermes2D::PostProcessing::VolumetricIntegralCalculator< Scalar >.

template<typename Scalar >
Scalar * Hermes::Hermes2D::PostProcessing::IntegralCalculator< Scalar >::calculate ( std::string  marker)
virtual

Main method returning the value(s). One marker overload.

Definition at line 591 of file postprocessing.cpp.


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