Represents a function defined on a mesh. More...
#include <solution.h>
Inherits Function< scalar >.
Inherited by Filter, and Solution.
Public Member Functions | |
| MeshFunction () | |
| virtual | ~MeshFunction () |
| virtual void | set_quad_2d (Quad2D *quad_2d) |
| Selects the quadrature points in which the function will be evaluated. | |
| virtual void | set_active_element (Element *e) |
| Called by the assembling procedure and by other functions. In PrecalcShapeset it sets an internal variable that can be later retrieved by get_active_element(). In Solution it selects the element to retrieve solution values for, etc. | |
| Mesh * | get_mesh () const |
| RefMap * | get_refmap () |
| virtual scalar | get_pt_value (double x, double y, int item=H2D_FN_VAL_0)=0 |
| void | force_transform (MeshFunction *mf) |
| For internal use only. | |
| void | update_refmap () |
| void | force_transform (uint64_t sub_idx, Trf *ctm) |
| For internal use only. | |
Protected Attributes | |
| int | mode |
| Mesh * | mesh |
| RefMap * | refmap |
Represents a function defined on a mesh.
MeshFunction is a base class for all classes representing an arbitrary function superimposed on a mesh (ie., domain). These include the Solution, ExactSolution and Filter classes, which define the concrete behavior and the way the function is (pre)calculated. Any such function can later be visualized.
(This is an abstract class and cannot be instantiated.)
| MeshFunction::MeshFunction | ( | ) |
| MeshFunction::~MeshFunction | ( | ) | [virtual] |
| void MeshFunction::force_transform | ( | uint64_t | sub_idx, | |
| Trf * | ctm | |||
| ) | [inline] |
For internal use only.
Reimplemented from Function< TYPE >.
| void MeshFunction::force_transform | ( | MeshFunction * | mf | ) | [inline] |
For internal use only.
| Mesh* MeshFunction::get_mesh | ( | ) | const [inline] |
| virtual scalar MeshFunction::get_pt_value | ( | double | x, | |
| double | y, | |||
| int | item = H2D_FN_VAL_0 | |||
| ) | [pure virtual] |
Implemented in SimpleFilter, DXDYFilter, VonMisesFilter, LinearFilter, and Solution.
| RefMap* MeshFunction::get_refmap | ( | ) | [inline] |
| void MeshFunction::set_active_element | ( | Element * | e | ) | [virtual] |
Called by the assembling procedure and by other functions. In PrecalcShapeset it sets an internal variable that can be later retrieved by get_active_element(). In Solution it selects the element to retrieve solution values for, etc.
| e | [in] Element associated with the function being represented by the class. |
Reimplemented from Transformable.
Reimplemented in Filter, LinearFilter, and Solution.
| void MeshFunction::set_quad_2d | ( | Quad2D * | quad_2d | ) | [virtual] |
Selects the quadrature points in which the function will be evaluated.
It is possible to switch back and forth between different quadrature points: no precalculated values are freed. The standard quadrature is always selected by default already.
| quad_2d | [in] The quadrature points. |
Reimplemented from Function< TYPE >.
Reimplemented in Filter.
| void MeshFunction::update_refmap | ( | ) | [inline] |
Mesh* MeshFunction::mesh [protected] |
int MeshFunction::mode [protected] |
RefMap* MeshFunction::refmap [protected] |
1.6.3