Hermes2D  2.0
Hermes::Hermes2D::Form< Scalar > Class Template Reference

Abstract, base class for any form - i.e. integral in the weak formulation of (a system of) PDE
By default, the form is initialized with the following natural attributes:
More...

#include <weakform.h>

+ Inheritance diagram for Hermes::Hermes2D::Form< Scalar >:

Public Member Functions

 Form ()
 Constructor with coordinates.
 
void set_area (std::string area)
 
void set_areas (Hermes::vector< std::string > areas)
 
Hermes::vector< std::string > getAreas () const
 
void set_ext (MeshFunction< Scalar > *ext)
 
void set_ext (Hermes::vector< MeshFunction< Scalar > * > ext)
 
Hermes::vector< MeshFunction
< Scalar > * > 
get_ext () const
 

Protected Member Functions

void set_weakform (WeakForm< Scalar > *wf)
 Set pointer to a WeakForm.
 
void set_current_stage_time (double time)
 
double get_current_stage_time () const
 
void setScalingFactor (double scalingFactor)
 
void set_uExtOffset (int u_ext_offset)
 

Protected Attributes

Hermes::vector< std::string > areas
 Markers of the areas where this form will be assembled.
 
int u_ext_offset
 
Hermes::vector< MeshFunction
< Scalar > * > 
ext
 External solutions.
 
double scaling_factor
 Form will be always multiplied (scaled) with this number.
 
WeakForm< Scalar > * wf
 
double stage_time
 

Friends

class WeakForm< Scalar >
 
class RungeKutta< Scalar >
 
class DiscreteProblem< Scalar >
 
class DiscreteProblemLinear< Scalar >
 

Detailed Description

template<typename Scalar>
class Hermes::Hermes2D::Form< Scalar >

Abstract, base class for any form - i.e. integral in the weak formulation of (a system of) PDE
By default, the form is initialized with the following natural attributes:

  • no external functions.
  • assembled over any (parameter 'HERMES_ANY') element/boundary marker.
    Internal.

Definition at line 47 of file weakform.h.

Member Function Documentation

template<typename Scalar >
void Hermes::Hermes2D::Form< Scalar >::set_area ( std::string  area)
template<typename Scalar >
void Hermes::Hermes2D::Form< Scalar >::set_current_stage_time ( double  time)
protected

For time-dependent right-hand side functions. E.g. for Runge-Kutta methods. Otherwise the one time for the whole WeakForm can be used.

Definition at line 170 of file weakform.cpp.

template<typename Scalar >
void Hermes::Hermes2D::Form< Scalar >::set_ext ( MeshFunction< Scalar > *  ext)

external functions - dual functionality with the overall WeakForm. For Agros, this approach is better in some way, for e.g. Euler equations, the other one (for the whole WeakForm) is faster.

Definition at line 212 of file weakform.cpp.

Member Data Documentation


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