photo

oun alsharif


Last seen: 2 years ago Active since 2021

Followers: 0   Following: 0

Statistics

  • Explorer
  • Thankful Level 1

View badges

Feeds

View by

Question


The function "solver" was closed with an 'end', but at least one other function definition was not. All functions in a script must be closed with an 'end'.
%FVM1D - FOR WET BED PROBLEMS ONLY %by Brett F. Sanders (and pieces of code from Scott F. Bradford) % %This is a very simple ...

3 years ago | 1 answer | 1

1

answer

Question


qustion: i need matlab to generate the eqn1,2,...etc based on boundary condition using the equation: Ui,j=1/4[Ui+1,j+Ui-1,j+Ui,j+1+Ui,j-1]
% SOLVE EXAM % A=U23 , B=U33 , C=U43 , D=U22 , E=U32 , F=U42 syms A B C D E F eqn1= A - 0.25*E == 6.25; eqn2=B-0.25*F-0.25...

3 years ago | 0 answers | 0

0

answers

Question


question about result in matlab
% SOLVE EXAM % A=U23 , B=U33 , C=U43 , D=U22 , E=U32 , F=U42 syms A B C D E F eqn1= A - 0.25*E == 6.25; eqn2=B-0.25*F-0.25...

3 years ago | 2 answers | 0

2

answers

Question


Warning: Matrix is singular to working precision
a=[1, 0, 0, 0, -0.25, 0; 0, 1, 0, -0.25, 0, -0.25; 1, 0, 0, 0, -0.25, 0; 0, -0.25 0, 1, 0, 0; -0.25, 0, -0.25, 0, 1, 0; 0,-0.25,...

3 years ago | 1 answer | 0

1

answer

Question


finite deference for computational hydraulics

3 years ago | 0 answers | 0

0

answers

Question


give me invalid use of operator at U, why?
Nx = 50; x = linspace(0,1,Nx+1); dx = 1/Nx; xmid = 0.5*(x(1:Nx) + x(2:Nx+1)); u = 1; tfinal = 1; CFL = 0.5; dt = CFL*dx/a...

3 years ago | 1 answer | 0

1

answer