Skip to content

The repository contains codes that I wrote while practicing OOP.

Notifications You must be signed in to change notification settings

mehulbakhshi02/FDM_CPP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FDM_C++

The repository contains codes that I wrote while practicing OOP. Following are the description along with some results of different files.

FDM.cpp

The code solves the ODE dn/dt=-an analytically and using Finite Difference Method (forward differencing). It also calculates the absolute error between the two. Following graph shows the values calculated by two methods. Screenshot from 2023-10-07 16-49-27

FDMMethod.cpp

The code solves the ODE dn/dt=-an using central differencing, forward differencing and backward differencing methods.

1DHT.cpp

The code determines steady state temperature distribution in a fin as shown in below. Screenshot from 2023-10-07 15-30-02

The code uses FDM with Drichelt and Neumann Boundary Conditions at the two ends. The below graph shows temperature distribution across the fin. Screenshot from 2023-10-07 16-59-55

gauss_seidel.cpp

The code solves Ax=b using the gauss-seidel method.

About

The repository contains codes that I wrote while practicing OOP.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages