![]() |
DamBreak++ Wave Simulator 0.3
DamBreak++ Simulation Framework
|
Implementation for nodal variable concept used in our application (use of variadic template). More...
#include <dbpp_NodalTpl.hpp>
Public Types | |
using | index_type = std::tuple_element_t<0, decltype(m_tpl)> |
first tuple element type | |
using | value_type = std::tuple_element_t<1, decltype(m_tpl)> |
Alias (second tuple element type) |
Public Member Functions | |
NodalTpl ()=default | |
default ctor | |
NodalTpl (Params... Prms, bool tied=false) | |
Ctor from values. | |
auto | size () const |
Number of element. | |
auto | nodeXcoord () const |
coordinate | |
auto | Values () const |
Nodal values. | |
auto | nodeNo () const noexcept |
Global node index. | |
std::optional< index_type > | tieNodeIdx () const |
boundary condition | |
auto | isGhostNode () const noexcept |
void | setAsGhostNode () |
Node part of global domain (not computational domain) | |
bool | isGNode () const |
tuple implement '<=>' spaceship operator | |
bool | isTiedNode () const |
auto | operator<=> (const NodalTpl &aOther) const =default |
logical operator ==,!=, <,<=,>,>= data member tuple implement '<=>' spaceship operator |
Public Attributes | |
bool | m_tiedNode { false } |
bool | m_ghostNode { false } |
std::tuple< Params... > | m_tpl |
Implementation for nodal variable concept used in our application (use of variadic template).
Nodal values concept: a node can be represented by a set 2,3,4,... ndf (number degree of freedom) the number of attributes is not constant.
...Params | parameter pack @Usage Example of use: Nodaltpl<unsigned (id), double (x-coord)> 2-element tuple which represent values at node: node no nd x-coordinate |
using dbpp::NodalTpl< Params >::index_type = std::tuple_element_t<0, decltype(m_tpl)> |
first tuple element type
using dbpp::NodalTpl< Params >::value_type = std::tuple_element_t<1, decltype(m_tpl)> |
Alias (second tuple element type)
|
default |
default ctor
|
inline |
Ctor from values.
...Prms | parameter pack |
tied | flag boundary condition |
|
inlinenoexcept |
|
inline |
tuple implement '<=>' spaceship operator
|
inline |
|
inlinenoexcept |
Global node index.
|
inline |
coordinate
|
default |
logical operator ==,!=, <,<=,>,>= data member tuple implement '<=>' spaceship operator
|
inline |
Node part of global domain (not computational domain)
|
inline |
Number of element.
|
inline |
boundary condition
|
inline |
Nodal values.
bool dbpp::NodalTpl< Params >::m_ghostNode { false } |
extra node at far right end
bool dbpp::NodalTpl< Params >::m_tiedNode { false } |
tied node (half-open bondary)
std::tuple<Params...> dbpp::NodalTpl< Params >::m_tpl |
pack expansion