本文整理汇总了Python中CPIncomp.DataObjects.CoefficientData类的典型用法代码示例。如果您正苦于以下问题:Python CoefficientData类的具体用法?Python CoefficientData怎么用?Python CoefficientData使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CoefficientData类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self):
CoefficientData.__init__(self)
PureData.__init__(self)
self.name = "HCB"
self.description = "Hydrocarbon blend - Dynalene MV"
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([1071.78,-0.772024]))
self.specific_heat.type = self.specific_heat.INCOMPRESSIBLE_POLYNOMIAL
_,_,self.specific_heat.coeffs = IncompressibleFitter.shapeArray(np.array([761.393,3.52976]))
self.viscosity.type = self.viscosity.INCOMPRESSIBLE_EXPPOLYNOMIAL
_,_,self.viscosity.coeffs = IncompressibleFitter.shapeArray(np.array([7.16819,-0.0863212,0.000130604]))
self.conductivity.type = self.conductivity.INCOMPRESSIBLE_POLYNOMIAL
_,_,self.conductivity.coeffs = IncompressibleFitter.shapeArray(np.array([0.000203186,-2.3869e-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
示例2: __init__
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
示例3: __init__
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
示例4: __init__
def __init__(self):
CoefficientData.__init__(self)
self.name = "ExampleSecCool"
self.description = "Methanol solution"
#self.reference = "SecCool software"
self.Tmax = 20 + 273.15
self.Tmin = -50 + 273.15
self.xmax = 0.5
self.xmin = 0.0
self.xid = self.ifrac_mass
self.TminPsat = 20 + 273.15
self.Tbase = -4.48 + 273.15
self.xbase = 31.57 / 100.0
self.density.type = self.density.INCOMPRESSIBLE_POLYNOMIAL
self.density.coeffs = self.convertSecCoolArray(np.array([
960.24665800,
-1.2903839100,
-0.0161042520,
-0.0001969888,
1.131559E-05,
9.181999E-08,
-0.4020348270,
-0.0162463989,
0.0001623301,
4.367343E-06,
1.199000E-08,
-0.0025204776,
0.0001101514,
-2.320217E-07,
7.794999E-08,
9.937483E-06,
-1.346886E-06,
4.141999E-08]))
self.specific_heat.type = self.specific_heat.INCOMPRESSIBLE_POLYNOMIAL
self.specific_heat.coeffs = self.convertSecCoolArray(np.array([
3822.9712300,
-23.122409500,
0.0678775826,
0.0022413893,
-0.0003045332,
-4.758000E-06,
2.3501449500,
0.1788839410,
0.0006828000,
0.0002101166,
-9.812000E-06,
-0.0004724176,
-0.0003317949,
0.0001002032,
-5.306000E-06,
4.242194E-05,
2.347190E-05,
-1.894000E-06]))
self.conductivity.type = self.conductivity.INCOMPRESSIBLE_POLYNOMIAL
self.conductivity.coeffs = self.convertSecCoolArray(np.array([
0.4082066700,
-0.0039816870,
1.583368E-05,
-3.552049E-07,
-9.884176E-10,
4.460000E-10,
0.0006629321,
-2.686475E-05,
9.039150E-07,
-2.128257E-08,
-5.562000E-10,
3.685975E-07,
7.188416E-08,
-1.041773E-08,
2.278001E-10,
4.703395E-08,
7.612361E-11,
-2.734000E-10]))
self.viscosity.type = self.viscosity.INCOMPRESSIBLE_EXPPOLYNOMIAL
self.viscosity.coeffs = self.convertSecCoolArray(np.array([
1.4725525500,
0.0022218998,
-0.0004406139,
6.047984E-06,
-1.954730E-07,
-2.372000E-09,
-0.0411841566,
0.0001784479,
-3.564413E-06,
4.064671E-08,
1.915000E-08,
0.0002572862,
-9.226343E-07,
-2.178577E-08,
-9.529999E-10,
-1.699844E-06,
-1.023552E-07,
4.482000E-09]))
#.........这里部分代码省略.........