Skip to content

alarshi/2D-Heat-Convection-by-FDM

 
 

Repository files navigation

# This file is to introduce some basic ideas of the term project for Programming Tools class
#
# Project Name: 2D heat convection by FDM
# Purpose: using finnite difference method to compute 2D heat convection in a rectangular box from temperature difference
# Contributers: Arushi Saxena, (github ID: alarshi) 
#               Hao Lu, (github ID: luh1202) 
#		Jia Zhang, (github ID: jzhang1091)
# Collaborators: Ricardo Taborda, (github ID: ricardotaborda)
#
# Input:1. Parameters of density, rou;
#                        viscosity, vo;
#			 diffusivity, k;
#			 expansion coefficient,a;
#       2. Boundary conditions: Pressure distribution, Px;
#	                        Temperature distribution, T;
#       3. Initial conditions: velocity along x axis: Vx;
#	                       velocity along y axis: Vy;			   
# Output: The final temperature distribution T'; 
#         pressure distribution Px'; 
#	  2D velocity field Vx', Vy'; 
#
# The C++ package will contain a main.cpp file, several sub-functions files and input file: parameters.in; 
# Functions: main.cpp: call all the sub-functions and do the numerical calculation;
#            readin.cpp: read the input values from parameters.in;
#            calmesh.cpp: calculate mesh pionts in x and y direction;
#            calini.cpp: calculate initial filed values using recursion;
#            caltimstep.cpp: calculate stable time step;
#            dofdm.cpp: using finite difference method to do the calculation;
#            output.cpp: write the outcome to output file;
#            ... other functions to be decided;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 98.8%
  • Makefile 1.2%