This lesson is in the early stages of development (Alpha version)

Design Principles Application

Overview

Teaching: 0 min
Exercises: 0 min
Questions
  • What are some ways of using these principles

Objectives
  • Work through a simple example

Example 1 – Problem Description

We have a house with exterior walls made of single material of thickness Lx. The wall has some water pipes shown in the picture. The inside temperature is kept at 70 degrees. But outside temperature is expected to be -40 degrees for 15.5 hours.

The question we are trying to answer is – will the pipes freeze before the storm is over

In general, heat conduction is governed by the partial differential (PDE)…

   
(1)

where u is the temperature at spatial positions, x, and times, t, is the thermal diffusivity of the homogeneous material through which heat is flowing. This partial differential equation (PDE) is known as the Diffusion Equation and also the Heat Equation.

Simplifying Assumptions

To make the problem tractable for this lesson, we make some simplifying assumptions…

  1. The thermal diffusivity, , is constant for all space and time.
  2. The only heat source is from the initial and/or boundary conditions.
  3. We will deal only with the one dimensional problem in Cartesian coordinates.

In this case, the PDE our application needs to solve simplifies to…

   
(2)

The code in the repository has three different numerical algorithms

We will work through one of them – FTCS

Requirement gathering

Decomposition

Connectivity

Connectivity – Alternative Possibility

Key Points

  • Understanding process of software design with a simple application