Flow123d  JS_before_hm-1626-gde32303
Classes | 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>

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

Classes

struct  BoundaryIntegralData
 
struct  BulkIntegralData
 
struct  CouplingIntegralData
 
struct  EdgeIntegralData
 

Public Member Functions

 GenericAssembly (typename DimAssembly< 1 >::EqFields *eq_fields, typename DimAssembly< 1 >::EqData *eq_data)
 Constructor. More...
 
MixedPtr< DimAssembly, 1 > multidim_assembly () const
 Getter to set of assembly objects. More...
 
std::shared_ptr< EvalPointseval_points () const
 Geter to EvalPoints object. More...
 
void assemble (std::shared_ptr< DOFHandlerMultiDim > dh)
 General assemble methods. More...
 
const ElementCacheMapcache_map () const
 Return ElementCacheMap. More...
 

Private Member Functions

template<unsigned int dim>
void assemble_cell_integrals ()
 Assembles the cell integrals for the given dimension. More...
 
template<unsigned int dim>
void assemble_boundary_side_integrals ()
 Assembles the boundary side integrals for the given dimension. More...
 
template<unsigned int dim>
void assemble_edge_integrals ()
 Assembles the edge integrals for the given dimension. More...
 
template<unsigned int dim>
void assemble_neighbour_integrals ()
 Assembles the neighbours integrals for the given dimension. More...
 
void assemble_integrals ()
 Call assemblations when patch is filled. More...
 
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

MixedPtr< DimAssembly, 1 > multidim_assembly_
 Assembly object. More...
 
int active_integrals_
 Holds mask of active integrals. More...
 
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...
 
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...
 

Detailed Description

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

Generic class of assemblation.

Class

Definition at line 58 of file generic_assembly.hh.

Constructor & Destructor Documentation

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 153 of file generic_assembly.hh.

Member Function Documentation

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 411 of file generic_assembly.hh.

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 394 of file generic_assembly.hh.

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 381 of file generic_assembly.hh.

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 337 of file generic_assembly.hh.

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 367 of file generic_assembly.hh.

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

General assemble methods.

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

Definition at line 188 of file generic_assembly.hh.

Here is the caller graph for this function:

template<template< IntDim... > class DimAssembly>
template<unsigned int dim>
void GenericAssembly< DimAssembly >::assemble_boundary_side_integrals ( )
inlineprivate

Assembles the boundary side integrals for the given dimension.

Definition at line 258 of file generic_assembly.hh.

template<template< IntDim... > class DimAssembly>
template<unsigned int dim>
void GenericAssembly< DimAssembly >::assemble_cell_integrals ( )
inlineprivate

Assembles the cell integrals for the given dimension.

Definition at line 243 of file generic_assembly.hh.

template<template< IntDim... > class DimAssembly>
template<unsigned int dim>
void GenericAssembly< DimAssembly >::assemble_edge_integrals ( )
inlineprivate

Assembles the edge integrals for the given dimension.

Definition at line 267 of file generic_assembly.hh.

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

Call assemblations when patch is filled.

Definition at line 285 of file generic_assembly.hh.

template<template< IntDim... > class DimAssembly>
template<unsigned int dim>
void GenericAssembly< DimAssembly >::assemble_neighbour_integrals ( )
inlineprivate

Assembles the neighbours integrals for the given dimension.

Definition at line 277 of file generic_assembly.hh.

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

Return ElementCacheMap.

Definition at line 236 of file generic_assembly.hh.

template<template< IntDim... > class DimAssembly>
std::shared_ptr<EvalPoints> GenericAssembly< DimAssembly >::eval_points ( ) const
inline

Geter to EvalPoints object.

Definition at line 178 of file generic_assembly.hh.

Here is the caller graph for this function:

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

Getter to set of assembly objects.

Definition at line 173 of file generic_assembly.hh.

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

Calls cache_reallocate method on.

Definition at line 427 of file generic_assembly.hh.

Member Data Documentation

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

Holds mask of active integrals.

Definition at line 437 of file generic_assembly.hh.

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

Holds data for computing boundary integrals.

Definition at line 448 of file generic_assembly.hh.

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

Holds data for computing bulk integrals.

Definition at line 445 of file generic_assembly.hh.

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

Holds data for computing couplings integrals.

Definition at line 447 of file generic_assembly.hh.

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

Holds data for computing edge integrals.

Definition at line 446 of file generic_assembly.hh.

template<template< IntDim... > class DimAssembly>
ElementCacheMap GenericAssembly< DimAssembly >::element_cache_map_
private

ElementCacheMap according to EvalPoints.

Definition at line 441 of file generic_assembly.hh.

template<template< IntDim... > class DimAssembly>
std::shared_ptr<EvalPoints> GenericAssembly< DimAssembly >::eval_points_
private

EvalPoints object shared by all integrals.

Definition at line 440 of file generic_assembly.hh.

template<template< IntDim... > class DimAssembly>
AssemblyIntegrals GenericAssembly< DimAssembly >::integrals_
private

Holds integral objects.

Definition at line 439 of file generic_assembly.hh.

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

Assembly object.

Definition at line 434 of file generic_assembly.hh.


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