I would like to plot the streamline function for the two-dimensional flow with only one non-zero velocity component ($v_x, v_y=0$). I have seen the comparable question, which has been asked here, but I want to get a more precise answer provided by accurate calculus.
So, imagine that we have a Couette Flow, the law is $v_x=C y$, where $C$ is a constant, let it be $C=1$ for the sake of simplicity.
Now, supposing that the flow is incompressible, we have: $$\frac{\partial v_x}{\partial x}+\frac{\partial v_y}{\partial y}=0$$ and streamline function is defined as: $$v_x=-\frac{\partial \psi}{\partial y}, v_y=\frac{\partial \psi}{\partial x}$$
Integrating over this two terms, we get:
$$\psi=-\frac{y^2}{2}+f(x), \psi=Const+g(y)+C_1.$$
$C_1$ is an arbitrary constant, and we can set it to zero, so $C_1=0$, now equating it to one another: $$-\frac{y^2}{2}+f(x)=Const+g(y),$$ we get $g(y)=-\frac{y^2}{2}, f(x)=Const$, so if I am not mistaken, the streamfunction is equal to
$$\psi=-\frac{y^2}{2}+Const.$$
My questions are:
- How to find a $Const$ ?
- There is no dependency for $x$. How can I plot the streamline function, to see the actual flow?
Any help will be greatly appreciated! Thank you in advance!
First, $Const + C_1$? What is the point of having two constants? Where did the second one come from? Of course, you immediately say you can just set $C_1 = 0$, which is true only because there is a second constant to roll its value into. But, why did you introduce it in the first place?
A more straightforward approach to this is after deriving $\psi = -\frac{y^2}2 + f(x)$, you differentiate that expression for $\psi$ with respect to $x$: $$\frac{\partial \psi}{\partial x} = f'(x)$$ and since you know $\frac{\partial \psi}{\partial x} = v_y = 0$, you get $f'(x) = 0$ and thus $f(x) = Const$.
But still, it leads you to the same place. So as for your questions:
The constant is going to be determined by your boundary conditions. Each constant gives you a solution to the general problem without conditions. The additional conditions tell you which solution is appropriate for your specific problem.Edit: RRL is correct. I was mixing up with solving general PDEs.