Skip to content

Latest commit

 

History

History
51 lines (29 loc) · 1.92 KB

File metadata and controls

51 lines (29 loc) · 1.92 KB

FEAScript heatConduction Logo

Heat Conduction Examples

This directory contains Node.js examples demonstrating how to use the FEAScript library to solve steady-state heat conduction problems.

Examples

1. Heat Conduction in a 1D Wall (heatConduction1DWall.js)

This example demonstrates a heat flow case through a building wall.

For detailed information on the model setup, refer to the corresponding tutorial in the FEAScript website.

2. Heat Conduction in a 2D Fin (Standard Mesh) (heatConduction2DFin.js)

Basic implementation using an internally generated structured mesh.

3. Heat Conduction in a 2D Fin (Gmsh Mesh) (heatConduction2DFinGmsh.js)

Implementation using an unstructured mesh generated by Gmsh (the mesh file, rect_quad_unstruct.msh, is also located in the current directory).

For detailed information on the model setup, refer to the corresponding tutorial in the FEAScript website.

4. Heat Conduction in a 2D Rhomboid Fin (Gmsh Mesh) (heatConduction2DRhomFinGmsh.js)

Implementation using a Gmsh-generated mesh for a rhomboid domain (the mesh file, rhom_quad.msh, is also located in the current directory).

For detailed information on the model setup, refer to the corresponding tutorial in the FEAScript website.

Running the Node.js Examples

1. Create package.json with ES module support:

echo '{"type":"module"}' > package.json

2. Install dependencies:

npm install feascript mathjs

3. Run an example:

node heatConduction2DFin.js

(or node heatConduction2DFinGmsh.js / node heatConduction2DRhomFinGmsh.js)