I'm currently trying to use Mathematica to solve a problem for my fluid mechanics class. I need to solve the following system of 3 equations:
$$\begin{align*} \dfrac{h}{a} &= \cot \left(\dfrac{h/a}{2m\,/(U_{\infty}a)} \right)\\ \dfrac{L}{a} &= \sqrt{1+\dfrac{2m}{U_{\infty}a}}\\ \dfrac{U_{\mathrm{max}}}{U_{\infty}} &= 1+\dfrac{2m\,/(U_{\infty}a)}{1+\frac{h^2}{a^2}} \end{align*}$$
The following is known:
$$ \dfrac{m}{U_{\infty}\,a}=1 $$
I am trying to find the following:
$$\begin{align*} \dfrac{h}{a} \\\dfrac{L}{a} \\\dfrac{L}{h} \\\dfrac{U_{\mathrm{max}}}{U_{\infty}} \end{align*}$$
I have inserted the equations into Mathematica:
A1 = h/a == Cot[(h/a)/((2*m)/(U*a))] B2 = L/a == Sqrt[1 + ((2*m)/(U*a))] C3 = Umax/U == 1 + (((2*m)/(U*a))/(1 + ((h^2)/(a^2)))) I then set some initial conditions, these should not matter so long as their ratio is 1:
m = 1 a = 1 U = 1 I now have a system of 3 equations with 3 unknowns so I tried solving with 2 methods but I get:
Solve[{A1, B2, C3}, {h, L, Umax}, Reals] Gives me:
This system cannot be solved with the methods available to Solve. Also:
FindInstance[{A1, B2, C3}, {h, L, Umax}, Reals] Gives me:
The methods available to FindInstance are insufficient to find the requested instances or prove they do not exist. I know the answers should give me:
$$\begin{align*} \dfrac{h}{a} &= 1.307\\ \dfrac{L}{a} &= 1.732\\ \dfrac{L}{h} &= 1.326\\ \dfrac{U_{\mathrm{max}}}{U_{\infty}} &= 1.739 \end{align*}$$
How else could I try solving this problem to give me the ratios I need?
Thanks!


FindRoot[{A1, B2, C3}, {{h, 1}, {L, 1}, {Umax, 1}}. $\endgroup$]forFindRoot[]) $\endgroup$Solve[];FindRoot[]with a good starting value does better in those cases. $\endgroup$