% Aufgabe_ESA_1b.m
clear all, clc, close all

% Modellparameter
V0=0.001;       % Anfangsvolumen in m^3
Q=1;            % Heizleistung in W
R=287.058;      % spezifische Gaskonstante für Luft in J/(kg*K)
T0=293.15;      % Anfangstemperatur in K
p0=100000;      % Anfangsdruck in Pa
Tsim=200;       % Simulationsdauer in s

% Simulationsparameter und Simulation
sim_opts=simset('Solver','ode5','FixedStep',1e-3);
sim('Aufgabe_ESA_1b_mod',Tsim,sim_opts)

% Darstellen der Simulationsergebnisse
hold on;
grid on;
xlabel('Volumen in m^3');
ylabel('Zeit in s');
