STEADY STATE: Matlab Code: clear all close all clc %% Initial and Boundary conditions L = 1; nx = 81; ny = nx; dx = L/(nx-1); dy = dx; %w = 1.1; T = 298* ones(nx,ny); T(1,:) = 900; % Bottom (1st row is being counted from bottom) T(:,1) = 400; % Left T(:,end) = 800; % Right T(end,:) = 600; % Top % Corner points T (1,1)…
Argha Saha
updated on 17 Nov 2019
Project Details
Leave a comment
Thanks for choosing to leave a comment. Please keep in mind that all the comments are moderated as per our comment policy, and your email will not be published for privacy reasons. Please leave a personal & meaningful conversation.
Other comments...
Read more Projects by Argha Saha (6)
Symmetry vs Wedge vs HP equation
All the inputs have been discussed in the exercise of the week - 11. For 10 degree angle in symmetry boundary condition, all the samples have been given here. For the rest, these will be almost same. MATLAB Programme to generate block mesh file for 10 degree: clear all close all clc %% Inputs L = 1.5; theta = 10;…
24 Nov 2019 02:00 PM IST
Simulation of Flow through a pipe in OpenFoam
Density of water = 998 kg/m3 Dynamic viscosity of water = 8.90 *10-4 Pa. s Reynolds no = 2100 Let the Diameter = 0.01 m Inlet velocity = 0.1874 m/s Entry length for a laminar pipe is = L = 0.05*Re*D = 1.05 m Therefore for the simulation, a length of 1.5 m has been taken which is greater than the entry length. According…
20 Nov 2019 11:15 PM IST
BlockMesh Drill down challenge
BlockMesh Coding: /*--------------------------------*- C++ -*----------------------------------*\\ ========= | \\\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\\\ / O peration | Website: https://openfoam.org \\\\ / A nd | Version: 7 \\\\/ M anipulation | \\*---------------------------------------------------------------------------*/…
19 Nov 2019 08:41 AM IST
Simulation of a 1D Super-sonic nozzle flow simulation using Macormack Method
Non-Conservative Function: function [rho,v,T,a,x,mach,q,mass_flow,rho_throat,Temp_throat, mach_throat, Pr_throat, m_throat,k] = non_conservative(L,n,nt) x = linspace (0,L,n); dx = x(2)-x(1); gamma = 1.4; %% Initial profiles rho = 1-0.3146*x; %rho =density T = 1- 0.2314*x; %T = temperature v = (0.1 +1.09*x).*T.^0.5; %v…
19 Nov 2019 12:44 AM IST
Steady and unsteady 2D heat conduction problem
STEADY STATE: Matlab Code: clear all close all clc %% Initial and Boundary conditions L = 1; nx = 81; ny = nx; dx = L/(nx-1); dy = dx; %w = 1.1; T = 298* ones(nx,ny); T(1,:) = 900; % Bottom (1st row is being counted from bottom) T(:,1) = 400; % Left T(:,end) = 800; % Right T(end,:) = 600; % Top % Corner points T (1,1)…
17 Nov 2019 02:38 AM IST
Taylor table method and Matlab code
From the Taylor Table method, the fourth-order approximation of second-order derivative has been derived. Central Difference: `(d^2 f)/(dx^2 )=(-0.0833*f(i-2)+1.3333*f(i-1)-2.500*f(i)+1.3333*f(i+1)-0.0833*f(i+2))/dx^2` Skewed Right Side Difference: `(d^2 f)/(dx^2 )=(0.6753*f(i)-0.5977*f(i+1)-1.2586*f(i+2)+1.6092*f(i+3)-0.4282*f(i+4))/dx^2`…
14 Nov 2019 06:40 AM IST