Пример #1
0
def solve_1():
    solution1 = Solution()
    ans1 = solution1.calculate_1(3331.2, 2136.8, 151.95)
    return ans1
Пример #2
0
import numpy as np
from CALCULATE_ALL import Solution
import matplotlib.pyplot as plt

plt.rcParams['font.sans-serif'] = ['SimHei']  # 正常显示汉字的操作
plt.rcParams['axes.unicode_minus'] = False  # 用来正常显示负号的操作

solution1 = Solution()
# t1 p1不变,改变p2
nt_1 = solution1.calculate_1(3331.22, 2136.79, 151.95)
nt_2 = solution1.calculate_1(3331.22, 2198.08, 151.95)
nt_3 = solution1.calculate_1(3331.22, 2413.47, 151.95)
nt_4 = solution1.calculate_1(3331.22, 2518.49, 151.95)

print(nt_1)
print(nt_2)
print(nt_3)
print(nt_4)

nt_1 = eval(str(nt_1)[:-1])
nt_2 = eval(str(nt_2)[:-1])
nt_3 = eval(str(nt_3)[:-1])
nt_4 = eval(str(nt_4)[:-1])

p2 = [0.006, 0.01, 0.05, 0.1]
nt_list = [nt_1, nt_2, nt_3, nt_4]
plt.plot(p2, nt_list, marker='o')
plt.title('T1、P1不变时,ηt随终压变化曲线', fontsize=15)
plt.xlabel('终压P2/MPa', fontsize=15)
plt.ylabel('朗肯循环热效率ηt/%', fontsize=15)
plt.xlim(0, 0.12)
Пример #3
0
import numpy as np
from CALCULATE_ALL import Solution
import matplotlib.pyplot as plt

plt.rcParams['font.sans-serif'] = ['SimHei']  # 正常显示汉字的操作
plt.rcParams['axes.unicode_minus'] = False  # 用来正常显示负号的操作

solution1 = Solution()
# t1 p2不变,改变p1
nt_1mpa = solution1.calculate_1(3370.80, 2347.19, 151.95)
nt_2mpa = solution1.calculate_1(3357.83, 2244.16, 151.95)
nt_4mpa = solution1.calculate_1(3331.22, 2136.79, 151.95)
nt_6mpa = solution1.calculate_1(3303.45, 2070.01, 151.95)
nt_8mpa = solution1.calculate_1(3274.30, 2019.51, 151.95)
nt_10mpa = solution1.calculate_1(3243.63, 1977.62, 151.95)
print(nt_1mpa)
print(nt_2mpa)
print(nt_4mpa)
print(nt_6mpa)
print(nt_8mpa)
print(nt_10mpa)
nt_1mpa = eval(str(nt_1mpa)[:-1])
nt_2mpa = eval(str(nt_2mpa)[:-1])
nt_4mpa = eval(str(nt_4mpa)[:-1])
nt_6mpa = eval(str(nt_6mpa)[:-1])
nt_8mpa = eval(str(nt_8mpa)[:-1])
nt_10mpa = eval(str(nt_10mpa)[:-1])

T = [1, 2, 4, 6, 8, 10]
nt_list = [nt_1mpa, nt_2mpa, nt_4mpa, nt_6mpa, nt_8mpa, nt_10mpa]
plt.plot(T, nt_list, marker='o')
Пример #4
0
import numpy as np
from CALCULATE_ALL import Solution
import matplotlib.pyplot as plt

plt.rcParams['font.sans-serif'] = ['SimHei']  # 正常显示汉字的操作
plt.rcParams['axes.unicode_minus'] = False  # 用来正常显示负号的操作

solution1 = Solution()
# p1 p2不变,改变初温
nt_300 = solution1.calculate_1(2962.0, 1959.0, 151.95)
nt_350 = solution1.calculate_1(3095.08, 2027.95, 151.95)
nt_400 = solution1.calculate_1(3215.71, 2085.58, 151.95)
nt_450 = solution1.calculate_1(3331.22, 2136.79, 151.95)
nt_500 = solution1.calculate_1(3444.99, 2183.85, 151.95)
nt_550 = solution1.calculate_1(3558.58, 2227.89, 151.95)
print(nt_300)
print(nt_350)
print(nt_400)
print(nt_450)
print(nt_500)
print(nt_550)
nt_300 = eval(str(nt_300)[:-1])
nt_350 = eval(str(nt_350)[:-1])
nt_400 = eval(str(nt_400)[:-1])
nt_450 = eval(str(nt_450)[:-1])
nt_500 = eval(str(nt_500)[:-1])
nt_550 = eval(str(nt_550)[:-1])

T = [300, 350, 400, 450, 500, 550]
nt_list = [nt_300, nt_350, nt_400, nt_450, nt_500, nt_550]
plt.plot(T, nt_list, marker='o')