CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

P/U Boundary Conditions Issue for Periodic Boundary Flow

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 9, 2020, 08:34
Default P/U Boundary Conditions Issue for Periodic Boundary Flow
  #1
Member
 
Sereff
Join Date: Jan 2019
Posts: 49
Rep Power: 7
Sereff is on a distinguished road
Hi Foamers,

I am trying to study the thermal and particle interactions of a ABL, with buoyantBoussinesqPimpleFoam and DPMFoam respectively. To do this I firstly simulate a
fully-developed neutral boundary (periodic doamin) flow with kEqn model of LES. But as I intergrate the fields to the buoyancy and particle solver. An unphysical area,
where the pressure cell pRefCell was set to have reference pRefValue (see attachment "testBCs_old"), appears on pressure field adn would lead to divergence. This
seems to be a rather common issue when no fixed value was given to p_rgh boundary conditions for density based solvers. However, not many clear solutions were
presented.

I have read that one of the solution is to set p_rgh at upper boundary to be a fixed value. But this is likely to lead to instability or even divergence to the boundary flow,
(see attachment "ABL_diverge"). Another potential solution is to apply the follwing BCs. The patches not mentioned in the following are set to be "cyclic" and the "upperWall"
is actually not a wall since it's a boundary flow. And i am getting the following result (see attachment "testBCs_Prgh/P/U"). Do these screenshots look physical? If not, what
could be the practical way of setting up boundary conditions for p_rgh and U field for density based transient solvers?

P_rgh boundaries:
Code:
upperWall{
	type		totalPressure;
	p0		uniform 1e5;
	value		uniform 1e5;
}
lowerWall{
	type		fixedFluxPressure;
	rho		rhok;
	value		uniform 0;
}
U boundaries:
Code:
upperWall{
	type		inletOutlet;
	inletValue	uniform (25 0 0);
}
lowerWall{
	type		noSlip;
}
Kind regards,
sereff,
Attached Images
File Type: png testBCs_old.png (53.9 KB, 9 views)
File Type: png ABL_diverge.png (114.6 KB, 9 views)
File Type: png testBCs_Prgh.png (136.1 KB, 14 views)
File Type: png testBCs_P.png (59.3 KB, 13 views)
File Type: png testBCs_U.png (120.5 KB, 13 views)

Last edited by Sereff; April 9, 2020 at 13:06.
Sereff is offline   Reply With Quote

Old   May 25, 2020, 16:05
Default
  #2
Member
 
Petros Ampatzidis
Join Date: Oct 2018
Location: Bath, UK
Posts: 64
Rep Power: 8
petros is on a distinguished road
Hi Sereff,

Do you have any updates on that?
I am dealing with a similar issue, using the buoyantBoussinesqSimpleFoam instead. When using periodic boundary conditions ('cyclic') I cannot reach convergence. In particular, I notice that p_rgh residuals are stuck at 0.01.

Have you managed to converge your case when using the 'cyclic' boundary condition?
petros is offline   Reply With Quote

Old   May 25, 2020, 16:22
Default
  #3
Member
 
Sereff
Join Date: Jan 2019
Posts: 49
Rep Power: 7
Sereff is on a distinguished road
Hi Petros,

I think one simple way to avoid this is to set one of your boundary to have a Dirichlet boundary condition to avoid the solver assigning a cell to be reference. As you can see from the post above, use the combination:
> P: totalPressure; U: inletOutlet;
at the free surface (atmosphere for example) is able to avoid divergence, and as the attached figures suggested, there would be some fluctuations of pressure. Another way is to just used:
> P: fixedValue; U: inletOutlet;

They worked fine for my simulations, but as we all know CFD is an evil black box, so I can't really tell for sure if it would fix your issue. Give it a try and se if they works.

kind regards,
Sereff is offline   Reply With Quote

Old   May 25, 2020, 16:33
Default
  #4
Member
 
Petros Ampatzidis
Join Date: Oct 2018
Location: Bath, UK
Posts: 64
Rep Power: 8
petros is on a distinguished road
Hi Sereff,

Thank you for your quick reply.
I'm using a constant value for pressure and constant velocitty gradient on top. The problem is that I don't get convergence below 0.01 for pressure. I've seen people in the forum using an additonal momentum source term to maintain the flow, although I'm not entirely convinced about this. Did you encounter anything similar in your case?
petros is offline   Reply With Quote

Old   May 25, 2020, 16:40
Default
  #5
Member
 
Sereff
Join Date: Jan 2019
Posts: 49
Rep Power: 7
Sereff is on a distinguished road
May I ask what type flow are you simulating?

If you are trying to simulate boundary flow or free surface channel flow, that combination of p/U boundary condition is not an optimal combo and would most likely leads to divergence. Like I said, if you need fixedValue for pressure at the free surface, then use inletOutlet for U.

Kind regards,
Sereff is offline   Reply With Quote

Old   May 25, 2020, 16:47
Default
  #6
Member
 
Petros Ampatzidis
Join Date: Oct 2018
Location: Bath, UK
Posts: 64
Rep Power: 8
petros is on a distinguished road
It's a relatively rough neutral ABL.
Weird thing is that simulation isn't diverging. It seems to converge but only around a value of 0.01 for pressure and can't go below. I will try your suggestion and report back in.
Another guess could be that everything is due to the increased roughness.

Best,
Petros
petros is offline   Reply With Quote

Old   May 25, 2020, 16:54
Default
  #7
Member
 
Sereff
Join Date: Jan 2019
Posts: 49
Rep Power: 7
Sereff is on a distinguished road
hmmm... I have experienced an issue of RAS simulation on cyclic ABL, where p/U are all zeroGradient. Basically the solver decided that the pressure field has no more flutuations and the velocity solver just stuck in iterations... unfortunatley i didn't manage to fix that. I just call it a day since the equalibrium is acheived...
Sereff 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
Wrong multiphase flow at rotating interface Sanyo CFX 14 February 7, 2017 18:19
Basic Nozzle-Expander Design karmavatar CFX 20 March 20, 2016 09:44
Low torque values on Screw Turbine Shaun Waters CFX 34 July 23, 2015 09:16
Waterwheel shaped turbine inside a pipe simulation problem mshahed91 CFX 3 January 10, 2015 12:19
Please help with flow around car modelling! Tudor Miron CFX 17 March 19, 2004 20:23


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