KASKADE 7 development version
Public Types | Public Member Functions | List of all members
Kaskade::DiracMortar< Scalar, dim > Class Template Reference

Defines a constraint formulation where each sample is taken as a single constraint of its own. More...

#include <contactConstraints.hh>

Detailed Description

template<class Scalar, int dim>
class Kaskade::DiracMortar< Scalar, dim >

Defines a constraint formulation where each sample is taken as a single constraint of its own.

For a detailed description of the concept, see the base class Mortar. This implementation creates constraints that correspond one to one to the provided constraint samples, i.e. the mortar test functions are Dirac functions located at the constraint sample points.

Definition at line 317 of file contactConstraints.hh.

Inheritance diagram for Kaskade::DiracMortar< Scalar, dim >:
Kaskade::Mortar< Scalar, dim >

Public Types

using Entry = Dune::FieldMatrix< Scalar, 1, dim >
 The type of matrix entries in the constraint matrix \( B \) in \( Bx \le b \). More...
 
using Row = std::vector< std::pair< size_t, Entry > >
 

Public Member Functions

virtual int size (int n) const
 The number of resulting constraints if n samples are provided. More...
 
virtual void updateConstraints (int n, Dune::FieldVector< Scalar, dim-1 > const &xi, Row &Gi, Scalar gi, std::vector< Row > &B, std::vector< Scalar > &b) const
 The. More...
 

Member Typedef Documentation

◆ Entry

template<class Scalar , int dim>
using Kaskade::Mortar< Scalar, dim >::Entry = Dune::FieldMatrix<Scalar,1,dim>
inherited

The type of matrix entries in the constraint matrix \( B \) in \( Bx \le b \).

The entries are row vectors with the same length as the primal variable \( x \) entries.

Definition at line 274 of file contactConstraints.hh.

◆ Row

template<class Scalar , int dim>
using Kaskade::Mortar< Scalar, dim >::Row = std::vector<std::pair<size_t,Entry> >
inherited

Definition at line 275 of file contactConstraints.hh.

Member Function Documentation

◆ size()

template<class Scalar , int dim>
virtual int Kaskade::DiracMortar< Scalar, dim >::size ( int  n) const
inlinevirtual

The number of resulting constraints if n samples are provided.

Implements Kaskade::Mortar< Scalar, dim >.

Definition at line 325 of file contactConstraints.hh.

◆ updateConstraints()

template<class Scalar , int dim>
virtual void Kaskade::DiracMortar< Scalar, dim >::updateConstraints ( int  n,
Dune::FieldVector< Scalar, dim-1 > const &  xi,
Row Gi,
Scalar  gi,
std::vector< Row > &  B,
std::vector< Scalar > &  b 
) const
virtual

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