Damping< FP, S > Class Template Reference
|
CPP API
|
represent interventions or effects that affect contact frequencies between multiple groups. More...
#include <damping.h>
Public Types | |
| using | Base = std::tuple< Matrix, DampingLevel, DampingType, SimulationTime< FP > > |
| using | Matrix = typename Shape::Matrix |
| using | Shape = S |
Public Member Functions | |
| template<class ME > | |
| Damping (const Eigen::MatrixBase< ME > &m, DampingLevel level, DampingType type, SimulationTime< FP > t) | |
| create a Damping. More... | |
| template<class ME > | |
| Damping (const Eigen::MatrixBase< ME > &m, SimulationTime< FP > t) | |
| create a Damping at level and type zero More... | |
| template<class... T> | |
| requires std::is_constructible_v< Shape, T... > | Damping (FP d, DampingLevel level, DampingType type, SimulationTime< FP > t, T... shape_args) |
| create a Damping with constant coefficients. More... | |
| template<class... T> | |
| requires std::is_constructible_v< Shape, T... > | Damping (FP d, SimulationTime< FP > t, T... shape_args) |
| create a Damping with constant coefficients and zero level and type. More... | |
| template<class... T> | |
| requires std::is_constructible_v< Shape, T... > | Damping (T... shape_args) |
| create a default Damping. More... | |
| Matrix & | get_coeffs () |
| const Matrix & | get_coeffs () const |
| the coefficients of this damping. More... | |
| DampingLevel & | get_level () |
| the level of this damping. More... | |
| const DampingLevel & | get_level () const |
| Shape | get_shape () const |
| shape of the damping matrix. More... | |
| SimulationTime< FP > & | get_time () |
| the time this damping becomes active. More... | |
| const SimulationTime< FP > & | get_time () const |
| DampingType & | get_type () |
| the type of this damping. More... | |
| const DampingType & | get_type () const |
| template<class IOContext > | |
| void | serialize (IOContext &io) const |
| serialize this. More... | |
Static Public Member Functions | |
| template<class IOContext > | |
| static IOResult< Damping > | deserialize (IOContext &io) |
| deserialize an object of this class. More... | |
Friends | |
| void | PrintTo (const Damping &self, std::ostream *os) |
| GTest printer. More... | |
Detailed Description
template<typename FP, class S>
class mio::Damping< FP, S >
represent interventions or effects that affect contact frequencies between multiple groups.
Dampings have a level and a type and are active from a certain point in time forward. Dampings are square matrix valued, coefficient d_ij affects the contacts from group i to group j.
- Template Parameters
-
FP Floating point type, e.g., double S Matrix shape type
Member Typedef Documentation
◆ Base
| using mio::Damping< FP, S >::Base = std::tuple<Matrix, DampingLevel, DampingType, SimulationTime<FP> > |
◆ Matrix
| using mio::Damping< FP, S >::Matrix = typename Shape::Matrix |
◆ Shape
| using mio::Damping< FP, S >::Shape = S |
Constructor & Destructor Documentation
◆ Damping() [1/5]
|
inlineexplicit |
create a default Damping.
- Parameters
-
shape_args arguments to construct the shape of the damping matrix (can be Shape itself, copy ctor)
- Template Parameters
-
T constructor arguments of Damping::Shape.
◆ Damping() [2/5]
|
inline |
create a Damping.
- Parameters
-
m matrix of damping coefficients level damping level type damping type t time at which the damping becomes active
- Template Parameters
-
ME matrix expression, must be compatible with Shape
◆ Damping() [3/5]
|
inline |
create a Damping with constant coefficients.
- Parameters
-
shape_args arguments to construct the shape of the damping matrix (can be Shape itself, copy ctor) d damping coefficient for all groups. level damping level type damping type t time at which the damping becomes active
- Template Parameters
-
T Shape constructor arguments.
◆ Damping() [4/5]
|
inline |
create a Damping at level and type zero
- Parameters
-
m damping coefficients t time at which the damping becomes active
- Template Parameters
-
ME matrix expression, must be compatible with Damping::Matrix
◆ Damping() [5/5]
|
inline |
create a Damping with constant coefficients and zero level and type.
- Parameters
-
shape_args arguments to construct the shape of the damping matrix (can be Shape itself, copy ctor) d damping coefficient for all groups. t time at which the damping becomes active
- Template Parameters
-
T Shape constructor arguments.
Member Function Documentation
◆ deserialize()
|
inlinestatic |
deserialize an object of this class.
- See also
- mio::deserialize
◆ get_coeffs() [1/2]
|
inline |
◆ get_coeffs() [2/2]
|
inline |
the coefficients of this damping.
◆ get_level() [1/2]
|
inline |
the level of this damping.
◆ get_level() [2/2]
|
inline |
◆ get_shape()
|
inline |
shape of the damping matrix.
◆ get_time() [1/2]
|
inline |
the time this damping becomes active.
◆ get_time() [2/2]
|
inline |
◆ get_type() [1/2]
|
inline |
the type of this damping.
◆ get_type() [2/2]
|
inline |
◆ serialize()
|
inline |
serialize this.
- See also
- mio::serialize
Friends And Related Function Documentation
◆ PrintTo
|
friend |
GTest printer.
Generated by