dwhoff / pipe-flow-thermal-solver

Numerical heat transfer code for internal flows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pipe Flow Thermal Solver

This repository solves heat transfer problems in pipe flows. The user may specify a variety of geometries, flow conditions, and thermal boundary condition. The output includes the wall temperature, bulk fluid temperature, and heat flux distributions in the streamwise direction. A description of the main settings is given below.

Setting Options Description
fluid 'air', 'water', 'user defined' Defines the fluid object for property look-up in Cantera.
Fluid properties may be specified manually if 'user defined' is chosen.
shape 'round', 'rectangle' Defines the shape of the pipe wall.
BC 'prescribed temp', 'conjugate' Defines the type of boundary condition used for the internal fluid.
wall_conduction 'thin', 'thick' Defines the type of discretization used in the solid domain.
This setting only applies when BC = 'conjugate'.
transient true, false Toggles steady/unsteady analysis.
This setting only applies when BC = 'conjugate'.
radiation true, false Toggles radiation effects on the outer pipe wall.
This setting only applies when BC = 'conjugate'.
write true, false Toggles option to write data to text file.

To run this code

You will need MATLAB to run this code as well as a compatible version of Cantera in order to support fluid property look-ups. Alternatively, you may skip the Cantera installation, but be sure to set the "fluid" variable to 'user defined' or else the code will not run. In this case you will be prompted to enter the fluid properties manually. Once all of the code in the repository have been downloaded to a single directory, the "main.m" script should be executed.

General

Based on graduate course at Stanford University, ME352C: Convective Heat Transfer

Author: Davis W. Hoffman (email: dwhoff@stanford.edu)
Last modified: 02/18/2021
Developed and tested in MATLAB R2020b

About

Numerical heat transfer code for internal flows


Languages

Language:MATLAB 100.0%