本文整理汇总了Python中CoolProp.CoolProp.get_aliases方法的典型用法代码示例。如果您正苦于以下问题:Python CoolProp.get_aliases方法的具体用法?Python CoolProp.get_aliases怎么用?Python CoolProp.get_aliases使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CoolProp.CoolProp
的用法示例。
在下文中一共展示了CoolProp.get_aliases方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: fluid_header
# 需要导入模块: from CoolProp import CoolProp [as 别名]
# 或者: from CoolProp.CoolProp import get_aliases [as 别名]
def fluid_header(Fluid):
aliases = CP.get_aliases(str(Fluid))
aliases = ', '.join(['``'+a.strip()+'``' for a in aliases])
BTC = BibTeXerClass()
EOSkey = CP.get_BibTeXKey(Fluid, "EOS")
CP0key = CP.get_BibTeXKey(Fluid, "CP0")
SURFACE_TENSIONkey = CP.get_BibTeXKey(Fluid, "SURFACE_TENSION")
VISCOSITYkey = CP.get_BibTeXKey(Fluid, "VISCOSITY")
CONDUCTIVITYkey = CP.get_BibTeXKey(Fluid, "CONDUCTIVITY")
ECS_LENNARD_JONESkey = CP.get_BibTeXKey(Fluid, "ECS_LENNARD_JONES")
ECS_FITSkey = CP.get_BibTeXKey(Fluid, "ECS_FITS")
BibInfo = ''
if EOSkey:
BibInfo += '**Equation of State**: ' + BTC.entry2rst(EOSkey) + '\n\n'
if CP0key:
BibInfo += '**Ideal-Gas Specific Heat**: ' + BTC.entry2rst(CP0key) + '\n\n'
if SURFACE_TENSIONkey:
BibInfo += '**Surface Tension**: ' + BTC.entry2rst(SURFACE_TENSIONkey) + '\n\n'
if VISCOSITYkey:
BibInfo += '**Viscosity**: ' + BTC.entry2rst(VISCOSITYkey) + '\n\n'
if CONDUCTIVITYkey:
BibInfo += '**Conductivity**: ' + BTC.entry2rst(CONDUCTIVITYkey) + '\n\n'
if ECS_LENNARD_JONESkey:
BibInfo += '**Lennard-Jones Parameters for ECS**: ' + BTC.entry2rst(ECS_LENNARD_JONESkey) + '\n\n'
if ECS_FITSkey:
BibInfo += '**ECS Correction Fit**: ' + BTC.entry2rst(ECS_FITSkey) + '\n\n'
return textwrap.dedent(
"""
********************
{Fluid:s}
********************
Aliases
================================================================================
{Aliases:s}
Bibliographic Information
=========================
{Reference:s}
""".format(Fluid=Fluid,
Aliases = aliases,
Reference = BibInfo,
)
)