"<module 'utility' from '/home/xia/Documents/PD/calorimetry_laboratory/notebook/utility.py'>"
]
},
"execution_count": 17,
"metadata": {},
"output_type": "display_data"
"output_type": "execute_result"
}
],
"source": [
"# Lösung der Teilaufgabe\n",
"importlib.reload(utility)\n",
"\n",
"# TODO: Plot and save the plot by calling the function.\n",
"\n",
"\n",
"## DONE ##"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"(iV) Metadaten auslesen"
]
},
{
"cell_type": "code",
"execution_count": 18,
"metadata": {},
"outputs": [],
"source": [
"# TODO: Read mass of the water from the metadata of the experiment.\n",
"\n",
"\n",
"## DONE ##"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"(V) Anfangs- und Endwert der Temperatur"
]
},
{
"cell_type": "code",
"execution_count": 19,
"metadata": {},
"outputs": [],
"source": [
"importlib.reload(utility)\n",
"temperature_mix = None\n",
"temperature_start_water = None\n",
"\n",
"\n",
"# TODO: Calling function to get the temperatures for heat capacity calculation.\n",
"\n",
"\n",
"## DONE ##"
]
},
{
"cell_type": "code",
"execution_count": 20,
"metadata": {},
"outputs": [],
"source": [
"temperature_start_sample = None\n",
"\n",
"# TODO: Determine the initial temperature of the sample. \n",
"# Since the temperature of the water bath is stable, the initial temperature of the sample can be taken as the average of the 10 data after the start of the measurement.\n",
"\n",
"\n",
"## DONE ##"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"(Vi) Wärmekapazität bestimmen"
]
},
{
"cell_type": "code",
"execution_count": 21,
"metadata": {},
"outputs": [],
"source": [
"sample_heat_capa = None\n",
"\n",
"# TODO: Calulate specific heat capacity of the sample.\n",
"\n",
"\n",
"## DONE ##\n",
"sample_heat_capa"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Spezifische Wärmekapazität zweiter Probe\n",
"(i) Messdaten aus hdf5-Datei auslesen."
]
},
{
"cell_type": "code",
"execution_count": 22,
"metadata": {},
"outputs": [],
"source": [
"datafile_path_prob2 = None\n",
"\n",
"# TODO: Define the path to hdf5 file, which containing experiment data.\n",
"\n",
"\n",
"## DONE ##"
]
},
{
"cell_type": "code",
"execution_count": 23,
"metadata": {},
"outputs": [],
"source": [
"importlib.reload(utility)\n",
"temperature, time, data_name = np.array([]), np.array([]), np.array([])\n",
"\n",
"# TODO: Call function to get the experiment data out of hdf5\n",
"\n",
"\n",
"## DONE ##"
]
},
{
"cell_type": "code",
"execution_count": 24,
"metadata": {},
"outputs": [],
"source": [
"index_calorimeter = []\n",
"index_bath = []\n",
"index_env = []\n",
"\n",
"# TODO: Get index of sensors in the temperature array for uncertainty calculation and plot.\n",
"# TODO: Calculate the uncertainty of the sensor data by calling the function.\n",
"\n",
"\n",
"## DONE ##"
]
},
{
"cell_type": "code",
"execution_count": 26,
"metadata": {},
"outputs": [],
"source": [
"plot_data = np.concatenate(\n",
" (\n",
" calorimeter_data_with_uncert[None, ...], \n",
" env_data_with_uncert[None, ...], \n",
" heat_data_with_uncert[None, ...]\n",
" )\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"(iii) Ploten"
]
},
{
"cell_type": "code",
"execution_count": 27,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<module 'utility' from '/home/xia/Documents/PD/calorimetry_laboratory/notebook/utility.py'>"
]
},
"execution_count": 27,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"importlib.reload(utility)\n",
"\n",
"# TODO: Plot and save the plot by calling the function.\n",
"\n",
"\n",
"## DONE ##"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"(iV) Metadaten auslesen"
]
},
{
"cell_type": "code",
"execution_count": 28,
"metadata": {},
"outputs": [],
"source": [
"# TODO: Read mass of the water from the metadata of the experiment.\n",
"\n",
"\n",
"## DONE ##"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"(V) Anfangs- und Endwert der Temperatur"
]
},
{
"cell_type": "code",
"execution_count": 29,
"metadata": {},
"outputs": [],
"source": [
"importlib.reload(utility)\n",
"temperature_mix = None\n",
"temperature_start_water = None\n",
"\n",
"\n",
"# TODO: Calling function to get the temperatures for heat capacity calculation.\n",
"\n",
"\n",
"## DONE ##"
]
},
{
"cell_type": "code",
"execution_count": 30,
"metadata": {},
"outputs": [],
"source": [
"temperature_start_sample = None\n",
"\n",
"# TODO: Determine the initial temperature of the sample. \n",
"# Since the temperature of the water bath is stable, the initial temperature of the sample can be taken as the average of the 10 data after the start of the measurement.\n",
"\n",
"\n",
"## DONE ##"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"(Vi) Wärmekapazität bestimmen"
]
},
{
"cell_type": "code",
"execution_count": 31,
"metadata": {},
"outputs": [],
"source": [
"sample_heat_capa = None\n",
"\n",
"# TODO: Calulate specific heat capacity of the sample.\n",
"\n",
"\n",
"## DONE ##\n",
"sample_heat_capa"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Spezifische Wärmekapazität dritter Probe\n",
"(i) Messdaten aus hdf5-Datei auslesen."
]
},
{
"cell_type": "code",
"execution_count": 32,
"metadata": {},
"outputs": [],
"source": [
"datafile_path_prob1 = None\n",
"\n",
"# TODO: Define the path to hdf5 file, which containing experiment data.\n",
"\n",
"\n",
"## DONE ##"
]
},
{
"cell_type": "code",
"execution_count": 33,
"metadata": {},
"outputs": [],
"source": [
"importlib.reload(utility)\n",
"temperature, time, data_name = np.array([]), np.array([]), np.array([])\n",
"\n",
"# TODO: Call function to get the experiment data out of hdf5\n",
"\n",
"\n",
"## DONE ##"
]
},
{
"cell_type": "code",
"execution_count": 34,
"metadata": {},
"outputs": [],
"source": [
"index_calorimeter = []\n",
"index_bath = []\n",
"index_env = []\n",
"\n",
"# TODO: Get index of sensors in the temperature array for uncertainty calculation and plot.\n",
"# TODO: Calculate the uncertainty of the sensor data by calling the function.\n",
"\n",
"\n",
"## DONE ##"
]
},
{
"cell_type": "code",
"execution_count": 36,
"metadata": {},
"outputs": [],
"source": [
"plot_data = np.concatenate(\n",
" (\n",
" calorimeter_data_with_uncert[None, ...], \n",
" env_data_with_uncert[None, ...], \n",
" heat_data_with_uncert[None, ...]\n",
" )\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"(iii) Ploten"
]
},
{
"cell_type": "code",
"execution_count": 37,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<module 'utility' from '/home/xia/Documents/PD/calorimetry_laboratory/notebook/utility.py'>"
]
},
"execution_count": 37,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"importlib.reload(utility)\n",
"\n",
"# TODO: Plot and save the plot by calling the function.\n",
"\n",
"\n",
"## DONE ##"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"(iV) Metadaten auslesen"
]
},
{
"cell_type": "code",
"execution_count": 38,
"metadata": {},
"outputs": [],
"source": [
"# TODO: Read mass of the water from the metadata of the experiment.\n",
"\n",
"\n",
"## DONE ##"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"(V) Anfangs- und Endwert der Temperatur"
]
},
{
"cell_type": "code",
"execution_count": 39,
"metadata": {},
"outputs": [],
"source": [
"importlib.reload(utility)\n",
"temperature_mix = None\n",
"temperature_start_water = None\n",
"\n",
"\n",
"# TODO: Calling function to get the temperatures for heat capacity calculation.\n",
"\n",
"\n",
"## DONE ##"
]
},
{
"cell_type": "code",
"execution_count": 40,
"metadata": {},
"outputs": [],
"source": [
"temperature_start_sample = None\n",
"\n",
"# TODO: Determine the initial temperature of the sample. \n",
"# Since the temperature of the water bath is stable, the initial temperature of the sample can be taken as the average of the 10 data after the start of the measurement.\n",
"\n",
"\n",
"## DONE ##"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"(Vi) Wärmekapazität bestimmen"
]
},
{
"cell_type": "code",
"execution_count": 41,
"metadata": {},
"outputs": [],
"source": [
"sample_heat_capa = None\n",
"\n",
"import pandas as pd\n",
"import matplotlib.pyplot as plt \n",
"# TODO: Calulate specific heat capacity of the sample.\n",
"\n",
"df = pd.DataFrame({'time': [0, 1, 2, 3],\n",
" 'temperature': [15.0, 15.2, 15.3, 15.4]})\n",
"\n",
"plt.plot(df['time'], df['temperature'])\n",
"plt.xlabel('TIME in s')\n",
"plt.ylabel('TEMPERATURE in °C')"
"## DONE ##\n",
"sample_heat_capa"
]
},
{
...
...
@@ -154,7 +946,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.4"
"version": "3.9.18"
},
"orig_nbformat": 4
},
...
...
%% Cell type:markdown id: tags:
# E1: Kalorimetrie
<!-- verstecktes Kommentar -->
Kurzbeschreibung/Abstract
Wichtige Punkte:
- wo liegen Rohdaten
- wo liegen Skripte für Datenerhebung
- welche andere relevante Dateien gibt es und wo liegen sie
# TODO: Call function to get the experiment data out of hdf5
## DONE ##
```
%% Cell type:code id: tags:
``` python
index_calorimeter=[]
index_bath=[]
index_env=[]
# TODO: Get index of sensors in the temperature array for uncertainty calculation and plot.
## DONE ##
```
%% Cell type:markdown id: tags:
(ii) Unsicherheit für Plots bestimmen
%% Cell type:code id: tags:
``` python
importlib.reload(utility)
calorimeter_data_with_uncert=np.array([[],[]])
env_data_with_uncert=np.array([[],[]])
heat_data_with_uncert=np.array([[],[]])
# TODO: Calculate the uncertainty of the sensor data by calling the function.
## DONE ##
```
%% Cell type:code id: tags:
``` python
plot_data=np.concatenate(
(
calorimeter_data_with_uncert[None,...],
env_data_with_uncert[None,...],
heat_data_with_uncert[None,...]
)
)
```
%% Cell type:markdown id: tags:
(iii) Ploten
%% Cell type:code id: tags:
``` python
importlib.reload(utility)
# TODO: Plot and save the plot by calling the function.
## DONE ##
```
%% Output
<module 'utility' from '/home/xia/Documents/PD/calorimetry_laboratory/notebook/utility.py'>
%% Cell type:markdown id: tags:
(iV) Metadaten auslesen
%% Cell type:code id: tags:
``` python
# TODO: Read mass of the water from the metadata of the experiment.
## DONE ##
```
%% Cell type:markdown id: tags:
(V) Anfangs- und Endwert der Temperatur
%% Cell type:code id: tags:
``` python
importlib.reload(utility)
temperature_mix=None
temperature_start_water=None
# TODO: Calling function to get the temperatures for heat capacity calculation.
## DONE ##
```
%% Cell type:code id: tags:
``` python
temperature_start_sample=None
# TODO: Determine the initial temperature of the sample.
# Since the temperature of the water bath is stable, the initial temperature of the sample can be taken as the average of the 10 data after the start of the measurement.
## DONE ##
```
%% Cell type:markdown id: tags:
(Vi) Wärmekapazität bestimmen
%% Cell type:code id: tags:
``` python
sample_heat_capa=None
# TODO: Calulate specific heat capacity of the sample.
## DONE ##
sample_heat_capa
```
%% Cell type:markdown id: tags:
### Spezifische Wärmekapazität zweiter Probe
(i) Messdaten aus hdf5-Datei auslesen.
%% Cell type:code id: tags:
``` python
datafile_path_prob2=None
# TODO: Define the path to hdf5 file, which containing experiment data.
# TODO: Call function to get the experiment data out of hdf5
## DONE ##
```
%% Cell type:code id: tags:
``` python
index_calorimeter=[]
index_bath=[]
index_env=[]
# TODO: Get index of sensors in the temperature array for uncertainty calculation and plot.
## DONE ##
```
%% Cell type:markdown id: tags:
(ii) Unsicherheit für Plots bestimmen
%% Cell type:code id: tags:
``` python
importlib.reload(utility)
calorimeter_data_with_uncert=np.array([[],[]])
env_data_with_uncert=np.array([[],[]])
heat_data_with_uncert=np.array([[],[]])
# TODO: Calculate the uncertainty of the sensor data by calling the function.
## DONE ##
```
%% Cell type:code id: tags:
``` python
plot_data=np.concatenate(
(
calorimeter_data_with_uncert[None,...],
env_data_with_uncert[None,...],
heat_data_with_uncert[None,...]
)
)
```
%% Cell type:markdown id: tags:
(iii) Ploten
%% Cell type:code id: tags:
``` python
importlib.reload(utility)
# TODO: Plot and save the plot by calling the function.
## DONE ##
```
%% Output
<module 'utility' from '/home/xia/Documents/PD/calorimetry_laboratory/notebook/utility.py'>
%% Cell type:markdown id: tags:
(iV) Metadaten auslesen
%% Cell type:code id: tags:
``` python
# TODO: Read mass of the water from the metadata of the experiment.
## DONE ##
```
%% Cell type:markdown id: tags:
(V) Anfangs- und Endwert der Temperatur
%% Cell type:code id: tags:
``` python
importlib.reload(utility)
temperature_mix=None
temperature_start_water=None
# TODO: Calling function to get the temperatures for heat capacity calculation.
## DONE ##
```
%% Cell type:code id: tags:
``` python
temperature_start_sample=None
# TODO: Determine the initial temperature of the sample.
# Since the temperature of the water bath is stable, the initial temperature of the sample can be taken as the average of the 10 data after the start of the measurement.
## DONE ##
```
%% Cell type:markdown id: tags:
(Vi) Wärmekapazität bestimmen
%% Cell type:code id: tags:
``` python
sample_heat_capa=None
# TODO: Calulate specific heat capacity of the sample.
## DONE ##
sample_heat_capa
```
%% Cell type:markdown id: tags:
### Spezifische Wärmekapazität dritter Probe
(i) Messdaten aus hdf5-Datei auslesen.
%% Cell type:code id: tags:
``` python
datafile_path_prob1=None
# TODO: Define the path to hdf5 file, which containing experiment data.
# TODO: Call function to get the experiment data out of hdf5
## DONE ##
```
%% Cell type:code id: tags:
``` python
index_calorimeter=[]
index_bath=[]
index_env=[]
# TODO: Get index of sensors in the temperature array for uncertainty calculation and plot.
## DONE ##
```
%% Cell type:markdown id: tags:
(ii) Unsicherheit für Plots bestimmen
%% Cell type:code id: tags:
``` python
importlib.reload(utility)
calorimeter_data_with_uncert=np.array([[],[]])
env_data_with_uncert=np.array([[],[]])
heat_data_with_uncert=np.array([[],[]])
# TODO: Calculate the uncertainty of the sensor data by calling the function.
## DONE ##
```
%% Cell type:code id: tags:
``` python
plot_data=np.concatenate(
(
calorimeter_data_with_uncert[None,...],
env_data_with_uncert[None,...],
heat_data_with_uncert[None,...]
)
)
```
%% Cell type:markdown id: tags:
(iii) Ploten
%% Cell type:code id: tags:
``` python
importlib.reload(utility)
# TODO: Plot and save the plot by calling the function.
## DONE ##
```
%% Output
<module 'utility' from '/home/xia/Documents/PD/calorimetry_laboratory/notebook/utility.py'>
%% Cell type:markdown id: tags:
(iV) Metadaten auslesen
%% Cell type:code id: tags:
``` python
# TODO: Read mass of the water from the metadata of the experiment.
## DONE ##
```
%% Cell type:markdown id: tags:
(V) Anfangs- und Endwert der Temperatur
%% Cell type:code id: tags:
``` python
importlib.reload(utility)
temperature_mix=None
temperature_start_water=None
# TODO: Calling function to get the temperatures for heat capacity calculation.
## DONE ##
```
%% Cell type:code id: tags:
``` python
temperature_start_sample=None
# TODO: Determine the initial temperature of the sample.
# Since the temperature of the water bath is stable, the initial temperature of the sample can be taken as the average of the 10 data after the start of the measurement.
## DONE ##
```
%% Cell type:markdown id: tags:
(Vi) Wärmekapazität bestimmen
%% Cell type:code id: tags:
``` python
sample_heat_capa=None
# TODO: Calulate specific heat capacity of the sample.
## DONE ##
sample_heat_capa
```
%% Cell type:markdown id: tags:
## Datenverfügbarkeit (title WIP)
- Daten und Metadaten beschreiben inkl. Dateiennamen (wo sie zu finden sind, was sie enthalten etc.)