Giter Site home page Giter Site logo

numericalmethods's Introduction

numericalmethods

This is a repository for a project using finite difference methods in MATLAB that solves the spherical 1D heat equation for a spherical pressure vessel.

There are 9 different MATLAB .m files in this repository. There is also a folder for the figures that were generated with the code. I have also created a separate repository called "numericalmethods-LaTex" to house the LaTex files and the report for this project. You can download everything here and use it as you would like (https://github.com/tonybkjr/numericalmethods-LaTex). Here is the link to the report itself: https://github.com/tonybkjr/numericalmethods-LaTex/blob/main/One_Dimensional_Uncoupled_Thermoelastic_Response_of_a_Spherical_Pressure_Vessel_to_an_Internal_Wall_Heat_Source.pdf.

Functions

The main file is called "OneD_CylindricalHeatConduction_Martin.m" and houses all of the main information for variables etc. There are 8 functions called within the main file and are given below:

  1.  mesh_space_Martin.m	(This creates the spatial mesh for the analysis)
    
  2.  mesh_temporal_Martin.m (This creates the temporal mesh for the analysis). 
    
  3.  Index_Locator_Martin.m (This locates the indices for various values needed in the analysis).
    
  4.  solver_Temp_Martin.m (This does the numerical solving for temperature distributions and the matrix).
    
  5.  solver_Stress_Martin.m (This numerically solves the stress matrix).
    
  6.  solver_Displ_Martin.m (This numerical solves the displacement matrix).
    
  7.  plot_temp_Martin.m (This plots the various temperature distributions).
    
  8.  plot_Stress_Displ_Martin.m (This plots the various stresses and displacements).
    

This analysis incorporated various finited-difference schemes, all second order. Since the transient response was analyzed, an implicit BTCS method was used (the report can shed more light on the details). Most of the files have good commenting, however, there are some functions where commenting was left to a minimum. I can shed light on the details for these functions if needed.

Figures

Below are various figures that the MATLAB code will display after the main script has ran. They can also be found in the REPORT for a more detailed explanation.



Temperature distribution throughout the pressure vessel at various times, starting at 10 s and going to 10,000 s.



You can see that the temperature at the inner radius, which is closer to the heat source, increases much faster than the temperature of the outer radius.



Displacement at various radii over time. The outer radius expands significantly more than the inner radial locations.

Other Figures

numericalmethods's People

Contributors

tonybkjr avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.