Flow123d  DF_patch_fe_data_tables-22c8b57
Public Member Functions | Private Member Functions | Private Attributes | List of all members
GenericAssembly< DimAssembly > Class Template Reference

Generic class of assemblation. More...

#include <generic_assembly.hh>

Inheritance diagram for GenericAssembly< DimAssembly >:
Inheritance graph
[legend]
Collaboration diagram for GenericAssembly< DimAssembly >:
Collaboration graph
[legend]

Public Member Functions

 GenericAssembly (typename DimAssembly< 1 >::EqFields *eq_fields, typename DimAssembly< 1 >::EqData *eq_data)
 Constructor. More...
 
 GenericAssembly (typename DimAssembly< 1 >::EqFields *eq_fields, typename DimAssembly< 1 >::EqData *eq_data, DOFHandlerMultiDim *dh)
 Constructor. More...
 
MixedPtr< DimAssembly, 1 > multidim_assembly () const
 Getter to set of assembly objects. More...
 
void set_min_edge_sides (unsigned int val)
 
void assemble (std::shared_ptr< DOFHandlerMultiDim > dh) override
 General assemble methods. More...
 
const ElementCacheMapcache_map () const
 Return ElementCacheMap. More...
 
- Public Member Functions inherited from GenericAssemblyBase
 GenericAssemblyBase ()
 
virtual ~GenericAssemblyBase ()
 
std::shared_ptr< EvalPointseval_points () const
 Getter to EvalPoints object. More...
 

Private Member Functions

void initialize ()
 Common part of GenericAssemblz constructors. More...
 
void assemble_integrals ()
 Call assemblations when patch is filled. More...
 
void patch_reinit ()
 
void add_integrals_of_computing_step (DHCellAccessor cell)
 
void add_volume_integral (const DHCellAccessor &cell)
 Add data of volume integral to appropriate data structure. More...
 
void add_edge_integral (const DHCellSide &cell_side)
 Add data of edge integral to appropriate data structure. More...
 
void add_coupling_integral (const DHCellAccessor &cell, const DHCellSide &ngh_side, bool add_low)
 Add data of coupling integral to appropriate data structure. More...
 
void add_boundary_integral (const DHCellSide &bdr_side)
 Add data of boundary integral to appropriate data structure. More...
 
void reallocate_cache ()
 Calls cache_reallocate method on. More...
 

Private Attributes

PatchFEValues< 3 > fe_values_
 Common FEValues object over all dimensions. More...
 
bool use_patch_fe_values_
 Flag holds if common fe_values_ object is used in multidim_assembly_. More...
 
MixedPtr< DimAssembly, 1 > multidim_assembly_
 Assembly object. More...
 
int active_integrals_
 Holds mask of active integrals. More...
 
unsigned int min_edge_sides_
 
RevertableList< BulkIntegralDatabulk_integral_data_
 Holds data for computing bulk integrals. More...
 
RevertableList< EdgeIntegralDataedge_integral_data_
 Holds data for computing edge integrals. More...
 
RevertableList< CouplingIntegralDatacoupling_integral_data_
 Holds data for computing couplings integrals. More...
 
RevertableList< BoundaryIntegralDataboundary_integral_data_
 Holds data for computing boundary integrals. More...
 
std::vector< std::vector< uint > > table_sizes_
 

Additional Inherited Members

- Protected Attributes inherited from GenericAssemblyBase
AssemblyIntegrals integrals_
 Holds integral objects. More...
 
std::shared_ptr< EvalPointseval_points_
 EvalPoints object shared by all integrals. More...
 
ElementCacheMap element_cache_map_
 ElementCacheMap according to EvalPoints. More...
 

Detailed Description

template<template< IntDim... > class DimAssembly>
class GenericAssembly< DimAssembly >

Generic class of assemblation.

Class

Definition at line 173 of file generic_assembly.hh.

Constructor & Destructor Documentation

◆ GenericAssembly() [1/2]

template<template< IntDim... > class DimAssembly>
GenericAssembly< DimAssembly >::GenericAssembly ( typename DimAssembly< 1 >::EqFields *  eq_fields,
typename DimAssembly< 1 >::EqData *  eq_data 
)
inline

Constructor.

Definition at line 177 of file generic_assembly.hh.

◆ GenericAssembly() [2/2]

template<template< IntDim... > class DimAssembly>
GenericAssembly< DimAssembly >::GenericAssembly ( typename DimAssembly< 1 >::EqFields *  eq_fields,
typename DimAssembly< 1 >::EqData *  eq_data,
DOFHandlerMultiDim dh 
)
inline

Constructor.

Definition at line 191 of file generic_assembly.hh.

Member Function Documentation

◆ add_boundary_integral()

template<template< IntDim... > class DimAssembly>
void GenericAssembly< DimAssembly >::add_boundary_integral ( const DHCellSide bdr_side)
inlineprivate

Add data of boundary integral to appropriate data structure.

Definition at line 472 of file generic_assembly.hh.

Here is the caller graph for this function:

◆ add_coupling_integral()

template<template< IntDim... > class DimAssembly>
void GenericAssembly< DimAssembly >::add_coupling_integral ( const DHCellAccessor cell,
const DHCellSide ngh_side,
bool  add_low 
)
inlineprivate

Add data of coupling integral to appropriate data structure.

Definition at line 453 of file generic_assembly.hh.

Here is the caller graph for this function:

◆ add_edge_integral()

template<template< IntDim... > class DimAssembly>
void GenericAssembly< DimAssembly >::add_edge_integral ( const DHCellSide cell_side)
inlineprivate

Add data of edge integral to appropriate data structure.

Definition at line 438 of file generic_assembly.hh.

Here is the caller graph for this function:

◆ add_integrals_of_computing_step()

template<template< IntDim... > class DimAssembly>
void GenericAssembly< DimAssembly >::add_integrals_of_computing_step ( DHCellAccessor  cell)
inlineprivate

Add data of integrals to appropriate structure and register elements to ElementCacheMap.

Types of used integrals must be set in data member active_integrals_.

Definition at line 393 of file generic_assembly.hh.

Here is the caller graph for this function:

◆ add_volume_integral()

template<template< IntDim... > class DimAssembly>
void GenericAssembly< DimAssembly >::add_volume_integral ( const DHCellAccessor cell)
inlineprivate

Add data of volume integral to appropriate data structure.

Definition at line 423 of file generic_assembly.hh.

Here is the caller graph for this function:

◆ assemble()

template<template< IntDim... > class DimAssembly>
void GenericAssembly< DimAssembly >::assemble ( std::shared_ptr< DOFHandlerMultiDim dh)
inlineoverridevirtual

General assemble methods.

Loops through local cells and calls assemble methods of assembly object of each cells over space dimension.

TODO:

  • make estimate of the cache fill for combination of (integral_type x element dimension)
  • add next cell to patch if current_patch_size + next_element_size <= fixed_cache_size
  • avoid reverting the integral data lists.

Implements GenericAssemblyBase.

Definition at line 225 of file generic_assembly.hh.

Here is the caller graph for this function:

◆ assemble_integrals()

template<template< IntDim... > class DimAssembly>
void GenericAssembly< DimAssembly >::assemble_integrals ( )
inlineprivate

Call assemblations when patch is filled.

Definition at line 293 of file generic_assembly.hh.

Here is the caller graph for this function:

◆ cache_map()

template<template< IntDim... > class DimAssembly>
const ElementCacheMap& GenericAssembly< DimAssembly >::cache_map ( ) const
inline

Return ElementCacheMap.

Definition at line 273 of file generic_assembly.hh.

◆ initialize()

template<template< IntDim... > class DimAssembly>
void GenericAssembly< DimAssembly >::initialize ( )
inlineprivate

Common part of GenericAssemblz constructors.

Definition at line 279 of file generic_assembly.hh.

Here is the caller graph for this function:

◆ multidim_assembly()

template<template< IntDim... > class DimAssembly>
MixedPtr<DimAssembly, 1> GenericAssembly< DimAssembly >::multidim_assembly ( ) const
inline

Getter to set of assembly objects.

Definition at line 206 of file generic_assembly.hh.

Here is the caller graph for this function:

◆ patch_reinit()

template<template< IntDim... > class DimAssembly>
void GenericAssembly< DimAssembly >::patch_reinit ( )
inlineprivate

Definition at line 351 of file generic_assembly.hh.

Here is the caller graph for this function:

◆ reallocate_cache()

template<template< IntDim... > class DimAssembly>
void GenericAssembly< DimAssembly >::reallocate_cache ( )
inlineprivate

Calls cache_reallocate method on.

Definition at line 489 of file generic_assembly.hh.

Here is the caller graph for this function:

◆ set_min_edge_sides()

template<template< IntDim... > class DimAssembly>
void GenericAssembly< DimAssembly >::set_min_edge_sides ( unsigned int  val)
inline

Definition at line 210 of file generic_assembly.hh.

Here is the caller graph for this function:

Member Data Documentation

◆ active_integrals_

template<template< IntDim... > class DimAssembly>
int GenericAssembly< DimAssembly >::active_integrals_
private

Holds mask of active integrals.

Definition at line 500 of file generic_assembly.hh.

◆ boundary_integral_data_

template<template< IntDim... > class DimAssembly>
RevertableList<BoundaryIntegralData> GenericAssembly< DimAssembly >::boundary_integral_data_
private

Holds data for computing boundary integrals.

Definition at line 515 of file generic_assembly.hh.

◆ bulk_integral_data_

template<template< IntDim... > class DimAssembly>
RevertableList<BulkIntegralData> GenericAssembly< DimAssembly >::bulk_integral_data_
private

Holds data for computing bulk integrals.

Definition at line 512 of file generic_assembly.hh.

◆ coupling_integral_data_

template<template< IntDim... > class DimAssembly>
RevertableList<CouplingIntegralData> GenericAssembly< DimAssembly >::coupling_integral_data_
private

Holds data for computing couplings integrals.

Definition at line 514 of file generic_assembly.hh.

◆ edge_integral_data_

template<template< IntDim... > class DimAssembly>
RevertableList<EdgeIntegralData> GenericAssembly< DimAssembly >::edge_integral_data_
private

Holds data for computing edge integrals.

Definition at line 513 of file generic_assembly.hh.

◆ fe_values_

template<template< IntDim... > class DimAssembly>
PatchFEValues<3> GenericAssembly< DimAssembly >::fe_values_
private

Common FEValues object over all dimensions.

Definition at line 495 of file generic_assembly.hh.

◆ min_edge_sides_

template<template< IntDim... > class DimAssembly>
unsigned int GenericAssembly< DimAssembly >::min_edge_sides_
private

Minimal number of sides on edge.

Edge integral is created and calculated if number of sides is greater or equal than this value. Default value is 2 and can be changed

Definition at line 508 of file generic_assembly.hh.

◆ multidim_assembly_

template<template< IntDim... > class DimAssembly>
MixedPtr<DimAssembly, 1> GenericAssembly< DimAssembly >::multidim_assembly_
private

Assembly object.

Definition at line 497 of file generic_assembly.hh.

◆ table_sizes_

template<template< IntDim... > class DimAssembly>
std::vector<std::vector<uint> > GenericAssembly< DimAssembly >::table_sizes_
private

Struct for pre-computing number of elements, sides, bulk points and side points on each dimension. Format: { {n_bulk_points_1D, 2D, 3D }, {n_side_points_1D, 2D, 3D } }

Passes its to PatchFEValues and sets size of tables in this object

Definition at line 525 of file generic_assembly.hh.

◆ use_patch_fe_values_

template<template< IntDim... > class DimAssembly>
bool GenericAssembly< DimAssembly >::use_patch_fe_values_
private

Flag holds if common fe_values_ object is used in multidim_assembly_.

Definition at line 496 of file generic_assembly.hh.


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