CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Boundary Conditions do not match the results

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 13, 2014, 17:56
Default Boundary Conditions do not match the results
  #1
Member
 
Join Date: Jul 2013
Posts: 94
Rep Power: 13
mejahan is on a distinguished road
Hello friends,

I am simulating a dynamic mass flow rate at the outlet and presser inlet BCs. The mass is changing with time by an input function file and the flow is incompressible.
But the mass flow or velocity does not follow the BC(attached file).
The only option that I was speculating might affect the simulation is "mass flow update" option on outlet Mass flow BC and I do not know the effect of this option, but for now this option was not selected by default.

I would appreciate if anyone can help me.


Mehdi
Attached Images
File Type: jpg Uinlet.jpg (67.3 KB, 29 views)

Last edited by mejahan; May 13, 2014 at 21:17.
mejahan is offline   Reply With Quote

Old   May 13, 2014, 21:00
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,816
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
You plotted the velocity. What does the mass flow rate look like?
ghorrocks is offline   Reply With Quote

Old   May 13, 2014, 21:22
Default
  #3
Member
 
Join Date: Jul 2013
Posts: 94
Rep Power: 13
mejahan is on a distinguished road
Hi Glenn,

As it is incompressible flow the mass differs with velocity just in a constant coefficient , density and area.
AS it shows on the figure, the BC does not follow the mass flow that I set on some points.
mejahan is offline   Reply With Quote

Old   May 14, 2014, 06:37
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,816
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Can you post your CCL?
ghorrocks is offline   Reply With Quote

Old   May 14, 2014, 14:36
Default
  #5
Member
 
Join Date: Jul 2013
Posts: 94
Rep Power: 13
mejahan is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
Can you post your CCL?
Hi Glenn,

I have plotted the CCL, as you can see it is the same as the input file that I posted before.
I am confused about the results, why the solver does not follow the BC when getting near the negative velocity?
The problem can not be from the "Mass flow update" option because by default it is "scale mass flow" which is right.
But I don't know how the solver interpolate the input data. It works fine before 0.35s but after that the input data and the solver BC are not the same.
Attached Images
File Type: jpg CCL.jpg (60.1 KB, 18 views)
mejahan is offline   Reply With Quote

Old   May 14, 2014, 18:34
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,816
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
That is not the CCL. The CCL is the text file which sets up the CFX run. It is repeated at the top of the output file. Please read the documentation about the CCL file and post it.
ghorrocks is offline   Reply With Quote

Old   May 15, 2014, 14:25
Default
  #7
Member
 
Join Date: Jul 2013
Posts: 94
Rep Power: 13
mejahan is on a distinguished road
Hi Glenn,

I think I found the source of the problem and it is the BC.
When I set the Pressure or Mass flow BC, the solver will consider an artificial wall at the boundary to prevent the inflow at the outlet and outflow at the inlet.
And when it is getting to the negative mass flow rate, the solver does not allow such condition.
It seems that for now the only option is Velocity inlet and Opening at the outlet, but I dont see the opening BC option and more importantly I want to use pressure inlet mass flow outlet BCs.
Now my question is that is there any way to change the BC setup manually in CFX, in a way that I do not have artificial walls in Mass flow and pressure BC?
I would appreciate if you can help on this issue.

Thanks
mejahan is offline   Reply With Quote

Old   May 15, 2014, 19:09
Default
  #8
New Member
 
Mark
Join Date: Apr 2014
Location: Draper, UT
Posts: 3
Rep Power: 12
lmark84l is on a distinguished road
What exactly are you trying to simulate? Is this an internal or external flow problem?

For external flow, I’ve been able to successfully implement a mass flow inlet with a pressure outlet BC provided that 1) my domain was large enough so I did not have flow trying to recirculate back through the outlet and 2) I paid careful attention to the outlet pressure specification (i.e. be mindful of how CFX uses relative and reference pressures).

Not sure if that helps at all, but figured I’d chime in.
lmark84l is offline   Reply With Quote

Old   May 15, 2014, 19:11
Default
  #9
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,816
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
If you want to use a pressure inlet and a mass flow outlet then you can make the inlet a pressure opening and the outlet a velocity/mass flow condition and then both the inlet and outlet can handle reverse flow fine.
ghorrocks is offline   Reply With Quote

Old   May 15, 2014, 19:48
Default
  #10
Member
 
Join Date: Jul 2013
Posts: 94
Rep Power: 13
mejahan is on a distinguished road
Thanks,

If I set the mass flow outlet, then we have problem of artificial wall, but velocity component works. But the question is, if I set the normal component of the velocity, what is the distribution of the velocity across the outlet area? is it uniform if I do not specify a profile, or it is just the average and the solver gives the distribution according to this average value?
mejahan is offline   Reply With Quote

Old   May 15, 2014, 19:59
Default
  #11
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,816
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Mass flow boundary conditions certainly can handle back flow - I have done it before. So you must be using different options to me. That is why I want to see your CCL to see what options you are using.

When you set velocity it uses the velocity across the entire boundary. So if you set a constant value it is constant (ie plug flow). if you want a profile then you need to define a function which sets a profile.

Have a read of the documentation about these different boundary condition types. There are lots of options available.
ghorrocks is offline   Reply With Quote

Old   May 16, 2014, 03:13
Default
  #12
Member
 
Join Date: Jul 2013
Posts: 94
Rep Power: 13
mejahan is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
Mass flow boundary conditions certainly can handle back flow - I have done it before. So you must be using different options to me. That is why I want to see your CCL to see what options you are using.

When you set velocity it uses the velocity across the entire boundary. So if you set a constant value it is constant (ie plug flow). if you want a profile then you need to define a function which sets a profile.

Have a read of the documentation about these different boundary condition types. There are lots of options available.
I have studied the documentation about the CFX BC(attached). As I have read and experienced, pressure and mass flow BCs, impose the artificial walls in reverse flow.
I have attache the CCL file about the BC and the expressions.
First I tried the Opening(Entrainment, static pressure) to have the zero gradient for the velocity and Velocity profile at the outlet. Although it follows the BC in negative velocity(simple sinusoidal BC), but completely unphysical results(compared to other studies).
Then I changed the outlet to mass flow rate, but again because of the artificial walls, it did not follow the BC setup.
I am wondering what would be the most suitable BC for my case that can give me physical results as well as flowing the BC setups.
I can not use the velocity profile because physically the profile is unknown, better to use mass flow or pressure that the profile of velocity is the part of the solution.


Thanks
Attached Images
File Type: jpg BC.jpg (62.7 KB, 15 views)
Attached Files
File Type: txt Opening-MassflowOutlet.txt (9.0 KB, 4 views)
mejahan is offline   Reply With Quote

Old   May 19, 2014, 02:28
Default
  #13
Member
 
Join Date: Jul 2013
Posts: 94
Rep Power: 13
mejahan is on a distinguished road
Hi Glenn,

I posted the CCL and looking forward to seeing your reply.

Thanks
mejahan is offline   Reply With Quote

Old   May 19, 2014, 07:12
Default
  #14
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,816
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Can you make your boundary "Outlet" an opening set to cartesian velocity compnents? Then you can drive it with an osciallting flow.

Your boundary "Inlet" should probably be a opening as well, set to the 100mmHg pressure. I find the entrainment option numerically unstable so you might have more luck with opening pressure and direction.

As a side issue - why are you using a turbulence mode for this? I suspect the Reynolds number is pretty low (but cannot work it out as I do not know the geometry or fluid) so I suspect the flow is laminar.
ghorrocks is offline   Reply With Quote

Old   May 19, 2014, 13:22
Default
  #15
Member
 
Join Date: Jul 2013
Posts: 94
Rep Power: 13
mejahan is on a distinguished road
Hi Glenn,

Thanks for your reply.
I am trying the different possible options.
But about the SST, as the Re on the maximum flow goes beyond 7000, I am using it.
mejahan is offline   Reply With Quote

Old   May 20, 2014, 16:30
Default
  #16
Member
 
Join Date: Jul 2013
Posts: 94
Rep Power: 13
mejahan is on a distinguished road
Hi again,

The Opening BC gives the solver the option of having incoming and out coming flow at the boundary section.
But what is the difference between using Opening with velocity components and The Outlet with velocity components?
Both of them have to follow the velocity components across the boundary.
mejahan is offline   Reply With Quote

Old   May 20, 2014, 18:47
Default
  #17
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,816
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Re=7000 - OK.

The opening allows flow in either direction. The outlet will only allow outwards flow.
ghorrocks is offline   Reply With Quote

Old   May 20, 2014, 19:06
Default
  #18
Member
 
Join Date: Jul 2013
Posts: 94
Rep Power: 13
mejahan is on a distinguished road
But even in velocity outlet BC, I can have the either direction defined by the profile of the velocity.
The same case for the Opening with the velocity components, the solver has to follow whatever velocity has been set at the section.
mejahan is offline   Reply With Quote

Old   May 20, 2014, 19:14
Default
  #19
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,816
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
If you specify inflow at an outlet boundary are you able specify the scalar variables with it? Things like temperature, turbulence and convection AVs? I suspect not.
ghorrocks is offline   Reply With Quote

Old   May 20, 2014, 19:14
Default
  #20
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,816
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
If you specify inflow at an outlet boundary are you able specify the scalar variables with it? Things like temperature, turbulence and convection AVs? I suspect not.
ghorrocks is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange results with different boundary conditions mihailmi FLUENT 1 July 12, 2013 13:23
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 17:44
Adaptive Mesh Refinement and Cyclic Boundary Conditions adona058 OpenFOAM Running, Solving & CFD 6 October 23, 2009 09:17
No results for solid domain Gary Holland CFX 10 March 13, 2009 03:30
Boundary conditions? Tom Main CFD Forum 0 November 5, 2002 01:54


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