2021 物理化学实验1:恒温槽的装配与性能测定

本文介绍了2021年度进行的物理化学实验,主要内容涉及恒温槽的正确装配步骤及性能测定方法。通过对实验过程的详细解析,阐述了恒温槽在保持稳定温度环境中的关键作用,并讨论了相关数据的处理和分析,为理解物理化学原理提供了实践基础。
摘要由CSDN通过智能技术生成
#作者:王日睿 
#中国科学技术大学生命科学学院
#2021.11.3
#物理化学实验:恒温槽的装配与性能测定

import numpy as np
import matplotlib.pyplot as plt
import os

def readfile(filename):
    x, y = [], [] 
    file = open(filename, 'r')
    count = 0
    for line in file.readlines():
        count = count + 1
        if count >= 4:
            x.append(int(line[0:4]))
            y.append(float(line[7:len(line)]))
    return x, y


FILE_PATH = "C:\\Users\\29070\\Desktop\\我的笔记\\物化实验\\恒温槽的装配与性能测定\\wangrirui-shiyang1\\wangrirui-shiyang1"
FILE_NAME = os.listdir(FILE_PATH)

time = []
temperature = [] # 按文件名依次储存在time[],和temperature[]里
for file in FILE_NAME:
    x, y = readfile(FILE_PATH + r'\\' + file)
    time.append(x)
    temperature.append(y)

# 作图,观察并切片,舍去无效数据
plt.figure(1)
fig, ax = plt.subplots(4, 2, figsize=(10, 10), dpi=400)

plt.rcParams['font.sans-serif'] = ['SimHei']  # 用来正常显示中文标签
plt.rcParams['axes.unicode_minus'] = False  # 用来正常显示负号

ax[0][0].set_xlabel("time/min")
ax[0][0].set_ylabel("temperature")
ax[0][0].set_title("DTC-125V")
ax[0][0].plot(time[0][30:], temperature[0][30:], color="r")
time[0] = time[0][30:]
temperature[0] = temperature[0][30:]

ax[0][1].set_xlabel("time/min")
ax[0][1].set_ylabel("temperature")
ax[0][1].set_title("DTC-200V")
ax[0][1].plot(time[1][100:1000], temperature[1][100:1000], color="b")
time[1] = time[1][100:1000]
temperature[1] = temperature[1][100:1000]

ax[1][0].set_xlabel("time/min")
ax[1][0].set_ylabel("temperature")
ax[1][0].set_title("继电器-125V")
ax[1][0].plot(time[2][80:],temperature[2][80:],color="g")
time[2] = time[2][80:]
temperature[2] = temperature[2][80:]

ax[1][1].set_xlabel("time/min")
ax[1][1].set_ylabel("temperature")
ax[1][1].set_title("继电器-200V")
ax[1][1].plot(time[3],temperature[3],color="y")

ax[2][0].set_xlabel("time/min")
ax[2][0].set_ylabel("temperature")
ax[2][0].set_title("通冷却水-DTC-200V")
ax[2][0].plot(time[4][760:],temperature[4
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

想摸鱼的生信小白

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值