CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Periodicity and symmetry boundaries conditions

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By yonchong
  • 1 Post By lex78700

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 19, 2014, 12:17
Default Periodicity and symmetry boundaries conditions
  #1
New Member
 
Luis Delgado
Join Date: Oct 2013
Posts: 19
Rep Power: 13
Luis Delgado is on a distinguished road
Hi,
I have a simple question: What is the difference between periodicity boundary condition and symmetry boundary condition. Thanks.
Luis
Luis Delgado is offline   Reply With Quote

Old   June 19, 2014, 13:28
Default
  #2
Member
 
Join Date: May 2012
Posts: 68
Rep Power: 14
som87 is on a distinguished road
Follow this thread
http://www.cfd-online.com/Forums/mai...onditions.html

Look at Dr Denaro's explanation (reply #10)

Quote:
Originally Posted by FMDenaro View Post
periodicity: given a period L, the solution implies u(L +/- h) = u(+/- h)
simmetry: given a plane symmetry z=L the solution implies u(L+h)=u(L-h)
__________________
Best wishes,

Somdeb Bandopadhyay
som87 is offline   Reply With Quote

Old   June 19, 2014, 15:15
Default
  #3
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20
cfdnewbie is on a distinguished road
adding to this: symmetry is a local property, periodicity refers to the continuation from the "other end" of the domain. Just looking at a simple sine wave should answer your question.
regards,
cfdnwebie
cfdnewbie is offline   Reply With Quote

Old   June 19, 2014, 15:23
Default
  #4
Member
 
Yon Han Chong
Join Date: Jun 2012
Posts: 77
Rep Power: 14
yonchong is on a distinguished road
Periodic will have flow coming out from one side and go into the other match side.

Symmetry will mirror what's at that boundary.
leflix likes this.
yonchong is offline   Reply With Quote

Old   June 19, 2014, 20:37
Default
  #5
New Member
 
Luis Delgado
Join Date: Oct 2013
Posts: 19
Rep Power: 13
Luis Delgado is on a distinguished road
Thanks to everyone, I think I understand
Luis Delgado is offline   Reply With Quote

Old   June 20, 2014, 08:10
Default
  #6
New Member
 
Adrien
Join Date: Jun 2014
Location: Cambridge, UK
Posts: 17
Rep Power: 12
lex78700 is on a distinguished road
I don't completely agree with the answer in the referred post by FMDenaro. As you can see in the enclosed picture, in my understanding a BC that has mirror symmetry with respect to a vertical plane means
u(L+h)=-u(L-h)
v(L+h)=v(L-h)
The advantage of this BC is mainly to cancel the normal velocity component to reproduce the effect of a solid wall (sometimes called "rigid lid BC").

Periodicity is even more straightforward (see picture).

Adrien
Attached Images
File Type: jpg BC.jpg (36.5 KB, 31 views)
leflix likes this.
lex78700 is offline   Reply With Quote

Old   July 20, 2014, 14:51
Default
  #7
Senior Member
 
Join Date: Aug 2011
Posts: 272
Rep Power: 16
leflix is on a distinguished road
lets say the domain is 1D from indice I=1 to NI ,1 and NI are on the left and right boundaries respcetively and have to be precribed from boundary condition
Periodic BC implies FI(NI)=FI(2) and FI(1)=FI(NI-1)

for symmetry BC you have to set Neuman BC on the variable FI so dFI/dx=0

for 2D flows you have to add for the velocity:
V_norm=0
d(V_para)/dn=0

V_norm is the normal componnent of the velocity fied to the boundary
V_para is the parallel componnent of the velocity field to the boundary
d/dn is the normal derivative to the boundary.
leflix is offline   Reply With Quote

Old   July 20, 2014, 17:05
Default
  #8
Senior Member
 
Jonas T. Holdeman, Jr.
Join Date: Mar 2009
Location: Knoxville, Tennessee
Posts: 128
Rep Power: 18
Jonas Holdeman is on a distinguished road
leflix says:
[QUOTE=leflix;502365]lets say the domain is 1D from indice I=1 to NI ,1 and NI are on the left and right boundaries respcetively and have to be precribed from boundary condition
Periodic BC implies FI(NI)=FI(2) and FI(1)=FI(NI-1) .]

This assumes that the left and right sides overlap by one cell. By periodic BC we mean that the values on the left and right boundaries are identical, i.e. that FI(NI)=FI(1), and if derivatives are continuous, that d/dx(FI(NI))^- = d/dx(FI(1))^+ , where ^-/+ means taking the limit from the left or right. This is clear in the finite element method, but since ghost cells are sometimes used in finite difference methods, overlap may be necessary. In this case maybe something like FI(NI+1)=FI(2) and FI(NI)=FI(1) may be necessary, where FI(NI+1) is a ghost cell.

Last edited by Jonas Holdeman; July 20, 2014 at 17:10. Reason: remove redundancy
Jonas Holdeman is offline   Reply With Quote

Old   July 21, 2014, 05:15
Default
  #9
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by lex78700 View Post
I don't completely agree with the answer in the referred post by FMDenaro. As you can see in the enclosed picture, in my understanding a BC that has mirror symmetry with respect to a vertical plane means
u(L+h)=-u(L-h)
v(L+h)=v(L-h)
The advantage of this BC is mainly to cancel the normal velocity component to reproduce the effect of a solid wall (sometimes called "rigid lid BC").

Periodicity is even more straightforward (see picture).

Adrien

yes, you are right for simmetry condition for a vector field, I just wrote condition for a scalar function
FMDenaro is offline   Reply With Quote

Old   August 7, 2014, 18:50
Default
  #10
Senior Member
 
Join Date: Aug 2011
Posts: 272
Rep Power: 16
leflix is on a distinguished road
[QUOTE=Jonas Holdeman;502375]leflix says:
Quote:
Originally Posted by leflix View Post
lets say the domain is 1D from indice I=1 to NI ,1 and NI are on the left and right boundaries respcetively and have to be precribed from boundary condition
Periodic BC implies FI(NI)=FI(2) and FI(1)=FI(NI-1) .]

This assumes that the left and right sides overlap by one cell. By periodic BC we mean that the values on the left and right boundaries are identical, i.e. that FI(NI)=FI(1),
I disagree with what you said Jonas. Actually keep in mind that points NI and 1 are located on the boundaries (I never spoke of ghost cells it is not necessary).
So FI(NI) cannot be equal to FI(1) since the both are unknown and must be set by the boundary condition. That's why we have to write FI(NI)=FI(2) and FI(1)=FI(NI-1)
leflix is offline   Reply With Quote

Old   August 7, 2014, 22:39
Default
  #11
Senior Member
 
Jonas T. Holdeman, Jr.
Join Date: Mar 2009
Location: Knoxville, Tennessee
Posts: 128
Rep Power: 18
Jonas Holdeman is on a distinguished road
[QUOTE=leflix;504933]
Quote:
Originally Posted by Jonas Holdeman View Post
leflix says:


I disagree with what you said Jonas. Actually keep in mind that points NI and 1 are located on the boundaries (I never spoke of ghost cells it is not necessary).
So FI(NI) cannot be equal to FI(1) since the both are unknown and must be set by the boundary condition. That's why we have to write FI(NI)=FI(2) and FI(1)=FI(NI-1)
It seems we have reached an impasse. Maybe we should be sure we are talking about the same thing. Consider this example of a periodic mesh. Imagine a piece of paper wrapped around a cylinder, or a piece of paper with edges glued to make a cylinder. Now draw a continuous rectangular mesh on the paper cylinder, and start numbering the nodes on a circumferential line of nodes, 1, 2, 3, ... . When you get back to node 1, then you give it the alternate number NI. Node 1 and node NI are just different names for the same node, NI is an alias for 1. Now if you compute some (single-valued) field on this mesh, you must have FI(1)=FI(NI) because you have the same one function at the same node. And if the field has continuous first derivatives, you must have grad FI(1)=grad FI(NI) as well. If you now cut the paper along the line of nodes (parallel to the cylinder axis) to lay the paper flat, that must not change anything. You still must have FI(1)=FI(NI). And, of course, FI is unknown at all of the internal nodes.

There is no special boundary condition, only a rule to preserve the original topology. You could have cut the paper along any of the lines of nodes in order to flatten the paper, and you must get the same result (but shifted on the flattened grid, depending on where you make the cut).

Now if you are using the finite difference method, your stencil must wrap around or involve "ghost cells" or such, but that is not my area of interest.
Jonas Holdeman is offline   Reply With Quote

Old   August 8, 2014, 05:37
Default
  #12
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
well, I think that there is no real problem...periodicity means you have to fulfill a condition f(x0) = f(x0+L), where L is some periodicity lenght.
In terms of index topology, for a mesh size h=L/N

x(i)=((i-1)*h+x0 for i=1,..., N+1


therefore f(1)=f(N+1). This function values both appears as to be prescribed as a sort BC.s, but you just chose to write the equation in 1 or N+1 and solve. The resulting value is coupled by periodicity to the other one. For example, solve the equation in node i=1 and the value is set to f(N+1).
FMDenaro is offline   Reply With Quote

Old   August 8, 2014, 10:43
Default
  #13
Senior Member
 
Jonas T. Holdeman, Jr.
Join Date: Mar 2009
Location: Knoxville, Tennessee
Posts: 128
Rep Power: 18
Jonas Holdeman is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
well, I think that there is no real problem...periodicity means you have to fulfill a condition f(x0) = f(x0+L), where L is some periodicity lenght.
In terms of index topology, for a mesh size h=L/N

x(i)=((i-1)*h+x0 for i=1,..., N+1


therefore f(1)=f(N+1). This function values both appears as to be prescribed as a sort BC.s, but you just chose to write the equation in 1 or N+1 and solve. The resulting value is coupled by periodicity to the other one. For example, solve the equation in node i=1 and the value is set to f(N+1).
I think I understand your argument in the context of equally-spaced nodes in a finite difference context (you use a constant spacing h in your example). But I am thinking more generally in terms of an unequally-spaced FD or a finite element context. In this context, a mesh from 1, ... N does not provide enough information to solve the problem. What is missing for FD is the spacing (measured in a positive direction) between your node N and node 1, which would have to be a side condition, and which I suppose you could call a boundary condition.

In the finite element context we focus on elements in the space between the nodes where we define the field in terms of shape functions (or elements), and the nodes are simply a convenient place to store the data as degrees-of-freedom for the shape functions (well yes their coordinates do fix the shape as well). An element contributes to the nodal data on either side in 1D, and to all connected nodes in 2D. If the mesh runs from 1 to N, and N is not aliased to node 1, then we have left out the contributions from the element connecting these nodes in 1D, or whole rows or columns of elements in 2D. This problem is avoided by aliasing node 1 to node N, and F(1) to F(N) as I have suggested.
Jonas Holdeman is offline   Reply With Quote

Old   August 8, 2014, 11:54
Default
  #14
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by Jonas Holdeman View Post
I think I understand your argument in the context of equally-spaced nodes in a finite difference context (you use a constant spacing h in your example). But I am thinking more generally in terms of an unequally-spaced FD or a finite element context. In this context, a mesh from 1, ... N does not provide enough information to solve the problem. What is missing for FD is the spacing (measured in a positive direction) between your node N and node 1, which would have to be a side condition, and which I suppose you could call a boundary condition.

In the finite element context we focus on elements in the space between the nodes where we define the field in terms of shape functions (or elements), and the nodes are simply a convenient place to store the data as degrees-of-freedom for the shape functions (well yes their coordinates do fix the shape as well). An element contributes to the nodal data on either side in 1D, and to all connected nodes in 2D. If the mesh runs from 1 to N, and N is not aliased to node 1, then we have left out the contributions from the element connecting these nodes in 1D, or whole rows or columns of elements in 2D. This problem is avoided by aliasing node 1 to node N, and F(1) to F(N) as I have suggested.

I think that it's the same procedure, indees i worked on unstructured triangular mesh similarily.
As example, assume a 1D non-uniform mesh size going from x0 to x0+L, therefore x(2)-x(1)=h(1), x(3)-x(2)=h(2), .... x(N+1)-x(N)=h(N).

Now, you have hypotetically ghost nodes, x(0)=x(1)-h(N)=x(N)-L and x(N+2)=X(N+1)+h(1)=x(2)+L. This way, you can simply defines the shape functions respecting periodicity constraint.
FMDenaro is offline   Reply With Quote

Reply

Tags
boundaries condition, periodicity, symmetry


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
Periodicity and symmetry boundary condition Luis Delgado FLUENT 1 June 20, 2014 04:17
symmetry vs periodicity keeper CFX 5 April 3, 2014 05:19
Difference between periodicity and symmetry boundary conditions lost.identity Main CFD Forum 9 August 30, 2012 12:16
[ICEM] Help for symmetry and periodicity conditions OneDotThree ANSYS Meshing & Geometry 10 March 7, 2012 05:28
Rotational Periodicity or Symmetry? gman89 CFX 3 May 18, 2011 19:45


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