OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
olb::fd::DiffusionScheme< D, T, tag::CENTRAL > Struct Template Referencefinal

#include <central.h>

+ Inheritance diagram for olb::fd::DiffusionScheme< D, T, tag::CENTRAL >:
+ Collaboration diagram for olb::fd::DiffusionScheme< D, T, tag::CENTRAL >:

Public Member Functions

 DiffusionScheme ()=delete
 

Static Public Member Functions

template<typename PARAMETERS >
static T apply (T &f0, T f[], T F[], T u[], PARAMETERS &params)
 
- Static Public Member Functions inherited from olb::fd::FdScheme< tag::CENTRAL >
static constexpr int extent ()
 

Detailed Description

template<unsigned D, typename T>
struct olb::fd::DiffusionScheme< D, T, tag::CENTRAL >

Definition at line 52 of file central.h.

Constructor & Destructor Documentation

◆ DiffusionScheme()

template<unsigned D, typename T >
olb::fd::DiffusionScheme< D, T, tag::CENTRAL >::DiffusionScheme ( )
delete

Member Function Documentation

◆ apply()

template<unsigned D, typename T >
template<typename PARAMETERS >
T olb::fd::DiffusionScheme< D, T, tag::CENTRAL >::apply ( T & f0,
T f[],
T F[],
T u[],
PARAMETERS & params )
static

Definition at line 50 of file central.hh.

52{
53 T fNew = 0.;
54 for (unsigned iD=0; iD<D; ++iD) {
55 fNew += F[getArrayPos<1>(0,iD)] + f[getArrayPos<1>(0,iD)];
56 }
57 fNew -= 2.*D*f0;
58 return fNew * params.template get<fdParams::Diffusivity>();
59}

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