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

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

Detailed Description

template<typename Sys_eqs, typename grid_type>
template<unsigned int prp_id>
struct FD_scheme< Sys_eqs, grid_type >::variable_b< prp_id >

Encapsulation of the b term as constant.

Definition at line 177 of file FD_Solver.hpp.

Public Member Functions

 variable_b (grid_type &grid)
 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

grid_typegrid
 

Constructor & Destructor Documentation

◆ variable_b()

template<typename Sys_eqs , typename grid_type >
template<unsigned int prp_id>
FD_scheme< Sys_eqs, grid_type >::variable_b< prp_id >::variable_b ( grid_type grid)
inline

Constrictor from a scalar.

Parameters
scalscalar

Definition at line 186 of file FD_Solver.hpp.

Member Function Documentation

◆ get()

template<typename Sys_eqs , typename grid_type >
template<unsigned int prp_id>
Sys_eqs::stype FD_scheme< Sys_eqs, grid_type >::variable_b< prp_id >::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 199 of file FD_Solver.hpp.

◆ isConstant()

template<typename Sys_eqs , typename grid_type >
template<unsigned int prp_id>
bool FD_scheme< Sys_eqs, grid_type >::variable_b< prp_id >::isConstant ( )
inline

Definition at line 204 of file FD_Solver.hpp.

Field Documentation

◆ grid

template<typename Sys_eqs , typename grid_type >
template<unsigned int prp_id>
grid_type& FD_scheme< Sys_eqs, grid_type >::variable_b< prp_id >::grid

Definition at line 179 of file FD_Solver.hpp.


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