dune-pdelab  2.5-dev
Public Member Functions | List of all members
Dune::PDELab::DirichletFromFluxConstraintsAdapter< FluxConstraintsParameters > Struct Template Reference

#include <dune/pdelab/constraints/common/constraintsparameters.hh>

Inheritance diagram for Dune::PDELab::DirichletFromFluxConstraintsAdapter< FluxConstraintsParameters >:
Inheritance graph

Public Member Functions

template<typename I >
bool isDirichlet (const I &intersection, const FieldVector< typename I::ctype, I::dimension-1 > &coord) const
 
template<typename I >
bool isNeumann (const I &intersection, const FieldVector< typename I::ctype, I::dimension-1 > &coord) const
 
template<typename T >
void setTime (const T &time)
 
 DirichletFromFluxConstraintsAdapter (FluxConstraintsParameters &fluxConstraintsParameters)
 

Detailed Description

template<typename FluxConstraintsParameters>
struct Dune::PDELab::DirichletFromFluxConstraintsAdapter< FluxConstraintsParameters >

Adapter class that deduces Dirichlet constraints from a model of FluxConstraintsParameters by applying the standard logic that every location on the boundary is either Neumann or Dirichlet constrained.

Warning
This adapter will only work for the standard case of $\partial \Omega = \Gamma_D \cup \Gamma_N$. Do not try to use it for more advanced problems such as flow with flux, outflow and Dirichlet constraints!
Template Parameters
FluxConstraintsParametersThe type of the underlying Neumann constraints parameters implementation.

Constructor & Destructor Documentation

◆ DirichletFromFluxConstraintsAdapter()

template<typename FluxConstraintsParameters >
Dune::PDELab::DirichletFromFluxConstraintsAdapter< FluxConstraintsParameters >::DirichletFromFluxConstraintsAdapter ( FluxConstraintsParameters fluxConstraintsParameters)
inline

Member Function Documentation

◆ isDirichlet()

template<typename FluxConstraintsParameters >
template<typename I >
bool Dune::PDELab::DirichletFromFluxConstraintsAdapter< FluxConstraintsParameters >::isDirichlet ( const I &  intersection,
const FieldVector< typename I::ctype, I::dimension-1 > &  coord 
) const
inline

Returns the opposite of isNeumann().

◆ isNeumann()

template<typename FluxConstraintsParameters >
template<typename I >
bool Dune::PDELab::DirichletFromFluxConstraintsAdapter< FluxConstraintsParameters >::isNeumann ( const I &  intersection,
const FieldVector< typename I::ctype, I::dimension-1 > &  coord 
) const
inline

Forwards to the underlying FluxConstraintsParameters implementation

◆ setTime()

template<typename FluxConstraintsParameters >
template<typename T >
void Dune::PDELab::DirichletFromFluxConstraintsAdapter< FluxConstraintsParameters >::setTime ( const T &  time)
inline

Forwards the new time to the underlying FluxConstraintsParameters object.


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