KASKADE 7 development version
Loading...
Searching...
No Matches
Kaskade::LinearizationDifferenceAt< Functional_ > Class Template Reference

Proxy class for evaluating differences of linearizations of a nonlinear functional. More...

#include <functional_aux.hh>

Inheritance diagram for Kaskade::LinearizationDifferenceAt< Functional_ >:

Classes

class  BoundaryCache
struct  D1
 Rhs block information. More...
struct  D2
 matrix block information More...
class  DomainCache

Public Types

typedef Functional_ Functional
typedef Functional::Scalar Scalar
typedef Functional::AnsatzVars AnsatzVars
typedef Functional::TestVars TestVars
typedef Functional::OriginVars OriginVars
typedef Functional::OriginVars::VariableSet PointOfLinearization
 Type of variables around which the functional will be linearized.

Public Member Functions

 LinearizationDifferenceAt (Functional const &f_, PointOfLinearization const &u1_, PointOfLinearization const &u2_)
 Construct a difference of linearizations from a given functional.
DomainCache createDomainCache (int flags) const
 create a domain cache
BoundaryCache createBoundaryCache (int flags) const
 create a boundary cache
template<class Cell>
int integrationOrder (Cell const &cell, int shapeFunctionOrder, bool boundary) const
 integration order
Functional const & getFunctional () const
 Get functional.

Static Public Attributes

static ProblemType const type = Functional::type

Protected Attributes

Functional const & f
PointOfLinearization const & u1
PointOfLinearization const & u2

Detailed Description

template<class Functional_>
class Kaskade::LinearizationDifferenceAt< Functional_ >

Proxy class for evaluating differences of linearizations of a nonlinear functional.

Acceptance tests in Newton's method for minimization problems usually involves some kind of comparison \( f(u+\delta u) < f(u) \), where

\[ f(u) = \sum_{i=1}^N f_i(u). \]

Now taking the difference of both sums (large, because it's assembly over the grid) is numerically unstable for \( \delta u \) small. A more stable evaluation is

\[ \sum_{i=1}^N (f_i(u)-f_i(u+\delta u)) > 0. \]

This class supports the evaluation of the sum of differences.

According to the following idea: A VariationalFunctional defines a mapping \( F : U \to V \), which can be evaluated and linearized in an appropriate ansatz space \( U_a\subset U \), only if an argument \( u \in U_o \) in a - possibly different - "origin" subspace \( U_o \subset U \) is given.

Hence, from a functional \( f \) and two variables \( u_1, u_2 \in U_o \) one has to create a linearization of \( f(u_1)-f(u_2) \), which is represented by this class.

Definition at line 757 of file functional_aux.hh.

Member Typedef Documentation

◆ AnsatzVars

template<class Functional_>
typedef Functional::AnsatzVars Kaskade::LinearizationDifferenceAt< Functional_ >::AnsatzVars

Definition at line 767 of file functional_aux.hh.

◆ Functional

template<class Functional_>
typedef Functional_ Kaskade::LinearizationDifferenceAt< Functional_ >::Functional

Definition at line 762 of file functional_aux.hh.

◆ OriginVars

template<class Functional_>
typedef Functional::OriginVars Kaskade::LinearizationDifferenceAt< Functional_ >::OriginVars

Definition at line 769 of file functional_aux.hh.

◆ PointOfLinearization

template<class Functional_>
typedef Functional::OriginVars::VariableSet Kaskade::LinearizationDifferenceAt< Functional_ >::PointOfLinearization

Type of variables around which the functional will be linearized.

The type of "iterate", i.e. the point around which the functional is linearized in the ansatz and test spaces. Note that this can be, but need not be, the ansatz space itself. It must have the same number of variables with the same number of components each, but the underlying FE spaces can be different.

Definition at line 781 of file functional_aux.hh.

◆ Scalar

template<class Functional_>
typedef Functional::Scalar Kaskade::LinearizationDifferenceAt< Functional_ >::Scalar

Definition at line 765 of file functional_aux.hh.

◆ TestVars

template<class Functional_>
typedef Functional::TestVars Kaskade::LinearizationDifferenceAt< Functional_ >::TestVars

Definition at line 768 of file functional_aux.hh.

Constructor & Destructor Documentation

◆ LinearizationDifferenceAt()

template<class Functional_>
Kaskade::LinearizationDifferenceAt< Functional_ >::LinearizationDifferenceAt ( Functional const & f_,
PointOfLinearization const & u1_,
PointOfLinearization const & u2_ )
inline

Construct a difference of linearizations from a given functional.

Definition at line 786 of file functional_aux.hh.

Member Function Documentation

◆ createBoundaryCache()

template<class Functional_>
BoundaryCache Kaskade::LinearizationDifferenceAt< Functional_ >::createBoundaryCache ( int flags) const
inline

create a boundary cache

Definition at line 861 of file functional_aux.hh.

◆ createDomainCache()

template<class Functional_>
DomainCache Kaskade::LinearizationDifferenceAt< Functional_ >::createDomainCache ( int flags) const
inline

create a domain cache

Definition at line 855 of file functional_aux.hh.

◆ getFunctional()

template<class Functional_>
Functional const & Kaskade::LinearizationDifferenceAt< Functional_ >::getFunctional ( ) const
inline

Get functional.

Definition at line 884 of file functional_aux.hh.

◆ integrationOrder()

template<class Functional_>
template<class Cell>
int Kaskade::LinearizationDifferenceAt< Functional_ >::integrationOrder ( Cell const & cell,
int shapeFunctionOrder,
bool boundary ) const
inline

integration order

Definition at line 878 of file functional_aux.hh.

Referenced by integrationOrder().

Member Data Documentation

◆ f

◆ type

template<class Functional_>
ProblemType const Kaskade::LinearizationDifferenceAt< Functional_ >::type = Functional::type
static

Definition at line 763 of file functional_aux.hh.

◆ u1

◆ u2


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