dune-pdelab 2.7-git
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Dune::PDELab::LocalCallableToBoundaryConditionAdapter< F > Class Template Reference

Adapter for boundary cond from a callable taking an entity and local coordinates. More...

#include <dune/pdelab/function/callableadapter.hh>

Inheritance diagram for Dune::PDELab::LocalCallableToBoundaryConditionAdapter< F >:
Inheritance graph

Public Member Functions

 LocalCallableToBoundaryConditionAdapter (const F &f_)
 
template<typename I >
bool isDirichlet (const I &ig, const Dune::FieldVector< typename I::ctype, I::mydimension > &coord) const
 
template<typename I >
bool isNeumann (const I &ig, const Dune::FieldVector< typename I::ctype, I::mydimension > &coord) const
 
template<typename I >
bool isNeumann (const I &intersection, const FieldVector< typename I::ctype, I::mydimension > &coord) const
 
template<typename T >
void setTime (const T &time)
 
template<typename I >
bool isDirichlet (const I &intersection, const FieldVector< typename I::ctype, I::mydimension > &coord) const
 
template<typename I >
bool isNeumann (const I &intersection, const FieldVector< typename I::ctype, I::mydimension > &coord) const
 
template<typename T >
void setTime (const T &time)
 

Detailed Description

template<typename F>
class Dune::PDELab::LocalCallableToBoundaryConditionAdapter< F >

Adapter for boundary cond from a callable taking an entity and local coordinates.

Constructor & Destructor Documentation

◆ LocalCallableToBoundaryConditionAdapter()

template<typename F >
Dune::PDELab::LocalCallableToBoundaryConditionAdapter< F >::LocalCallableToBoundaryConditionAdapter ( const F &  f_)
inline

Member Function Documentation

◆ isDirichlet() [1/2]

template<typename F >
template<typename I >
bool Dune::PDELab::LocalCallableToBoundaryConditionAdapter< F >::isDirichlet ( const I &  ig,
const Dune::FieldVector< typename I::ctype, I::mydimension > &  coord 
) const
inline

◆ isDirichlet() [2/2]

template<typename I >
bool Dune::PDELab::DirichletConstraintsParameters::isDirichlet ( const I &  intersection,
const FieldVector< typename I::ctype, I::mydimension > &  coord 
) const
inlineinherited

Indicates whether the given position should be Dirichlet-constrained.

Parameters
intersectionThe grid intersection containing the queried location.
coordThe position of the queried location in local coordinates of the intersection.
Returns
true iff the given location should have a Dirichlet constraint.

◆ isNeumann() [1/3]

template<typename F >
template<typename I >
bool Dune::PDELab::LocalCallableToBoundaryConditionAdapter< F >::isNeumann ( const I &  ig,
const Dune::FieldVector< typename I::ctype, I::mydimension > &  coord 
) const
inline

◆ isNeumann() [2/3]

template<typename I >
bool Dune::PDELab::DirichletConstraintsParameters::isNeumann ( const I &  intersection,
const FieldVector< typename I::ctype, I::mydimension > &  coord 
) const
inlineinherited

Indicates whether the given position should be Neumann-constrained.

Most of the time, this method will be equivalent to !isDirichlet(...), but sometimes (in particular in multi-domain scenarios), both methods may return false.

Parameters
intersectionThe grid intersection containing the queried location.
coordThe position of the queried location in local coordinates of the intersection.
Returns
true iff the given location should have a Neumann constraint.

◆ isNeumann() [3/3]

template<typename I >
bool Dune::PDELab::FluxConstraintsParameters::isNeumann ( const I &  intersection,
const FieldVector< typename I::ctype, I::mydimension > &  coord 
) const
inlineinherited

Indicates whether the given position should be Neumann-constrained.

Parameters
intersectionThe grid intersection containing the queried location.
coordThe position of the queried location in local coordinates of the intersection.
Returns
true iff the given location should have a Neumann constraint.

◆ setTime() [1/2]

template<typename T >
void Dune::PDELab::DirichletConstraintsParameters::setTime ( const T &  time)
inlineinherited

Sets the current time (only required for instationary problems).

Note
This method only needs to be implement for instationary problems.

◆ setTime() [2/2]

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

Sets the current time (only required for instationary problems).

Note
This method only needs to be implement for instationary problems.

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