Hermes2D  3.0
Hermes::Hermes2D::PrecalcShapesetAssembling Class Reference

PrecalcShapeset variant for fast assembling. More...

#include <precalc.h>

+ Inheritance diagram for Hermes::Hermes2D::PrecalcShapesetAssembling:

Public Member Functions

 PrecalcShapesetAssembling (Shapeset *shapeset)
 Constructs a standard (master) precalculated shapeset class. More...
 
 PrecalcShapesetAssembling (const PrecalcShapesetAssembling &other)
 Copy constructor.
 
virtual ~PrecalcShapesetAssembling ()
 Destructor.
 
const double * get_fn_values (int component=0) const
 Returns function values. More...
 
const double * get_dx_values (int component=0) const
 Returns the x partial derivative. More...
 
const double * get_dy_values (int component=0) const
 Returns the y partial derivative. More...
 
const double * get_values (int component, unsigned short item) const
 
- Public Member Functions inherited from Hermes::Hermes2D::PrecalcShapeset
SpaceType get_space_type () const
 Returns type of space.
 
 PrecalcShapeset (Shapeset *shapeset)
 Constructs a standard (master) precalculated shapeset class. More...
 
virtual ~PrecalcShapeset ()
 Destructor.
 
virtual void set_active_shape (int index)
 
- Public Member Functions inherited from Hermes::Hermes2D::Function< double >
 Function ()
 Default constructor.
 
virtual ~Function ()
 
unsigned char get_num_components () const
 Returns the number of components of the function being represented by the class.
 
double * deep_copy_array (int component=0, int item=0) const
 Returns function values. More...
 
Quad2Dget_quad_2d () const
 Returns the current quadrature points.
 
void set_quad_order (unsigned short order, unsigned short mask=H2D_FN_DEFAULT)
 
virtual const double * get_values (int component, int item) const
 
virtual int get_fn_order () const
 Returns the polynomial degree of the function being represented by the class.
 
virtual void push_transform (int son)
 
virtual void pop_transform ()
 
virtual void set_active_element (Element *e)
 Sets the active element.
 
virtual void set_transform (uint64_t idx)
 
- Public Member Functions inherited from Hermes::Hermes2D::Transformable
Elementget_active_element () const
 
uint64_t get_transform () const
 

Additional Inherited Members

- Static Public Attributes inherited from Hermes::Hermes2D::Transformable
static const unsigned int H2D_MAX_TRN_LEVEL = 15
 If this changes, NeighborSearch::H2D_MAX_NEIGHBORS must change too.
 
- Protected Member Functions inherited from Hermes::Hermes2D::PrecalcShapeset
virtual void set_quad_2d (Quad2D *quad_2d)
 Selects the quadrature points in which the function will be evaluated. More...
 
virtual void free ()
 Frees all precalculated tables.
 
int get_active_shape () const
 Returns the index of the active shape (can be negative if the shape is constrained).
 
Shapesetget_shapeset () const
 Returns a pointer to the shapeset which is being precalculated.
 
virtual unsigned short get_edge_fn_order (int edge)
 Returns the polynomial order of the active shape function on given edge.
 
void update_max_index ()
 
- Protected Member Functions inherited from Hermes::Hermes2D::Function< double >
virtual void reset_transform ()
 Empties the stack, loads identity transform.
 
virtual void force_transform (uint64_t sub_idx, Trf *ctm)
 For internal use only.
 
virtual int get_edge_fn_order (unsigned char edge) const
 Returns the polynomial degree of the function at given edge. To be overridden in derived classes. More...
 
void invalidate_values ()
 
- Protected Member Functions inherited from Hermes::Hermes2D::Transformable
double get_transform_jacobian () const
 
Trfget_ctm () const
 
unsigned int get_depth () const
 
- Static Protected Member Functions inherited from Hermes::Hermes2D::Transformable
static void push_transforms (std::set< Transformable * > &transformables, int son)
 
static void pop_transforms (std::set< Transformable * > &transformables)
 
- Protected Attributes inherited from Hermes::Hermes2D::PrecalcShapeset
Shapesetshapeset
 
int index
 
unsigned short max_index [H2D_NUM_MODES]
 
double2 ref_points [H2D_MAX_INTEGRATION_POINTS_COUNT]
 Transformed points to the reference domain, used by precalculate.
 
- Protected Attributes inherited from Hermes::Hermes2D::Function< double >
double values [H2D_MAX_SOLUTION_COMPONENTS][H2D_NUM_FUNCTION_VALUES][H2D_MAX_INTEGRATION_POINTS_COUNT]
 The data.
 
bool values_valid
 Flag that the data are not 'dirty'.
 
int order
 Current function polynomial order.
 
unsigned char num_components
 Number of vector components.
 
Quad2Dquads [H2D_MAX_QUADRATURES]
 List of available quadratures.
 
int cur_quad
 Active quadrature (index into 'quads')
 
- Protected Attributes inherited from Hermes::Hermes2D::Transformable
Elementelement
 The active element.
 
Trfctm
 Current sub-element transformation matrix.
 
uint64_t sub_idx
 Sub-element transformation index.
 
Trf stack [21]
 Transformation matrix stack.
 
unsigned int top
 Stack top.
 
- Static Protected Attributes inherited from Hermes::Hermes2D::Function< double >
static int idx2mask [H2D_NUM_FUNCTION_VALUES][2]
 Index to mask table.
 
- Static Protected Attributes inherited from Hermes::Hermes2D::Transformable
static const uint64_t H2D_MAX_IDX = (1ULL << 3 * H2D_MAX_TRN_LEVEL) - 1
 

Detailed Description

PrecalcShapeset variant for fast assembling.

Definition at line 109 of file precalc.h.

Constructor & Destructor Documentation

Hermes::Hermes2D::PrecalcShapesetAssembling::PrecalcShapesetAssembling ( Shapeset shapeset)

Constructs a standard (master) precalculated shapeset class.

Parameters
shapeset[in]Pointer to the shapeset to be precalculated.

Definition at line 175 of file precalc.cpp.

Member Function Documentation

const double * Hermes::Hermes2D::PrecalcShapesetAssembling::get_dx_values ( int  component = 0) const
virtual

Returns the x partial derivative.

Parameters
component[in]The component of the function (0 or 1).
Returns
The x partial derivative of the function at all points of the current integration rule.

Reimplemented from Hermes::Hermes2D::Function< double >.

Definition at line 211 of file precalc.cpp.

const double * Hermes::Hermes2D::PrecalcShapesetAssembling::get_dy_values ( int  component = 0) const
virtual

Returns the y partial derivative.

Parameters
component[in]The component of the function (0 or 1).
Returns
The y partial derivative of the function at all points of the current integration rule.

Reimplemented from Hermes::Hermes2D::Function< double >.

Definition at line 219 of file precalc.cpp.

const double * Hermes::Hermes2D::PrecalcShapesetAssembling::get_fn_values ( int  component = 0) const
virtual

Returns function values.

Parameters
component[in]The component of the function (0 or 1).
Returns
The values of the function at all points of the current integration rule.

Reimplemented from Hermes::Hermes2D::Function< double >.

Definition at line 203 of file precalc.cpp.

Referenced by Hermes::Hermes2D::CurvMapStatic::calculate_bubble_projection_matrix().


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