Hermes2D
2.0
|
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>
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 > |
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:
Definition at line 47 of file weakform.h.
void Hermes::Hermes2D::Form< Scalar >::set_area | ( | std::string | area | ) |
get-set methods areas
Definition at line 182 of file weakform.cpp.
Referenced by Hermes::Hermes2D::MatrixFormDG< Scalar >::MatrixFormDG(), and Hermes::Hermes2D::VectorFormDG< Scalar >::VectorFormDG().
|
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.
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.
|
protected |
External solutions for this form will start with u_ext[u_ext_offset] where u_ext[] are external solutions coming to the assembling procedure via the external coefficient vector.
Definition at line 223 of file weakform.h.
Referenced by Hermes::Hermes2D::DiscreteProblem< Scalar >::assemble_DG_one_neighbor(), Hermes::Hermes2D::DiscreteProblem< Scalar >::assemble_matrix_form(), Hermes::Hermes2D::DiscreteProblem< Scalar >::assemble_vector_form(), Hermes::Hermes2D::DiscreteProblem< Scalar >::calc_order_matrix_form(), Hermes::Hermes2D::DiscreteProblem< Scalar >::calc_order_vector_form(), Hermes::Hermes2D::DiscreteProblem< Scalar >::deinit_ext_orders(), and Hermes::Hermes2D::DiscreteProblem< Scalar >::init_ext_orders().