constraints::ConstraintsList< F > Class Template Referenceabstract

List of AnalyticalConstraint. More...

#include <analytical.hh>

Inheritance diagram for constraints::ConstraintsList< F >:
concepts::BilinearForm< F > concepts::LinearForm< F > concepts::Cloneable concepts::OutputOperator

Public Member Functions

void add (AnalyticalConstraint< F > *c)
 Adds an AnalyticalConstraint to the list. More...
 
void add (const AnalyticalConstraint< F > &c)
 Adds an AnalyticalConstraint to the list. More...
 
void assembly (const concepts::Element< F > &e, concepts::TColumn< F > *&t, uint &n)
 Returns the TColumns t and the number of TColumns n for this constraint in element e. More...
 
virtual ConstraintsListclone () const
 Virtual constructor. More...
 
virtual BilinearForm * clone () const=0
 Virtual constructor. More...
 
 ConstraintsList ()
 Default constructor. More...
 
virtual void operator() (const concepts::Element< F > &elm, concepts::ElementMatrix< F > &em) const
 
virtual void operator() (const concepts::Element< F > &elmX, const concepts::Element< F > &elmY, concepts::ElementMatrix< F > &em) const
 
virtual void operator() (const Element< typename Realtype< F >::type > &elm, ElementMatrix< F > &em) const=0
 Computes the element contribution to the function. More...
 
virtual void operator() (const Element< typename Realtype< F >::type > &elmX, const Element< typename Realtype< F >::type > &elmY, ElementMatrix< F > &em) const=0
 Evaluates the bilinear form for all shape functions on elmX and elmY and stores the result in the matrix em. More...
 
virtual void operator() (const Element< typename Realtype< F >::type > &elmX, const Element< typename Realtype< F >::type > &elmY, ElementMatrix< F > &em, const ElementPair< typename Realtype< F >::type > &ep) const
 Evaluates the bilinear form for all shape functions on elmX and elmY and stores the result in the matrix em. More...
 
virtual ~ConstraintsList ()
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 

Private Attributes

concepts::Joiner< AnalyticalConstraint< F > *, 1 > * constraints_
 List of constraints. More...
 
uint n_
 Number of global constraints on the degree of freedom level. More...
 

Detailed Description

template<typename F>
class constraints::ConstraintsList< F >

List of AnalyticalConstraint.

Author
Philipp Frauenfelder, 2002

Definition at line 110 of file analytical.hh.

Constructor & Destructor Documentation

◆ ConstraintsList()

template<typename F >
constraints::ConstraintsList< F >::ConstraintsList ( )
inline

Default constructor.

Definition at line 114 of file analytical.hh.

◆ ~ConstraintsList()

template<typename F >
virtual constraints::ConstraintsList< F >::~ConstraintsList ( )
virtual

Member Function Documentation

◆ add() [1/2]

template<typename F >
void constraints::ConstraintsList< F >::add ( AnalyticalConstraint< F > *  c)

Adds an AnalyticalConstraint to the list.

The list takes care of the removal of c.

◆ add() [2/2]

template<typename F >
void constraints::ConstraintsList< F >::add ( const AnalyticalConstraint< F > &  c)

Adds an AnalyticalConstraint to the list.

c is copied before adding it to the list.

◆ assembly()

template<typename F >
void constraints::ConstraintsList< F >::assembly ( const concepts::Element< F > &  e,
concepts::TColumn< F > *&  t,
uint &  n 
)

Returns the TColumns t and the number of TColumns n for this constraint in element e.

Calls assembly on every constraint of constraints_.

◆ clone() [1/2]

template<typename F >
virtual ConstraintsList* constraints::ConstraintsList< F >::clone ( ) const
virtual

Virtual constructor.

Returns a pointer to a copy of itself. The caller is responsible to destroy this copy.

Implements concepts::Cloneable.

◆ clone() [2/2]

virtual BilinearForm* concepts::BilinearForm< F, typename Realtype<F>::type >::clone ( ) const
pure virtualinherited

Virtual constructor.

Returns a pointer to a copy of itself. The caller is responsible to destroy this copy.

◆ info()

template<typename F >
virtual std::ostream& constraints::ConstraintsList< F >::info ( std::ostream &  os) const
protectedvirtual

Reimplemented from concepts::LinearForm< F >.

◆ operator()() [1/5]

template<typename F >
virtual void constraints::ConstraintsList< F >::operator() ( const concepts::Element< F > &  elm,
concepts::ElementMatrix< F > &  em 
) const
virtual

◆ operator()() [2/5]

template<typename F >
virtual void constraints::ConstraintsList< F >::operator() ( const concepts::Element< F > &  elmX,
const concepts::Element< F > &  elmY,
concepts::ElementMatrix< F > &  em 
) const
virtual

◆ operator()() [3/5]

virtual void concepts::LinearForm< F, typename Realtype<F>::type >::operator() ( const Element< G > &  elm,
ElementMatrix< F > &  em 
) const
pure virtualinherited

Computes the element contribution to the function.

Parameters
elmElement on which the computations should be performed
emThe local matrix

◆ operator()() [4/5]

virtual void concepts::BilinearForm< F, typename Realtype<F>::type >::operator() ( const Element< G > &  elmX,
const Element< G > &  elmY,
ElementMatrix< F > &  em 
) const
pure virtualinherited

Evaluates the bilinear form for all shape functions on elmX and elmY and stores the result in the matrix em.

Postcondition
The returned matrix em has the correct size.
Parameters
elmXLeft element (test functions)
elmYRight element (trial functions)
emReturn element matrix

◆ operator()() [5/5]

virtual void concepts::BilinearForm< F, typename Realtype<F>::type >::operator() ( const Element< G > &  elmX,
const Element< G > &  elmY,
ElementMatrix< F > &  em,
const ElementPair< G > &  ep 
) const
inlinevirtualinherited

Evaluates the bilinear form for all shape functions on elmX and elmY and stores the result in the matrix em.

If this method is not reimplemented in a derived class, the default behaviour is to call the application operator without ep.

Postcondition
The returned matrix em has the correct size.
Parameters
elmXLeft element
elmYRight element
emReturn element matrix
epElement pair holding more information on the pair elmX and elmY

Definition at line 57 of file bilinearForm.hh.

Member Data Documentation

◆ constraints_

template<typename F >
concepts::Joiner<AnalyticalConstraint<F>*, 1>* constraints::ConstraintsList< F >::constraints_
private

List of constraints.

Definition at line 149 of file analytical.hh.

◆ n_

template<typename F >
uint constraints::ConstraintsList< F >::n_
private

Number of global constraints on the degree of freedom level.

Definition at line 146 of file analytical.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