CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CFX (http://www.cfd-online.com/Forums/cfx/)
-   -   Inviscid flow (http://www.cfd-online.com/Forums/cfx/19390-inviscid-flow.html)

 Atit Koonsrisuk December 24, 2002 06:15

Inviscid flow

I was wondering. How can we set the flow as the inviscid flow? When we define "Fluid Domain", in "Fluid Editor", we will find 'Properties". If I set the "Dynamic Viscosity" in this "Properties" form to zero, are all behaviors of this flow inviscid? Thank you very much.

Atit

 Neale December 24, 2002 12:45

Re: Inviscid flow

Atit,

Yep, that's usually the way, but don't use zero that could be nasty. Just use something really small, say 1.0E-10 or less.

Neale

 Atit Koonsrisuk December 25, 2002 15:31

Re: Inviscid flow

If we just set the boundary condition at the wall as 'No-slip". Is that enough? Thank you very much.

Atit

 Jan Rusås December 25, 2002 16:01

Re: Inviscid flow

I do think that it is necessary to do both thing, else it is meaningless :))) Jan

 Atit Koonsrisuk December 25, 2002 16:40

Re: Inviscid flow

Sorry it is the typo. I have to type 'Free Slip', not 'No-Slip.

Atit

 Robin December 28, 2002 00:22

Re: Inviscid flow

It should be enough to set your walls to free slip and select Laminar flow. Don't define your viscosity to be very small or you will have severe convergence problems. Leave the viscosity of the fluid as it should be. As your solution converges, viscous effects will disappear.

I have done this to compare to inviscid airfoil calculations and it works well. Just keep in mind, however, that this is still a viscous code.

Regards, Robin

 Atit Koonsrisuk December 28, 2002 10:01

Re: Inviscid flow

Thank you very much. Your suggestion is invaluable.

Atit.

 Jan Rusås December 28, 2002 15:38

Re: Inviscid flow

I do not completely agree with you Robin, I have used this approach for many years ago, so my memory might be a little rusty, but I do believe that the viscosity should be set to a small value such that the viscous forces are eliminated. A robust solver should not have any problems with that :)))). Regards Jan

 Robin December 30, 2002 11:56

Re: Inviscid flow

The problem is not with solver robustness. If you specify a very small viscosity, you will encounter round-off problems when dividing by such a small number. Besides, the viscosity will help converge the solution faster, if anything you should increase it. If you boundary conditions do not introduce any rotational flow, the final solution will be inviscid anyway.

If you still do not agree, try it.

Robin

 Jan Rusås December 30, 2002 14:05

Re: Inviscid flow

:)))))) I am thinking, if I dare Happy New Year What if the geometry create a rotation of the flow! Jan

 Neale December 30, 2002 17:44

Re: Inviscid flow

You should define the viscosity to be a small number regardless of the boundary conditions. There are other mechanisms for introducing vorticity besides the boundary conditions. For example, a curved shock wave will introduce vorticity.

Neale

 Robin December 31, 2002 15:39

Re: Inviscid flow

Response to both Jan and Neale:

Granted that shock waves and backward facing steps, etc. will introduce viscous effects. But if the flow is not irrotational (inviscid) due to boundary conditions, then you cannot and should not be interested in solving it as an inviscid flow! Sure, if you make your viscosity small you will get the same wrong answer for these as you would expect from and inviscid code!

The problems that arise in the solver due to your small viscosity are purely numerical and have nothing to do with robustness. If you assume there are no viscous effects, there are simplifications which may be made for solving inviscid flows. I don't need to remind you that you are dealing with a viscous flow code, so these optimizations are not done.

All I am suggesting is that if you are setting up a simple inviscid flow problem and want to solve it as such, then you can do so simply by applying the appropriate boundary conditions. At the wall, this means using a free-slip boundary condition.

Quite frankly, this is only of academic interest. Why would you want an inviscid flow solution at the cost of solving a viscous flow?

Enough said.

Happy New Year!

Robin

 Atit Koonsrisuk January 2, 2003 13:40

Re: Inviscid flow

Dear Robin,

I am the newcomer in CFD. I hope that you have a time to give me the explanations of my new questions, occurred from your previous answers. They are:

- You said that if we set viscosity be very small, we will get severe convergence problem. Why sir? I guess that CFX may use the Reynolds number in computation. The Reynolds number approaches infinity when we set viscosity equal zero.

- How can 'shock waves' and 'backward facing steps' have the viscous effects? Are they only the effects in numerical approach or they also have the effects in theoretical approach? What are those effects?

- You said that 'if the flow is not irrotational (inviscid)'. That make me feel like 'irrotational' and 'inviscid' is the same word. But they are not, are they?

'Granted that shock waves and backward facing steps, etc. will introduce viscous effects. But if the flow is not irrotational (inviscid) due to boundary conditions, then you cannot and should not be interested in solving it as an inviscid flow! Sure, if you make your viscosity small you will get the same wrong answer for these as you would expect from and inviscid code! '

I am sorry but I do not understand all sentences except the first sentence. Could you please give me more explanation?

- Because of my very bad English, I do not understand your last comment.

'Why would you want an inviscid flow solution at the cost of solving a viscous flow?'

Did you ask me that why don't I write the inviscid solver to solve my problem? I think that my understanding is wrong. However if that is the real meaning of your question. My answer is 'this is the first step of my computation'. After I get the solution, I will increase the complexity of the problem grudually. Finally this problem will be the viscous flow.