NonDimensionalPhysicalConstant
planck.models.NonDimensionalPhysicalConstant
ยค
NonDimensionalPhysicalConstant(symbol, name=None, value=None)
Bases: float
Parameters:
Name | Type | Description | Default |
---|---|---|---|
symbol
|
str
|
Constant symbol |
required |
name
|
str
|
Constant name |
None
|
value
|
float
|
Constant value |
None
|
Examples:
from planck import models
const = models.NonDimensionalPhysicalConstant(
"gamma_air", "Ratio of specific heats (cp/cv) for air", 1.4
)
print(const)
'''
Ratio of specific heats (cp/cv) for air [gamma_air]:
1.4
'''
Source code in planck/models/nondimensionalphysicalconstant.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
|