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

Defines a constraint formulation where samples are weighted by Bezier test functions. More...

#include <contactConstraints.hh>

Detailed Description

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

Defines a constraint formulation where samples are weighted by Bezier test functions.

For a detailed description of the concept, see the base class Mortar. Let \( g(x_i) \) denote the gap evaluated at sample point \( x_i \), \( i=1,\dots,N \). With \( M \) Bezier functions \( B_k \) (depends on the Bezier order given), we obtain \( M \) constraints

\[ \sum_{i=1}^N g(x_i) B_k(x_i) \ge 0. \]

Definition at line 354 of file contactConstraints.hh.

Inheritance diagram for Kaskade::BezierMortar< 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

 BezierMortar (int m)
 Creates a Bezier mortar formulation of order m. More...
 
virtual int size (int n) const
 The number of resulting constraints if m samples are provided. More...
 
virtual void updateConstraints (int n, Dune::FieldVector< Scalar, dim-1 > const &xi, Row &vic, Scalar g, std::vector< Row > &rows, std::vector< Scalar > &bounds) 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.

Constructor & Destructor Documentation

◆ BezierMortar()

template<class Scalar , int dim>
Kaskade::BezierMortar< Scalar, dim >::BezierMortar ( int  m)

Creates a Bezier mortar formulation of order m.

Parameters
mThe order of Bezier polynomials to use as constraint test functions (m >= 0).

Member Function Documentation

◆ size()

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

The number of resulting constraints if m samples are provided.

Implements Kaskade::Mortar< Scalar, dim >.

◆ updateConstraints()

template<class Scalar , int dim>
virtual void Kaskade::BezierMortar< Scalar, dim >::updateConstraints ( int  n,
Dune::FieldVector< Scalar, dim-1 > const &  xi,
Row vic,
Scalar  g,
std::vector< Row > &  rows,
std::vector< Scalar > &  bounds 
) const
virtual

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