dune-pdelab  2.7-git
Public Types | Public Member Functions | Static Public Attributes | List of all members
Dune::PDELab::JacobianToCurl< Jacobian, 1, 2 > Class Template Reference

extract the curl of a 1D-valued function in 2D from the jacobian of that function More...

#include <dune/pdelab/common/jacobiantocurl.hh>

Public Types

typedef Jacobian::block_type CurlField
 
typedef FieldVector< CurlField, dimCurlCurl
 

Public Member Functions

void operator() (const Jacobian &jacobian, Curl &curl) const
 

Static Public Attributes

static const std::size_t dimCurl = 2
 

Detailed Description

template<typename Jacobian>
class Dune::PDELab::JacobianToCurl< Jacobian, 1, 2 >

extract the curl of a 1D-valued function in 2D from the jacobian of that function

The two coordinates are the $x$- and $y$ coordinates and the one value component is the $z$-component of the quantity. It is assumed that the quantity shows no variation in the $z$-direction (thus $\partial_z=0$) and that its $x$- and $y$-components vanish. From the general 3D formula for the curl

\begin{align*} A &=\nabla\times B \\ & \Downarrow \\ a_x &= \partial_yb_z-\partial_zb_y \\ a_y &= \partial_zb_x-\partial_xb_z \\ a_z &= \partial_xb_y-\partial_yb_x \end{align*}

only the first two survive:

\begin{align*} a_x &= \partial_yb_z \\ a_y &= -\partial_xb_z \end{align*}

Replacing $x$, $y$ and $z$ by the apropriate indices yields

\begin{align*} a_0 &= \partial_1b_0 \\ a_1 &= -\partial_0b_0 \end{align*}

Member Typedef Documentation

◆ Curl

template<typename Jacobian >
typedef FieldVector<CurlField, dimCurl> Dune::PDELab::JacobianToCurl< Jacobian, 1, 2 >::Curl

◆ CurlField

template<typename Jacobian >
typedef Jacobian::block_type Dune::PDELab::JacobianToCurl< Jacobian, 1, 2 >::CurlField

Member Function Documentation

◆ operator()()

template<typename Jacobian >
void Dune::PDELab::JacobianToCurl< Jacobian, 1, 2 >::operator() ( const Jacobian &  jacobian,
Curl curl 
) const
inline

Member Data Documentation

◆ dimCurl

template<typename Jacobian >
const std::size_t Dune::PDELab::JacobianToCurl< Jacobian, 1, 2 >::dimCurl = 2
static

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