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

how to setup cyclic patch pair?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 20, 2012, 13:05
Default how to setup cyclic patch pair?
  #1
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
Dear OpenFOAMers,

I have a channel with an inlet and an outlet. The points are matched on both the inlet and the outlet. Is there a way to convert the inlet and the outlet into a cyclic pair? Thanks!

Pei-Ying
phsieh2005 is offline   Reply With Quote

Old   April 20, 2012, 13:18
Default
  #2
New Member
 
A.R. Baserinia
Join Date: Jan 2010
Location: Canada
Posts: 24
Rep Power: 16
baserinia is on a distinguished road
Hi,
I think the OpenFOAM documentation (link) answers your question.
baserinia is offline   Reply With Quote

Old   April 20, 2012, 18:37
Default
  #3
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
Hi, baserinia,

Thanks for the link!

But, if I already have a mesh that has an Inlet patch and an Outlet patch, is there a way to convert the Inlet patch and the Outlet patch into a cyclic pair?

Pei-Ying
phsieh2005 is offline   Reply With Quote

Old   April 20, 2012, 19:52
Default
  #4
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
If you already have a mesh, you can edit the constant/polyMesh/boundary file and change the definition from patch to cyclic/cyclicAMI. If your patches are non-conformal, you will need to use cyclicAMI. There will be several entries that will need to be supplied; have a look at the $FOAM_TUTORIALS/incompressible/simpleFoam/pipeCyclic case to get started.
mturcios777 is offline   Reply With Quote

Old   April 20, 2012, 20:03
Default
  #5
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
Thanks a lot mturcios777,

I will give it a try this weekend.

Pei-ying
phsieh2005 is offline   Reply With Quote

Old   April 21, 2012, 08:14
Default
  #6
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
Hi, mturcios777,

WOW, this pipeCyclic case is quite complicated. I have never encountered #codeStream before.

After I finished running the case using ./Allrun, I cannot even do reconstructPar and/or paraFoam/paraview to process the results.

Pei-Ying
phsieh2005 is offline   Reply With Quote

Old   April 23, 2012, 13:31
Default
  #7
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
What version of OF are you running? If you haven't modified the tutorial case it should reconstruct just fine.

In the future, please follow the guidelines in this thread to get a better chance that we can help you:

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

Good luck!
mturcios777 is offline   Reply With Quote

Old   April 25, 2012, 09:51
Default
  #8
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
Thanks a lot Marco!

I am using OpenFOAM-2.1.x on OpenSUSE 12.1.

I am not able to do reconstructPar. It looks like I will have to set

allowSystemOperations 1;

in $WM_PROJECT_DIR/etc/controlDict

It looks like #codeStream is a powerful way to specify BC using C++. This is something new to me and will have to learn it in more detail to understand it.

Anyhow, this example is sufficient for me know how to set cyclicAMI.

Pei-Ying
phsieh2005 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
Cyclic Boundary Condition Luiz Eduardo Bittencourt Sampaio (Sampaio) OpenFOAM Running, Solving & CFD 36 July 2, 2012 13:23
simpleSRFoam, makePatch and cyclic patch vaina74 OpenFOAM Running, Solving & CFD 7 February 28, 2011 08:26
CheckMeshbs errors ivanyao OpenFOAM Running, Solving & CFD 2 March 11, 2009 03:34
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 09:19
Multicomponent fluid Andrea CFX 2 October 11, 2004 06:12


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