PrecalcShapeset Class Reference
Caches precalculated shape function values.
More...
#include <precalc.h>
Inherits Function< double >.
List of all members.
Detailed Description
Caches precalculated shape function values.
PrecalcShapeset is a cache of precalculated shape function values.
Constructor & Destructor Documentation
| PrecalcShapeset::PrecalcShapeset |
( |
Shapeset * |
shapeset |
) |
|
Constructs a standard (master) precalculated shapeset class.
- Parameters:
-
| shapeset | [in] Pointer to the shapeset to be precalculated. |
Constructs a slave precalculated shapeset class.
The slave instance does not hold any precalculated tables. Instead, it refers to those contained in the master instance. However, the slave can have different shape function active, different transform selected, etc. Slave pss's are used for test functions when calling bilinear forms, inside Solution so as not to disrupt user's pss, etc.
- Parameters:
-
| master_pss | [in] Master precalculated shapeset pointer. |
| PrecalcShapeset::~PrecalcShapeset |
( |
|
) |
[virtual] |
Member Function Documentation
| void PrecalcShapeset::dump_info |
( |
int |
quad, |
|
|
const char * |
filename | |
|
) |
| | |
| void PrecalcShapeset::force_transform |
( |
uint64_t |
sub_idx, |
|
|
Trf * |
ctm | |
|
) |
| | [inline, protected] |
| void PrecalcShapeset::free |
( |
|
) |
[virtual] |
| int PrecalcShapeset::get_active_shape |
( |
|
) |
const [inline] |
Returns the index of the active shape (can be negative if the shape is constrained).
| Shapeset* PrecalcShapeset::get_shapeset |
( |
|
) |
const [inline] |
Returns a pointer to the shapeset which is being precalculated.
| int PrecalcShapeset::get_type |
( |
|
) |
const [inline] |
Returns type of space (0 - H1, 1 - Hcurl, 2 - Hdiv).
| bool PrecalcShapeset::is_slave |
( |
|
) |
const [inline, protected] |
| void PrecalcShapeset::precalculate |
( |
int |
order, |
|
|
int |
mask | |
|
) |
| | [protected, virtual] |
precalculates the current function at the current integration points.
Implements Function< TYPE >.
| void PrecalcShapeset::set_active_element |
( |
Element * |
e |
) |
[virtual] |
Ensures subsequent calls to get_active_element() will be returning 'e'. Switches the class to the appropriate mode (triangle, quad).
Reimplemented from Transformable.
| void PrecalcShapeset::set_active_shape |
( |
int |
index |
) |
|
Activates a shape function given by its index. The values of the shape function can then be obtained by setting the required integration rule order by calling set_quad_order() and after that calling get_values(), get_dx_values(), etc.
- Parameters:
-
| void PrecalcShapeset::set_master_transform |
( |
|
) |
[inline] |
| void PrecalcShapeset::set_mode |
( |
int |
mode |
) |
|
| void PrecalcShapeset::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.
- Parameters:
-
| quad_2d | [in] The quadrature points. |
Reimplemented from Function< TYPE >.
| void PrecalcShapeset::update_max_index |
( |
|
) |
[protected] |
Friends And Related Function Documentation
Member Data Documentation
primary Judy array of shapes
The documentation for this class was generated from the following files: