OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
FD_scheme< Sys_eqs, grid_type >::constant_b Struct Reference

Encapsulation of the b term as constant. More...

Detailed Description

template<typename Sys_eqs, typename grid_type>
struct FD_scheme< Sys_eqs, grid_type >::constant_b

Encapsulation of the b term as constant.

Definition at line 140 of file FD_Solver.hpp.

Public Member Functions

 constant_b (typename Sys_eqs::stype scal)
 Constrictor from a scalar.
 
Sys_eqs::stype get (grid_dist_key_dx< Sys_eqs::dims > &key)
 Get the b term on a grid point.
 
bool isConstant ()
 

Data Fields

Sys_eqs::stype scal
 scalar
 

Constructor & Destructor Documentation

◆ constant_b()

template<typename Sys_eqs , typename grid_type >
FD_scheme< Sys_eqs, grid_type >::constant_b::constant_b ( typename Sys_eqs::stype  scal)
inline

Constrictor from a scalar.

Parameters
scalscalar

Definition at line 150 of file FD_Solver.hpp.

Member Function Documentation

◆ get()

template<typename Sys_eqs , typename grid_type >
Sys_eqs::stype FD_scheme< Sys_eqs, grid_type >::constant_b::get ( grid_dist_key_dx< Sys_eqs::dims > &  key)
inline

Get the b term on a grid point.

Note
It does not matter the grid point it is a scalar
Parameters
keygrid position (unused because it is a constant)
Returns
the scalar

Definition at line 164 of file FD_Solver.hpp.

◆ isConstant()

template<typename Sys_eqs , typename grid_type >
bool FD_scheme< Sys_eqs, grid_type >::constant_b::isConstant ( )
inline

Definition at line 169 of file FD_Solver.hpp.

Field Documentation

◆ scal

template<typename Sys_eqs , typename grid_type >
Sys_eqs::stype FD_scheme< Sys_eqs, grid_type >::constant_b::scal

scalar

Definition at line 143 of file FD_Solver.hpp.


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