Skip to content

Welcome to onedani

This library facilitates educators to help students understand 1D wall conduction problems through a simple 1D visualization animation.

📓 Documentation

Welcome to the documentation! You can find out the capabilities of the library by looking at the Modules section.

📦 Installation

To install the package use:

pip install onedani

To render the animations we use ffmpeg so, make sure it's installed and can run from the path.

🚀 How to use

You can build a simple animation with the following code:

from onedani import animation as ani

# Setup the wall elments, by material, and thickness of each material
wall = ani.onedproblem(
# You can set the time
wall.setup_grid(50,time=30,fps=60) # 30 seconds of 24fps
# Add probed to measure the temperature
# Add probe to measure the heat flux
# Run the 1D problem
# Build the animation

📜 Features

  • Build animations based on simple materials.
  • Specify animation length, we will ensure it will always reach steady state at the end of the time.
  • Add temperature and heat flux probes to show the results on the animation.

👀 Watch out

  • This package is build on a (very) simple numerical solver and schema, this means there will be some numerical error.
  • This is especially true for heat probes:
  • it's reduced by increasing the number of x-nodes
  • or making sure the heat probe is somewhere in the center of a material.

🆕 Versions

Version 0.1

  • Initial public release, the students enjoyed seeing the temperature evolve through the wall.

🙏 Acknowledgement

I would like to the thank Dr. Ralph Evins from the Energy in Cities group for the opportunity to teach in his CIVE 295 - Building Science Fundamentals class. The problem here and the questions from the students resulted in me repurposing some code I made in my PhD to make this animation.