how do i use fsolve to solve a stream function ?
Mostra commenti meno recenti
I have a stream function and am asked to solve it numerically to
calculate velocity at the x and y co-ordinates and then plot the pressure
co-efficient on a rankin oval. But am unsure of how to use the fsolve function to
solve the stream function .
the code i have so far:
syms U0 x y real
psi = U0*y + 4/2/pi * atan2(y, x+1) - 4/2/pi * atan2 (y, x-1);
v=-diff(psi, x)
u=diff(psi, y)
U0=1
x=-3:0.01:3;
y=-3:0.01:3;
u=eval(u)
v=eval(v)
any help is appreciated.
4 Commenti
Ameer Hamza
il 29 Mar 2020
Can you shows the mathematical form of the equation?
steven hong
il 29 Mar 2020
Thiago Henrique Gomes Lobato
il 29 Mar 2020
Why you need to "solve" the stream function since it is already there? There's nothing to solve. Most likely what was meant was discretize/numeric calculate it, and your code seems fine so far.
steven hong
il 29 Mar 2020
Risposte (0)
Categorie
Scopri di più su Mathematics and Optimization in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

