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

simpleFoam with cyclic BCs

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 20, 2013, 04:20
Default simpleFoam with cyclic BCs
  #1
Ria
New Member
 
Ilaria
Join Date: Feb 2013
Posts: 3
Rep Power: 13
Ria is on a distinguished road
Dear Foamers,

I am trying to change simpleFoam in order to use cyclic boundary condition for a simulate fully developed turbulent flow in a channel. To do it I mainly used:

http://www.cfd-online.com/Forums/ope...implefoam.html


My problem is that I do not understand why I get different velocity values along the cyclic patch (as showed in the picture) also if I give uniform velocity as initial condition.


Thanks a lot,
Ilaria
Attached Images
File Type: jpg channelFlowUy.jpg (10.9 KB, 37 views)
Ria is offline   Reply With Quote

Old   October 20, 2013, 09:44
Default
  #2
New Member
 
Join Date: Apr 2012
Posts: 8
Rep Power: 14
tom ato is on a distinguished road
Hej Ria,

this is the example I promised in my message. A more detailled description of BC etc. you will find there. As you can see, the values of Uy and Uz are VERY small (especially if you compare it with the values of Ux), so you can neglect them as numerical errors.

Kind regards

Tom


p.s. the posted images were removed, since I don't want people I don't know and I don't trust to use them. These examples were supposed to help Ria, but the strange entry of "dichvusuachua" make me feel, that unreliable people are entering this discussion without the intention to help.

@Ria: if you want to have a look at the exapmle again, please give me an serious e-mail address e.g. the mail account of your university or your company. I will send it to you by mail.

Last edited by tom ato; October 21, 2013 at 12:25.
tom ato is offline   Reply With Quote

Old   October 20, 2013, 18:17
Default
  #3
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19
samiam1000 is on a distinguished road
Hi Tom Ato (great nick!),

pardon the question, but..
..how can it be considered a numerical error?

I would agree if there was a random behavior, but I can clearly see a symmetrical behavior. What does this mean, to you?

Also, if Ria would like to simulate an infinite cylinder (and not a 2D one) both in x and z, I guess that the BC are correct, aren't them?
samiam1000 is offline   Reply With Quote

Old   October 21, 2013, 06:40
Default
  #4
New Member
 
Join Date: Apr 2012
Posts: 8
Rep Power: 14
tom ato is on a distinguished road
Hi Samuele,

yes indeed, if Ria wants to compute an infinite channel both in x- and z-direction, cyclic BC in both directions have to be set.

A comment to the quality of numerical errors: They don't have to show random behavoiur, since interpolation errors are numerical errors as well. By using the same BC at top and bottom, the only difference between the treatment of both patches is the direction of the normal vectors (this why the sign of the error is changing). Since the wireframe of the posted computation is fined to the walls in a symmetric way, the quality of the error is symmetric. The slight difference in the max. values is the numerical error due to round off errors.
From a physical point of view, you can see, that the max. values of Uy is very close to the wall, so it's in the viscous sublayer of the boundary layer. But boundary-layer theory makes the assumption, that the wall-normal velocity is supposed to be 0. So you would expect from your computation, that Uy is zero in this section of the flow. Do you agree?

Anyway, I can't tell, if this is Ria's problem (and I don't think that this is her problem, because if it would be her problem, she would not have a problem at all...) since she posted no color legend.

Kind Regards

Tom
tom ato is offline   Reply With Quote

Old   October 21, 2013, 10:28
Default
  #5
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19
samiam1000 is on a distinguished road
Hi Tom,

I agree whit what you are saying: it seems to be reasonable.

Thanks a lot,
Sam
samiam1000 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
How to setup cyclic BCs in simpleFOAM hhuang84 OpenFOAM Running, Solving & CFD 14 December 8, 2016 12:39
renumberMesh and cyclic BC's Jonathan OpenFOAM Pre-Processing 3 November 23, 2013 06:25
parallel error with cyclic BCs for pimpleDyMFoam and trouble in resuming running sunliming OpenFOAM Bugs 21 November 22, 2013 04:38
Adjusting velocity using cyclic bc's gregdB Main CFD Forum 0 January 25, 2012 10:08
Cyclic BCs using createPatch in OF 1.6.x SunnyPP OpenFOAM 2 August 6, 2010 11:21


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