How to use a solver to get the terminal velocity of a sphere.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Niklas Humberg
am 29 Okt. 2024
Kommentiert: Torsten
am 29 Okt. 2024
Hello Everyone,
I need to know the Terminal Velocity of a sphere falling down in an airstream.
The Problem is, that to find die Drag Coefficient for the Sphere you need to know the Reynoldsnumber. And the Reynoldsnumber is dependable on the velocity of the sphere. I already calculated a solution by hand by guessing some inital values to iterate to the correct Reynoldsnumber. But now i want to use a equation that correlates the Drag Coefficient to the Reynoldsnumber and then use a solver which numerically finds the terminal velocity.
Those are the eqations i want to use:
Can i solve this with the fsolve function?
Best regards!
0 Kommentare
Akzeptierte Antwort
Torsten
am 29 Okt. 2024
v0 = fsolve(@fun,1)
function res = fun(v0)
d_p =...;
rho_air = ...;
nu_air = ...;
rho_w = ...;
g = ...;
Re = d_p*v0*rho_air/nu_air;
Cd = 24/Re*(1+(Re^(2/3))/6);
res = v0^2-4*d_p*(rho_w-rho_air)*g/(3*Cd*rho_air);
end
2 Kommentare
Torsten
am 29 Okt. 2024
d_p =...;
rho_air = ...;
nu_air = ...;
rho_w = ...;
g = ...;
v0 = fsolve(@(v0)fun(v0,d_p,rho_air,nu_air,rho_w,g),1)
function res = fun(v0,d_p,rho_air,nu_air,rho_w,g))
Re = d_p*v0*rho_air/nu_air;
Cd = 24/Re*(1+(Re^(2/3))/6);
res = v0^2-4*d_p*(rho_w-rho_air)*g/(3*Cd*rho_air);
end
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Systems of Nonlinear Equations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!