hp2D::BilinearFormHelper_0_1_Part< F > Class Template Reference

Helper class for bilinear forms a(u,v) where u is a 0-form and v is a 1-form. More...

#include <bilinearFormHelper.hh>

Public Member Functions

 BilinearFormHelper_0_1_Part (const concepts::ElementFormulaContainer< F > frm)
 
concepts::RCP< concepts::SharedJacobianAdj< 2 > > data () const
 Gets the pointer to the shared data. More...
 
void data (const concepts::RCP< concepts::SharedJacobianAdj< 2 > > d)
 Set the pointer to the shared data. More...
 
virtual ~BilinearFormHelper_0_1_Part ()
 

Protected Member Functions

void computeIntermediate_ (const BaseQuad< concepts::Real > &elm, const int i) const
 Compute the intermediate data for element matrix computation. More...
 

Protected Attributes

concepts::ElementFormulaContainer< F > frm_
 ElementFormula. More...
 
ArrayElementFormula< concepts::Point< F, 2 > > intermediateVector_
 Intermediate vector (on each quadrature point) More...
 
concepts::RCP< concepts::SharedJacobianAdj< 2 > > sharedData_
 Shared data for vectorial bilinear forms. More...
 

Detailed Description

template<class F>
class hp2D::BilinearFormHelper_0_1_Part< F >

Helper class for bilinear forms a(u,v) where u is a 0-form and v is a 1-form.

For example, the Advection-BF is a 0-1-BF

\[ \int\limits_{K} \underline{k}^\top u \; \nabla{v} \; d\xi = \int\limits_{\hat{K}} \underline{k}^\top \hat{u} \; J^{-\top}\;\nabla{\hat{v}} \;|\det J| \; d\hat{\xi} \]

Here |\det J|, J^{-\top} and \underline{k} can be precomputed as a single vector intermediateVector_ per quadrature point.

Definition at line 78 of file bilinearFormHelper.hh.

Constructor & Destructor Documentation

◆ BilinearFormHelper_0_1_Part()

◆ ~BilinearFormHelper_0_1_Part()

template<class F >
virtual hp2D::BilinearFormHelper_0_1_Part< F >::~BilinearFormHelper_0_1_Part ( )
virtual

Member Function Documentation

◆ computeIntermediate_()

template<class F >
void hp2D::BilinearFormHelper_0_1_Part< F >::computeIntermediate_ ( const BaseQuad< concepts::Real > &  elm,
const int  i 
) const
protected

Compute the intermediate data for element matrix computation.

Parameters
itake only i-th column of Jacobian matrix (for test function)

This method is important for the derivated bilinear forms.

◆ data() [1/2]

template<class F >
concepts::RCP<concepts::SharedJacobianAdj<2> > hp2D::BilinearFormHelper_0_1_Part< F >::data ( ) const

Gets the pointer to the shared data.

◆ data() [2/2]

template<class F >
void hp2D::BilinearFormHelper_0_1_Part< F >::data ( const concepts::RCP< concepts::SharedJacobianAdj< 2 > >  d)

Set the pointer to the shared data.

Member Data Documentation

◆ frm_

template<class F >
concepts::ElementFormulaContainer<F> hp2D::BilinearFormHelper_0_1_Part< F >::frm_
protected

ElementFormula.

Definition at line 103 of file bilinearFormHelper.hh.

◆ intermediateVector_

template<class F >
ArrayElementFormula<concepts::Point<F,2> > hp2D::BilinearFormHelper_0_1_Part< F >::intermediateVector_
mutableprotected

Intermediate vector (on each quadrature point)

\[\underline{f}(F_K(\xi))(\mbox{adj}(J)_{\cdot,i})^\top\]

Definition at line 101 of file bilinearFormHelper.hh.

◆ sharedData_

template<class F >
concepts::RCP<concepts::SharedJacobianAdj<2> > hp2D::BilinearFormHelper_0_1_Part< F >::sharedData_
protected

Shared data for vectorial bilinear forms.

Definition at line 106 of file bilinearFormHelper.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich