FlatFLRWMixin#
- class astropy.cosmology.FlatFLRWMixin(*args, **kw)[源代码]#
-
平面FLRW宇宙学的混合类。
Do NOT instantiate directly. Must precede the base class in the multiple-inheritance so that this mixin's
__init__
proceeds the base class'. Note that all instances ofFlatFLRWMixin
are flat, but not all flat cosmologies are instances ofFlatFLRWMixin
. As example,LambdaCDM
may be flat (for the a specific set of parameter values), butFlatLambdaCDM
will be flat.属性摘要
欧米伽暗能量;z=0时的暗能量密度/临界密度。
总密度;z=0时的总密度/临界密度。
返回
True
,宇宙学是扁平的。返回此宇宙学的等价非平面类实例。
方法总结
Otot
\(Z)红移时的总密度参数
z
。clone
(*[, meta, to_nonflat])按照指定返回此对象的副本以及更新后的参数。
属性文档
- Ode0#
欧米伽暗能量;z=0时的暗能量密度/临界密度。
- Otot0#
总密度;z=0时的总密度/临界密度。
- nonflat#
方法文件
- Otot(z)[源代码]#
红移时的总密度参数
z
。- 参数:
- z : Quantity-like ['redshift'], array_like ,或
Number
类数量 ['redshift'] , 输入红移。
- z : Quantity-like ['redshift'], array_like ,或
- 返回:
- clone(*, meta: Mapping | None = None, to_nonflat: bool = False, **kwargs)#
按照指定返回此对象的副本以及更新后的参数。
这不能用来改变宇宙学的类型,除非改变为这个宇宙学的非平面版本。
- 参数:
- 返回:
- 新宇宙 :
Cosmology
子类实例宇宙子类实例 具有指定的更新参数的此类的新实例。如果没有给出参数,则返回对此对象的引用,而不是复制。
- 新宇宙 :
实例
要制作一份
Planck13
物质密度不同的宇宙学 (Om0
)和一个新名称:>>> from astropy.cosmology import Planck13 >>> Planck13.clone(name="Modified Planck 2013", Om0=0.35) FlatLambdaCDM(name='Modified Planck 2013', H0=<Quantity 67.77 km / (Mpc s)>, Om0=0.35, ...
如果未指定名称,则新名称将注意到修改。
>>> Planck13.clone(Om0=0.35).name 'Planck13 (modified)'
关键字‘to_non Flat’可以用来在非平坦的等价宇宙学上克隆。为
FLRW
宇宙学这意味着Ode0
可以修改:>>> Planck13.clone(to_nonflat=True, Ode0=1) LambdaCDM(name='Planck13 (modified)', H0=<Quantity 67.77 km / (Mpc s)>, Om0=0.30712, Ode0=1.0, ...