CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Axisymmetric flow problem in constricted pipe (https://www.cfd-online.com/Forums/openfoam-solving/161670-axisymmetric-flow-problem-constricted-pipe.html)

kozden October 26, 2015 05:29

Axisymmetric flow problem in constricted pipe
 
1 Attachment(s)
Dear All,

I'm trying to run an LES (with Smagorinsky model) simulation in OpenFOAM for a constricted pipe flow (Reynolds Number = 500). I've tried to run the same simulation with tetrahedral meshes from 100000 elements to 1500000 elements. Although this flow should be axisymmetric at the region after constriction, in my LES simulations the flow deflect either to upper side or to lower side of the pipe wall (I put a screen shot as an example in the directory attached to this post).

I've tried lots of things (increasing the mesh resolution, reducing the tolerance values for p and U, changing the solver type for p and U) but I couldn't get the correct result.

Do you have any idea about the solution of this problem? I send my 0 system and constant directories (except polyMesh directory in constant directory) in the attachment if it helps to solve the problem.

Best regards,
Kamil

RodriguezFatz October 28, 2015 09:36

Hey, I am currently discussing a case that sounds pretty much the same like yours in the "Main CFD" forum. Since you did not post any picture I am not that sure about your exact geometry.
http://www.cfd-online.com/Forums/mai...-diffuser.html

Edit: Ok, I found the picture. Are those time averaged values?

kozden October 28, 2015 09:47

Hi Rodriguez,

Thanks for your interest at first. Yes these are time averaged values. I read the problem you faced with. Both cases look very similar. Do you have any suggestions for me to do?

Regards,
Kamil

kozden November 5, 2015 03:24

Dear OpenFOAM Users,

As you know from my previous posts I'm trying to solve an axisymmetric constricted pipe flow problem with pisoFoam solver by using Smagorinsky LES model of OpenFoam. It is expected to have an axisymmetric flow after constriction in my problem. Although I get this expected flow behaviour with a structured mesh (consisted of hexahedral elements), when I'm trying to solve this problem with an unstructured mesh (consisted of prismatic and tetrahedral elements) the flow always tends to be asymmetric. I have to mention that all other parameters of the analyses are same except the mesh. Is this a bug of OpenFoam or is there a possible error that I've done?

I'm sending the radial cross sectional views of my unstructured and structured meshes and my 0 system and constant directories for both in the link below if it helps to solve the problem.

https://www.dropbox.com/s/i7hc72u0gv...eFlow.zip?dl=0 [^]

Best Regards,
Kamil

RodriguezFatz November 5, 2015 03:56

Hi Kamil,
What Reynolds number are you dealing with? Your meshes look very, very coarse. From these meshes I guess, you use wall modeled LES? Even in wall modeled LES you have strong requirements for the mesh, in all three directions x+, y+, z+. From the way your mesh looks like I don't think you satisfy them.
Also you have these sudden jumps of cell volumes, which is very bad for LES, because the spatial filtering doesn't work here.
Did you calculate such values as x+,y+,z+?

kozden November 5, 2015 04:08

1 Attachment(s)
Hi Rodriguez,

I'm conducting simulations for Re=500. I've tried several meshes (from 100000 up to 1.5 million elements -- You can see the radial cross section of the one with 1.5 million elements in the attachment) for the unstructured case. However, I always got the asymmetry problem for unstructured meshes. I've never done any x+,y+,z+ calculations. Could you please inform me about how can I do these calculations for a constricted pipe flow case?

Best Regards,
Kamil

RodriguezFatz November 5, 2015 04:09

Re=500, so this is laminar. Why do you use a turbulence model at all?

kozden November 5, 2015 04:12

Yes this is laminar for the straight pipe flow. But I want to see if there is any transition to turbulence occurs due to constriction at the pipe even for Re=500.

Kamil

RodriguezFatz November 5, 2015 04:14

If you run your case, just type "yPlusLES -latestTime" in your terminal. Openfoam will show you some numbers and also will calculate a field for the latest time step for you to view in paraFoam.

Edit: As far as I know you can not use Smagorinsky model for laminar flow, because it produces non-zero eddy viscosity in laminar flows.

kozden November 5, 2015 04:31

Thanks for your informing Rodriguez. I've written the command you said to me and OpenFoam gave me

y+ : min: 0.0183674 max: 2.06231 average: 0.524659

What should I understand from these values? How can I calculate what my y+ value should be?

Best Regards,
Kamil

RodriguezFatz November 5, 2015 04:42

The problem is, that your flow isn't turbulent and I don't think these numbers have any meaning here. As I wrote above, I think you use a wrong model.

kozden November 5, 2015 12:43

Thank you Rodriguez for your feedbacks. I'll try to solve the problem as laminar and give information. Which solver do you suggest me to use for laminar flow for such a problem?

Regards,
Kamil

kozden November 6, 2015 01:51

Hi Rodriguez,

I've conducted the same analysis as laminar by using pisoFoam solver. However, I'm still getting asymmetry in the flow after constriction.

Best Regards,
Kamil

RodriguezFatz November 6, 2015 02:57

Yes, I think the asymmetry is physical. However, clever people from the other thread still have doubts and gave me some homework :p
I think if you create a very fine mesh with hexaedral or with tetrahedral cells you will find both solutions showing asymmetry. In my simulations it always became symmetric when I had the larger numerical errors.

kozden November 6, 2015 03:09

When I'm conducting DNS simulations with another code, I'm always getting symmetric flow. Also, there are experimental studies working with this geometry having symmetric flow. May this be a bug in OpenFOAM? What do you suggest me to do?

Regards,
Kamil

RodriguezFatz November 6, 2015 03:15

I get the same in fluent. What other code do you use?
If you get the asymmetry, how do you resolve the turbulence?

kozden November 6, 2015 06:03

I'm using a DNS code called Nektar++ and I got the flow after constriction symmetric as expected for Re=500. Also there are other works I saw solved the same problem by using OpenFOAM with pisoFoam solver and OneEqEddy turbulence model. In this work also symmetric flow is obtained for Re=500 as seen Figure 5 of the paper.

http://dl.acm.org/citation.cfm?id=2660919

Best Regards,
Kamil

RodriguezFatz November 6, 2015 06:06

Do you know if this code has real low numerical diffusion? As I wrote above, I get symmetric separation if I use lower numerical schemes with high diffusion. And I get asymmetric separation with very good schemes (low diffusion).

kozden November 6, 2015 06:27

In DNS (Direct Numerical Simulation) codes Navier–Stokes equations are numerically solved without any turbulence model.

Regards,
Kamil

kozden November 6, 2015 06:32

In DNS (Direct Numerical Simulation) codes Navier–Stokes equations are numerically solved without any turbulence model.

Regards,
Kamil


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