h o m e d o c u m e n t a t i o n c l a s s h i e r a r c h y

Interface1D.h File Reference


Detailed Description

Interface1D and related tools definitions

#include <string>
#include <iostream>
#include <float.h>
#include "../system/Id.h"
#include "../system/Precision.h"
#include "../winged_edge/Nature.h"
#include "Functions0D.h"

Go to the source code of this file.


Classes

class  Interface1D

Enumerations

enum  IntegrationType {
  MEAN, MIN, MAX, FIRST,
  LAST
}

Functions

template<class T>
integrate (UnaryFunction0D< T > &fun, Interface0DIterator it, Interface0DIterator it_end, IntegrationType integration_type=MEAN)

Enumeration Type Documentation

enum IntegrationType
 

The different integration methods that can be invoked to integrate into a single value the set of values obtained from each 0D element of a 1D element.

Enumeration values:
MEAN  The value computed for the 1D element is the mean of the values obtained for the 0D elements.
MIN  The value computed for the 1D element is the minimum of the values obtained for the 0D elements.
MAX  The value computed for the 1D element is the maximum of the values obtained for the 0D elements.
FIRST  The value computed for the 1D element is the first of the values obtained for the 0D elements.
LAST  The value computed for the 1D element is the last of the values obtained for the 0D elements.

Function Documentation

T integrate UnaryFunction0D< T > &  fun,
Interface0DIterator  it,
Interface0DIterator  it_end,
IntegrationType  integration_type = MEAN
 

Returns a single value from a set of values evaluated at each 0D element of this 1D element.

Parameters:
fun The UnaryFunction0D used to compute a value at each Interface0D.
it The Interface0DIterator used to iterate over the 0D elements of this 1D element. The integration will occur over the 0D elements starting from the one pointed by it.
it_end The Interface0DIterator pointing the end of the 0D elements of the 1D element.
integration_type The integration method used to compute a single value from a set of values.
Returns:
the single value obtained for the 1D element.