当前位置: 首页>>代码示例>>Python>>正文


Python PureData.__init__方法代码示例

本文整理汇总了Python中CPIncomp.DataObjects.PureData.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python PureData.__init__方法的具体用法?Python PureData.__init__怎么用?Python PureData.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CPIncomp.DataObjects.PureData的用法示例。


在下文中一共展示了PureData.__init__方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from CPIncomp.DataObjects import PureData [as 别名]
# 或者: from CPIncomp.DataObjects.PureData import __init__ [as 别名]
    def __init__(self):
        DigitalData.__init__(self)
        PureData.__init__(self)

        self.name = "HY45"
        self.description = "HyCool 45, Potassium formate"
        self.reference = "Hydro2000"

        self.Tmax =  20 + 273.15
        self.Tmin = -45 + 273.15
        self.TminPsat = self.Tmax
        self.Tbase = 0.00 + 273.15
        self.temperature.data         = self.getTrange()

        self.density.source = self.density.SOURCE_COEFFS
        self.density.type = self.density.INCOMPRESSIBLE_POLYNOMIAL
        self.density.coeffs = np.array([[1328.7],[-0.530754]])

        self.specific_heat.source = self.specific_heat.SOURCE_COEFFS
        self.specific_heat.type = self.specific_heat.INCOMPRESSIBLE_POLYNOMIAL
        self.specific_heat.coeffs = np.array([[2.578],[0.0023]])*1e3

        self.conductivity.source = self.conductivity.SOURCE_COEFFS
        self.conductivity.type = self.conductivity.INCOMPRESSIBLE_POLYNOMIAL
        self.conductivity.coeffs = np.array([[0.4750],[0.001674]])

        key = 'Mu'
        def funcMu(T,x):
            T = (T-self.Tbase)
            mPas = 0.08990*np.exp(479.09/(T+126.55))
            return mPas / 1e3
        self.viscosity.xData,self.viscosity.yData,self.viscosity.data = self.getArray(dataID=key,func=funcMu,x_in=self.temperature.data,y_in=self.concentration.data,DEBUG=self.viscosity.DEBUG)
        self.viscosity.source = self.viscosity.SOURCE_EQUATION
        funcMu = None
开发者ID:rahulagarwal33,项目名称:CoolProp,代码行数:36,代码来源:DigitalFluids.py

示例2: __init__

# 需要导入模块: from CPIncomp.DataObjects import PureData [as 别名]
# 或者: from CPIncomp.DataObjects.PureData import __init__ [as 别名]
    def __init__(self):
        DigitalData.__init__(self)
        PureData.__init__(self)
        
        self.name = "HY50"
        self.description = "HYCOOL 50, Potassium formate"
        self.reference = "Hydro Chemicals"

        self.Tmax =  20 + 273.15
        self.Tmin = -50 + 273.15
        self.TminPsat = self.Tmax
        self.Tbase = 0.00 + 273.15
        self.temperature.data         = self.getTrange()
        
        self.density.source = self.density.SOURCE_COEFFS
        self.density.type = self.density.INCOMPRESSIBLE_POLYNOMIAL
        self.density.coeffs = np.array([[1359.0],[-0.552300]])

        self.specific_heat.source = self.specific_heat.SOURCE_COEFFS
        self.specific_heat.type = self.specific_heat.INCOMPRESSIBLE_POLYNOMIAL
        self.specific_heat.coeffs = np.array([[2.498],[0.0023]])*1e3
        
        self.conductivity.source = self.conductivity.SOURCE_COEFFS
        self.conductivity.type = self.conductivity.INCOMPRESSIBLE_POLYNOMIAL
        self.conductivity.coeffs = np.array([[0.4660],[0.001610]])

        key = 'Mu'
        def funcMu(T,x):
            T = (T-self.Tbase)
            res = 0.0491*np.exp(581.12/(T+129.05))
            if T > -10: return res + 0.2
            else:       return res  
        self.viscosity.xData,self.viscosity.yData,self.viscosity.data = self.getArray(dataID=key,func=funcMu,x_in=self.temperature.data,y_in=self.concentration.data,DEBUG=self.viscosity.DEBUG)
        self.viscosity.source = self.viscosity.SOURCE_EQUATION
        funcMu = None
开发者ID:winterwarlock24,项目名称:CoolProp-1,代码行数:37,代码来源:DigitalFluids.py

示例3: __init__

# 需要导入模块: from CPIncomp.DataObjects import PureData [as 别名]
# 或者: from CPIncomp.DataObjects.PureData import __init__ [as 别名]
    def __init__(self):
        CoefficientData.__init__(self) 
        PureData.__init__(self) 
        self.name = "PMS2"
        self.description = "Polydimethylsiloxan 2. - Syltherm XLT Dow Corning Co."
        self.reference = "Melinder-BOOK-2010"

        self.Tmin = -80.0 + 273.15
        self.Tmax = 100.0 + 273.15
        self.TminPsat =  self.Tmax

        self.density.type = self.density.INCOMPRESSIBLE_POLYNOMIAL
        _,_,self.density.coeffs = IncompressibleFitter.shapeArray(np.array([1155.94,-1.02576]))

        self.specific_heat.type = self.specific_heat.INCOMPRESSIBLE_POLYNOMIAL
        _,_,self.specific_heat.coeffs = IncompressibleFitter.shapeArray(np.array([1153.55,2.10788]))

        self.viscosity.type = self.viscosity.INCOMPRESSIBLE_EXPPOLYNOMIAL
        _,_,self.viscosity.coeffs = IncompressibleFitter.shapeArray(np.array([5.66926,-0.065582,8.09988e-05]))

        self.conductivity.type = self.conductivity.INCOMPRESSIBLE_POLYNOMIAL
        _,_,self.conductivity.coeffs = IncompressibleFitter.shapeArray(np.array([0.000172305,-2.11212e-07]))
        
        self.density.source           = self.density.SOURCE_COEFFS
        self.specific_heat.source     = self.specific_heat.SOURCE_COEFFS
        self.conductivity.source      = self.conductivity.SOURCE_COEFFS
        self.viscosity.source         = self.viscosity.SOURCE_COEFFS
开发者ID:winterwarlock24,项目名称:CoolProp-1,代码行数:29,代码来源:MelinderFluids.py

示例4: __init__

# 需要导入模块: from CPIncomp.DataObjects import PureData [as 别名]
# 或者: from CPIncomp.DataObjects.PureData import __init__ [as 别名]
    def __init__(self):
        CoefficientData.__init__(self)
        PureData.__init__(self)
        self.name        = "NaK"
        self.description = "Nitrate salt, heat transfer fluid based on 60% NaNO3 and 40% KNO3"
        self.reference   = "Zavoico2001"

        self.Tmin        = 300 + 273.15
        self.Tmax        = 600 + 273.15
        self.TminPsat    = self.Tmax

        self.Tbase       = 273.15

        #self.temperature.data         = self.getTrange()
        #self.concentration.data       = np.array([     0 ]) # mass fraction

        self.density.type = self.density.INCOMPRESSIBLE_POLYNOMIAL
        self.density.source = self.density.SOURCE_COEFFS
        self.density.coeffs = np.array([[2090],[-0.636]])

        self.specific_heat.type = self.specific_heat.INCOMPRESSIBLE_POLYNOMIAL
        self.specific_heat.source = self.specific_heat.SOURCE_COEFFS
        self.specific_heat.coeffs = np.array([[1443],[+0.172]])

        self.conductivity.type = self.conductivity.INCOMPRESSIBLE_POLYNOMIAL
        self.conductivity.source = self.conductivity.SOURCE_COEFFS
        self.conductivity.coeffs = np.array([[0.443],[+1.9e-4]])

        self.viscosity.type = self.viscosity.INCOMPRESSIBLE_POLYNOMIAL
        self.viscosity.source = self.viscosity.SOURCE_COEFFS
        self.viscosity.coeffs = np.array([[22.714],[-0.120],[2.281  * 1e-4],[-1.474 * 1e-7]])/1e3
开发者ID:Arik100,项目名称:CoolProp,代码行数:33,代码来源:CoefficientFluids.py

示例5: __init__

# 需要导入模块: from CPIncomp.DataObjects import PureData [as 别名]
# 或者: from CPIncomp.DataObjects.PureData import __init__ [as 别名]
    def __init__(self):
        CoefficientData.__init__(self)
        PureData.__init__(self) 
        self.name        = "NaK" 
        self.description = "NitrateSalt"
        self.reference   = "Solar Power Tower Design Basis Document,  Alexis B. Zavoico, Sandia Labs, USA"
        
        self.Tmin        = 300 + 273.15
        self.Tmax        = 600 + 273.15
        self.TminPsat    = self.Tmax 
        
        self.Tbase       = 273.15
        
        #self.temperature.data         = self.getTrange()
        #self.concentration.data       = np.array([     0 ]) # mass fraction
        
        self.density.type = self.density.INCOMPRESSIBLE_POLYNOMIAL
        self.density.source = self.density.SOURCE_COEFFS
        self.density.coeffs = np.array([[2090],[-0.636]])
        
        self.specific_heat.type = self.specific_heat.INCOMPRESSIBLE_POLYNOMIAL
        self.specific_heat.source = self.specific_heat.SOURCE_COEFFS
        self.specific_heat.coeffs = np.array([[1443],[+0.172]])

        self.conductivity.type = self.conductivity.INCOMPRESSIBLE_POLYNOMIAL
        self.conductivity.source = self.conductivity.SOURCE_COEFFS
        self.conductivity.coeffs = np.array([[0.443],[+1.9e-4]])

        self.viscosity.type = self.viscosity.INCOMPRESSIBLE_POLYNOMIAL
        self.viscosity.source = self.viscosity.SOURCE_COEFFS
        self.viscosity.coeffs = np.array([[22.714],[-0.120],[2.281  * 1e-4],[-1.474 * 1e-7]])/1e3
        
        
开发者ID:winterwarlock24,项目名称:CoolProp-1,代码行数:33,代码来源:CoefficientFluids.py

示例6: __init__

# 需要导入模块: from CPIncomp.DataObjects import PureData [as 别名]
# 或者: from CPIncomp.DataObjects.PureData import __init__ [as 别名]
    def __init__(self):
        DigitalData.__init__(self) 
        PureData.__init__(self) 

        self.name = "ExampleDigitalPure"
        self.description = "water at 100 bar"
        self.reference = "none"
        
        self.Tmin = 280.00;
        self.Tmax = 500.00;

        self.TminPsat = self.Tmin;
        
        self.temperature.data         = self.getTrange()
        self.concentration.data       = self.getxrange()
        
        import CoolProp.CoolProp as CP
        
        def funcD(T,x):
            return CP.PropsSI('D','T',T,'P',1e7,'water')
        def funcC(T,x):
            return CP.PropsSI('C','T',T,'P',1e7,'water')
        def funcL(T,x):
            return CP.PropsSI('L','T',T,'P',1e7,'water')
        def funcV(T,x):
            return CP.PropsSI('V','T',T,'P',1e7,'water')
        def funcP(T,x):
            return CP.PropsSI('P','T',T,'Q',0.0,'water')
        
        self.density.xData,self.density.yData,self.density.data = self.getArray(dataID="D", func=funcD, x_in=self.temperature.data, y_in=self.concentration.data,DEBUG=self.density.DEBUG)
        self.density.source           = self.density.SOURCE_EQUATION

        self.specific_heat.xData,self.specific_heat.yData,self.specific_heat.data = self.getArray(dataID="C", func=funcC, x_in=self.temperature.data, y_in=self.concentration.data,DEBUG=self.specific_heat.DEBUG)
        self.specific_heat.source     = self.specific_heat.SOURCE_EQUATION
        
        self.conductivity.xData,self.conductivity.yData,self.conductivity.data = self.getArray(dataID="L", func=funcL, x_in=self.temperature.data, y_in=self.concentration.data,DEBUG=self.conductivity.DEBUG)
        self.conductivity.source           = self.conductivity.SOURCE_EQUATION
        
        self.viscosity.xData,self.viscosity.yData,self.viscosity.data = self.getArray(dataID="V", func=funcV, x_in=self.temperature.data, y_in=self.concentration.data,DEBUG=self.viscosity.DEBUG)
        self.viscosity.source           = self.viscosity.SOURCE_EQUATION
        
        self.saturation_pressure.xData,self.saturation_pressure.yData,self.saturation_pressure.data = self.getArray(dataID="P", func=funcP, x_in=self.temperature.data, y_in=self.concentration.data,DEBUG=self.saturation_pressure.DEBUG)
        self.saturation_pressure.source           = self.saturation_pressure.SOURCE_EQUATION
开发者ID:winterwarlock24,项目名称:CoolProp-1,代码行数:45,代码来源:ExampleObjects.py


注:本文中的CPIncomp.DataObjects.PureData.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。