/thermaljs

Thermal is a simple physics library, performing heat transmittance & condensate calculations.

Primary LanguageTypeScriptMIT LicenseMIT

GitHub license TypeScript

ThermalJS

Thermal is a simple physics library, performing heat transmittance & condensate calculations.
The goal of this project is to provide a library of physics calculations, which can be used in js-based applications for BIM and others.

⚠️This project is wip

Table of Contents

Description

Thermal is a physics library, performing heat transmittance & condensate calculations in building components.
It is written in TypeScript and built with Webpack.
Thermal can be used in both Node.js and the browser.

Features:

  • Heat transfer resistance calculation
  • Glaser procedure to determine condensate

The calculations are based on the following standards:

This software is NOT certified in any way.

Getting Started

Installing

npm install @d4ve-r/thermaljs

Usage

import the functions you need from the library

import { glaser, heatTransferR } from '@d4ve-r/thermaljs';

create a MaterialLayer array of your component

const layer = [
	{depth: 0.01, material: {density: 0, vdr: 15, lambda: 1.0, sd: 0.15}},
	{depth: 0.24,  material: {density:  0, vdr: 5, lambda: 0.7, sd: 1.2}},
	{depth: 0.1,  material: {density: 0, vdr: 5, lambda: 0.04, sd: 0.5}},
	{depth: 0.005, material: {density: 0, vdr: 200, lambda: 0.7, sd: 1}},
];

calculate the heat transfer resistance

const direction = 'side';
const r = heatTransferR(layers, direction);

calculate the condensate

const tempInt = 20;
const tempExt = -10;
const condensate = glaser(layers, tempInt, tempExt, direction);

License

This project is licensed under the MIT License - see the LICENSE file for details.