Community Profile

photo

Nishee Agrawal


Last seen: mehr als ein Jahr vor Aktiv seit 2021

Followers: 0   Following: 0

Statistiken

Feeds

Anzeigen nach

Frage


have to implement 1-D heat equation using FTCS my code isnt getting the figure i need ?
Clc;close all %Initialiazing the Heat Equation %Defining the constants and initial conditions X0 = 0; X = 2; %maximum length ...

mehr als 2 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


I have to solve 1d heat equation using ftcs with given boundry condition. u(0,t)=0, u(l,t)=0 u(x,0) = f(x) but i cannot understand how to use my this in for loop .
f(x)=100; %given value of function h = 0.1;% given value of step size k = 0.01;%given value of time-step size alpha = 0.25;...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort