CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Boundary Condition in CFX (https://www.cfd-online.com/Forums/cfx/84453-boundary-condition-cfx.html)

ssbear January 30, 2011 12:40

Boundary Condition in CFX
 
3 Attachment(s)
Hi all,

I'm trying to make a head pond model for a run-of-river project. The inlet is where the river is, outlet is where the penstock will be.

The inlet boundary condition is normal speed = 2m/s and I set the outlet condition as static pressure = Pres (where Pres is the water pressure due to gravity) (Please see the first picture for details). To simulate the gravity effect on the water, I added a sub-domain with general momentum source.

The result seems fine (please see the second diagram). But when I tried to change the inlet boundary to 0.2 m/s, the model starts to have problem with convergence. And the result doesn't make sense at all, especially the streamline from outlet (see third diagram). I'm thinking that there is something wrong with the outlet boundary condition, but I'm not sure where it is.

It would be great if anyone can provide some advices. Any suggestions would be welcome.

Thanks in advance!!

Ricky Chen

ghorrocks January 30, 2011 16:50

Quote:

To simulate the gravity effect on the water, I added a sub-domain with general momentum source.
Argh! How many times do I have to tell you that this is a bad idea and not required!

Your pictures are weird. Why are velocity vectors going outwards at wall boundaries?

Your outlet boundary condition will have problems as the flow rate changes. That, coupled with the strange behaviour which your "gravity" source term will generate is going to mean bizarre things will happen.

ssbear January 30, 2011 20:34

2 Attachment(s)
Quote:

Originally Posted by ghorrocks (Post 292854)
Argh! How many times do I have to tell you that this is a bad idea and not required!

Your pictures are weird. Why are velocity vectors going outwards at wall boundaries?

Your outlet boundary condition will have problems as the flow rate changes. That, coupled with the strange behaviour which your "gravity" source term will generate is going to mean bizarre things will happen.


ghorrocks,

Thanks for taking your time into my problem and sorry for my weird questions. I've removed the gravity source term and does that make more sense now?

Looking forward to your reply. Thanks!!

ghorrocks January 31, 2011 06:15

Unless you have variable density from something (or are using the bousinessq buoyancy model) then you will have no need for gravity and no need for static head. Then you can define your outlet boundary as a constant pressure boundary and things are much easier.

And yes, now you are not getting impossible flows across walls so keep that momentum source term off.

ssbear January 31, 2011 13:19

Quote:

Originally Posted by ghorrocks (Post 292927)
Unless you have variable density from something (or are using the bousinessq buoyancy model) then you will have no need for gravity and no need for static head. Then you can define your outlet boundary as a constant pressure boundary and things are much easier.

And yes, now you are not getting impossible flows across walls so keep that momentum source term off.


Thanks very much!!

ssbear February 7, 2011 01:10

Quote:

Originally Posted by ghorrocks (Post 292927)
Unless you have variable density from something (or are using the bousinessq buoyancy model) then you will have no need for gravity and no need for static head. Then you can define your outlet boundary as a constant pressure boundary and things are much easier.

And yes, now you are not getting impossible flows across walls so keep that momentum source term off.


ghorrocks,

This initial model works out well. My manager is happy with the results. Thanks again for your help.


All times are GMT -4. The time now is 11:11.