KIDS  ver-0.0.1
KIDS : Kernel Integrated Dynamics Simulator
Loading...
Searching...
No Matches
phys::unitsys Class Reference

#include <phys.h>

Collaboration diagram for phys::unitsys:
Collaboration graph

Public Types

using value_type = real_precision
 
using MatrixType = inner::matrix<value_type, dimension7_size, dimension7_size>
 
using VectorType = inner::matrix<value_type, dimension7_size, 1>
 

Public Member Functions

CONSTEXPR_DECOR unitsys (const uval &u0, const uval &u1, const uval &u2, const uval &u3, const uval &u4, const uval &u5, const uval &u6)
 
non-static functions

1) eval a dimension7 in current unitsys 2) conv a uval to current unitsys

CONSTEXPR_DECOR value_type eval (const dimension7 dim) const
 
CONSTEXPR_DECOR value_type conv (const uval &u)
 

Static Public Member Functions

static functions by calling

phys::us::conv(...)

static CONSTEXPR_DECOR value_type conv (const dimension7 dim, const unitsys &from_us, const unitsys &to_us)
 
static CONSTEXPR_DECOR value_type conv (const uval &u, const unitsys &to_us)
 
static CONSTEXPR_DECOR value_type conv (const unitsys &from_us, const uval &u)
 
static uval parse (const std::string &str)
 
static value_type conv (const std::string &str, const unitsys &to_us)
 Coverting string-style unit [dimension7 used] to a unit system.
 
static value_type conv (const unitsys &from_us, const std::string &str)
 Coverting unit system to a string-style unit [dimension7 used].
 
static value_type as (const dimension7 dim, const uval &u, const unitsys &us)
 convert different quantities based on energy equivalence priciples [E] = [M]* c^2 = h / [T] = h * c / [L] = kB * [Q] //! not hb but h
 
static value_type as (const dimension7 dim, const std::string &str, const unitsys &us)
 

Public Attributes

std::array< uval, dimension7_sizeunits
 
MatrixType invA
 
value_type _c
 
value_type _h
 
value_type _hb
 
value_type _ke
 
value_type _me
 
value_type _e
 
value_type _k
 
value_type _N
 
value_type _G
 

Detailed Description

Definition at line 719 of file phys.h.

Member Typedef Documentation

◆ MatrixType

◆ value_type

Definition at line 721 of file phys.h.

◆ VectorType

Definition at line 725 of file phys.h.

Constructor & Destructor Documentation

◆ unitsys()

CONSTEXPR_DECOR phys::unitsys::unitsys ( const uval & u0,
const uval & u1,
const uval & u2,
const uval & u3,
const uval & u4,
const uval & u5,
const uval & u6 )
inlineexplicit

Definition at line 730 of file phys.h.

Member Function Documentation

◆ as() [1/2]

static value_type phys::unitsys::as ( const dimension7 dim,
const std::string & str,
const unitsys & us )
inlinestatic

Definition at line 864 of file phys.h.

References as(), and parse().

Here is the call graph for this function:

◆ as() [2/2]

static value_type phys::unitsys::as ( const dimension7 dim,
const uval & u,
const unitsys & us )
inlinestatic

convert different quantities based on energy equivalence priciples [E] = [M]* c^2 = h / [T] = h * c / [L] = kB * [Q] //! not hb but h

Definition at line 842 of file phys.h.

References _c, phys::dimensions< T, N >::_data, _h, _k, _N, conv(), phys::uval::dim, and phys::reduce_l_energy().

Referenced by as().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ conv() [1/6]

static CONSTEXPR_DECOR value_type phys::unitsys::conv ( const dimension7 dim,
const unitsys & from_us,
const unitsys & to_us )
inlinestatic

Definition at line 780 of file phys.h.

References eval().

Here is the call graph for this function:

◆ conv() [2/6]

static value_type phys::unitsys::conv ( const std::string & str,
const unitsys & to_us )
inlinestatic

Coverting string-style unit [dimension7 used] to a unit system.

Definition at line 833 of file phys.h.

References conv(), and parse().

Referenced by conv().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ conv() [3/6]

static value_type phys::unitsys::conv ( const unitsys & from_us,
const std::string & str )
inlinestatic

Coverting unit system to a string-style unit [dimension7 used].

Definition at line 837 of file phys.h.

References conv(), and parse().

Referenced by conv().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ conv() [4/6]

static CONSTEXPR_DECOR value_type phys::unitsys::conv ( const unitsys & from_us,
const uval & u )
inlinestatic

Definition at line 786 of file phys.h.

References phys::uval::dim, eval(), and phys::uval::value.

Here is the call graph for this function:

◆ conv() [5/6]

CONSTEXPR_DECOR value_type phys::unitsys::conv ( const uval & u)
inline

Definition at line 772 of file phys.h.

References phys::uval::dim, eval(), and phys::uval::value.

Referenced by as(), PROJECT_NS::Model_Bath::setInputDataSet_impl(), PROJECT_NS::Model_LVCM::setInputDataSet_impl(), PROJECT_NS::Model_NAD1D::setInputDataSet_impl(), and PROJECT_NS::Model_SystemBath::setInputDataSet_impl().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ conv() [6/6]

static CONSTEXPR_DECOR value_type phys::unitsys::conv ( const uval & u,
const unitsys & to_us )
inlinestatic

Definition at line 783 of file phys.h.

References phys::uval::dim, eval(), and phys::uval::value.

Here is the call graph for this function:

◆ eval()

CONSTEXPR_DECOR value_type phys::unitsys::eval ( const dimension7 dim) const
inline

Definition at line 764 of file phys.h.

References phys::dimensions< T, N >::_data, phys::inner::matrix< T, M, N >::_data, phys::dimension7_size, invA, phys::inner::matmul(), phys::inner::pow(), units, and value().

Referenced by conv(), conv(), conv(), and conv().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse()

static uval phys::unitsys::parse ( const std::string & str)
inlinestatic

Member Data Documentation

◆ _c

value_type phys::unitsys::_c

Definition at line 728 of file phys.h.

Referenced by as().

◆ _e

value_type phys::unitsys::_e

Definition at line 728 of file phys.h.

◆ _G

value_type phys::unitsys::_G

Definition at line 728 of file phys.h.

◆ _h

value_type phys::unitsys::_h

Definition at line 728 of file phys.h.

Referenced by as().

◆ _hb

value_type phys::unitsys::_hb

Definition at line 728 of file phys.h.

◆ _k

value_type phys::unitsys::_k

Definition at line 728 of file phys.h.

Referenced by as().

◆ _ke

value_type phys::unitsys::_ke

Definition at line 728 of file phys.h.

◆ _me

value_type phys::unitsys::_me

Definition at line 728 of file phys.h.

◆ _N

value_type phys::unitsys::_N

Definition at line 728 of file phys.h.

Referenced by as().

◆ invA

MatrixType phys::unitsys::invA

Definition at line 726 of file phys.h.

Referenced by eval().

◆ units

std::array<uval, dimension7_size> phys::unitsys::units

Definition at line 723 of file phys.h.

Referenced by eval().


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