Community Profile

photo

ayushman srivastava


Last seen: 4 meses ago Active since 2022

Statistics

  • Thankful Level 2
  • Thankful Level 1

View badges

Content Feed

View by

Question


I have the function and the 1D wave equation i.e. du/dt + c.du/dx=0. I have to solve it using Euler's time step series.
, u(x,o)= exp(-16*(x-0.5)^2.*sin(125.7*x), Given- c=v=wave velocity=1, % Initialization Nx= 480; % x-Grid dx= 3/480; % Ste...

6 meses ago | 0 answers | 0

0

answers

Question


I'm trying to write a MATLAB code to solve the first order 1-D wave equation (transport equation) using the Euler method
% This program describes a moving 1-D wave % using the finite difference method clc close all; %% % Initialization Nx= 48...

8 meses ago | 0 answers | 0

0

answers

Question


How to Solve this “First-order wave equation” using Euler’s time-stepping series to obtain a graph similar to above. Solve this using Runga Kutta time-stepping series also.
% This program describes a moving 1-D wave % using the finite difference method clc close all; %% % Initialization Nx= 48...

8 meses ago | 0 answers | 0

0

answers

Question


how can I write my function in terms of code using Finite difference method (FDM) to obtain these curves at time, t=0 and time, t=2?
% Initialization Nx= 480; % x-Grid dx= 3/480; % Step size x(:,1)= (0:Nx-1)*dx; f= 125.7; % Wave number U(:,1)= -16*(x(:,1...

8 meses ago | 1 answer | 0

1

answer

Question


how can I write this exponential function in MATLAB?
velocity= 1m/s; x= 0 to 3; zeta= 125.7, u(x,0)= u(space, time); u=0.5 from the wave graph

9 meses ago | 1 answer | 0

1

answer