{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": false }, "outputs": [ ], "source": [ "# Configure Jupyter so figures appear in the notebook\n", "%matplotlib inline\n", "\n", "# Configure Jupyter to display the assigned value after an assignment\n", "%config InteractiveShell.ast_node_interactivity='last_expr_or_assign'\n", "\n", "# import functions from the modsim library\n", "from modsim import *\n", "\n", "import pandas as pd\n", "import numpy as np\n", "import matplotlib.pyplot as plt\n", "import math" ] }, { "cell_type": "markdown", "metadata": { "collapsed": false }, "source": [ "Question: How does the presence of a adjustable shutter vent affect temperature stability within a greenhouse? This is both a design and an explanatory questions. We are explaining a vents role within the system, which in turn helps for making design decisions. It's an important question, because all over the world people living in cooler climates want to continue gardening during the colder seasons. But, when it warms up it is equally important to make sure there is proper ventilation so that the plants do not overheat." ] }, { "cell_type": "markdown", "metadata": { "collapsed": false }, "source": [ "Methods: In order to answer the question we used various equations representing heat flowing into and leaving the greenhouse. The main heat going in is solar radiation. The outflows of heat are from conduction loses and air infiltration loses. We measured the temperature inside the green house at each timestep. We also changed the value for c which represents opening and closing of the vent at various angles when it started to get too warm inside of the green house." ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": false }, "outputs": [ ], "source": [ "def make_system(Tout):\n", " init = State(Tin= 75)\n", " t_0 = 0\n", " t_end = 24 # in hours\n", " p = 0.8\n", " l = 60\n", " r = 1.43\n", " v = 1550\n", " a= 624\n", " Q = 0\n", " c = 1\n", " Tout = Tout\n", " dt = 2/60 #every 2 minutes\n", " \n", " return System(init=init,Tout=Tout,Q=Q, c=c, t_0=t_0, t_end=t_end, dt= dt, p=p, l=l, r=r, v=v ,a=a)" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/html": [ "
\n", " | values | \n", "
---|---|
init | \n", "Tin 75\n", "dtype: int64 | \n", "
Tout | \n", "55 | \n", "
Q | \n", "0 | \n", "
c | \n", "1 | \n", "
t_0 | \n", "0 | \n", "
t_end | \n", "24 | \n", "
dt | \n", "0.0333333 | \n", "
p | \n", "0.8 | \n", "
l | \n", "60 | \n", "
r | \n", "1.43 | \n", "
v | \n", "1550 | \n", "
a | \n", "624 | \n", "