Hermes2D  3.0
Hermes::Hermes2D::Func< std::complex< double > > Class Template Reference

Calculated function values (from the class Function) on an element for assembling. More...

#include <forms.h>

Public Member Functions

 Func ()
 Constructor.
 
 Func (int np, int nc)
 Constructor. More...
 
void subtract (Func< std::complex< double > > *func)
 Calculate this -= func for each function expations and each integration point. More...
 
void subtract (std::complex< double > *attribute, std::complex< double > *other_attribute)
 Subtract version specifying just one attribute.
 
void add (Func< std::complex< double > > *func)
 Calculate this += func for each function expations and each integration point. More...
 
void add (std::complex< double > *attribute, std::complex< double > *other_attribute)
 Add version specifying just one attribute.
 

Public Attributes

std::complex< double > val [H2D_MAX_INTEGRATION_POINTS_COUNT]
 
std::complex< double > val0 [H2D_MAX_INTEGRATION_POINTS_COUNT]
 
std::complex< double > dx [H2D_MAX_INTEGRATION_POINTS_COUNT]
 
std::complex< double > val1 [H2D_MAX_INTEGRATION_POINTS_COUNT]
 
std::complex< double > dy [H2D_MAX_INTEGRATION_POINTS_COUNT]
 
std::complex< double > curl [H2D_MAX_INTEGRATION_POINTS_COUNT]
 
std::complex< double > laplace [H2D_MAX_INTEGRATION_POINTS_COUNT]
 
std::complex< double > div [H2D_MAX_INTEGRATION_POINTS_COUNT]
 
int np
 Number of integration points used by this intance.
 
int nc
 Number of components. Currently accepted values are 1 (H1, L2 space) and 2 (Hcurl, Hdiv space).
 

Detailed Description

template<>
class Hermes::Hermes2D::Func< std::complex< double > >

Calculated function values (from the class Function) on an element for assembling.

Definition at line 265 of file forms.h.

Constructor & Destructor Documentation

Hermes::Hermes2D::Func< std::complex< double > >::Func ( int  np,
int  nc 
)

Constructor.

Parameters
[in]num_gipA number of integration points.
[in]num_compsA number of components.

Definition at line 38 of file forms.cpp.

Member Function Documentation

void Hermes::Hermes2D::Func< std::complex< double > >::add ( Func< std::complex< double > > *  func)

Calculate this += func for each function expations and each integration point.

Parameters
[in]funcA function which is added to *this. A number of integratioN points and a number of component has to match.

Definition at line 149 of file forms.cpp.

void Hermes::Hermes2D::Func< std::complex< double > >::subtract ( Func< std::complex< double > > *  func)

Calculate this -= func for each function expations and each integration point.

Parameters
[in]funcA function which is added to *this. A number of integratioN points and a number of component has to match.

Definition at line 80 of file forms.cpp.


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