Hermes2D  3.0
Hermes::Hermes2D::Func< 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< double > *func)
 Calculate this -= func for each function expations and each integration point. More...
 
void subtract (double *attribute, double *other_attribute)
 Subtract version specifying just one attribute.
 
void add (Func< double > *func)
 Calculate this += func for each function expations and each integration point. More...
 
void add (double *attribute, double *other_attribute)
 Add version specifying just one attribute.
 

Public Attributes

union Hermes::Hermes2D::Func
< double >:: { ... }  
 
union Hermes::Hermes2D::Func
< double >:: { ... }  
 
union Hermes::Hermes2D::Func
< double >:: { ... }  
 
union Hermes::Hermes2D::Func
< double >:: { ... }  
 
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).
 
double val [H2D_MAX_INTEGRATION_POINTS_COUNT]
 
double val0 [H2D_MAX_INTEGRATION_POINTS_COUNT]
 
double dx [H2D_MAX_INTEGRATION_POINTS_COUNT]
 
double val1 [H2D_MAX_INTEGRATION_POINTS_COUNT]
 
double dy [H2D_MAX_INTEGRATION_POINTS_COUNT]
 
double curl [H2D_MAX_INTEGRATION_POINTS_COUNT]
 
double laplace [H2D_MAX_INTEGRATION_POINTS_COUNT]
 
double div [H2D_MAX_INTEGRATION_POINTS_COUNT]
 

Detailed Description

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

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

Definition at line 214 of file forms.h.

Constructor & Destructor Documentation

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

Constructor.

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

Definition at line 30 of file forms.cpp.

Member Function Documentation

void Hermes::Hermes2D::Func< double >::add ( Func< 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 122 of file forms.cpp.

void Hermes::Hermes2D::Func< double >::subtract ( Func< 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 56 of file forms.cpp.


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