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

[Commercial meshers] Cyclic BCs in PointwiseOpenFOAM export

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By cnsidero

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 20, 2009, 15:38
Default Cyclic BCs in PointwiseOpenFOAM export
  #1
Senior Member
 
Chris Sideroff
Join Date: Mar 2009
Location: Ottawa, ON, CAN
Posts: 434
Rep Power: 22
cnsidero is on a distinguished road
Offline a questioned was asked about the cyclic boundary condition type in Pointwise for the OpenFOAM export format.

I am told the standard OpenFOAM cyclic boundary condition requires the order of cells in a patch to match the ordering in the opposing patche.

Currently Pointwise does not have cyclic/periodic functionality - meaning even though your opposing patches are identical visually (geoemetrically, # points and distribution) there is no guarantee the cell orderings are matched. As such, exporting a grid from Pointwise to OpenFOAM with a cyclic boundary will most likely result in an error when running the mesh in OpenFOAM.

This deficiency is being addressed in two ways:

A. True cyclic/periodicity is scheduled to be implemented in the next version of Pointwise. When this happens the OpenFOAM export in Pointwise will be able to handle cyclic BCs correctly.

B. The General Grid Interface (GGI) that is currently in active development among some OpenFOAM'ers does not require matching face ordering for the opposing patches. Check with the GGI developers for the status on that functionality.

I will update this thread when periodicity is implemented in Pointwise.
mm.abdollahzadeh likes this.
cnsidero is offline   Reply With Quote

Old   February 22, 2010, 12:18
Default fixed?
  #2
Senior Member
 
maddalena's Avatar
 
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23
maddalena will become famous soon enough
Hello Chris,
has this lack been fixed in Pointwise? Can I create geometrically equal faces (domains) in Pointwise and export them in OpenFOAM? If the problem is still open, could I used the Fluent format to export and than fluentMeshToFoam?
In any case... how can I create geometrically equal domains in Pointwise?
Thank you,

Maddalena
maddalena is offline   Reply With Quote

Old   February 23, 2010, 11:44
Unhappy matching tolerance
  #3
Senior Member
 
maddalena's Avatar
 
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23
maddalena will become famous soon enough
Ok, I succeeded in creating geometrically equal faces (domains) in Pointwise and defining them as cyclic. However, when I run checkMesh (note, checkMesh and not createPatch, as a consequence that I have already defined the faces as cyclic in Pointwise), I had the following error:

Create polyMesh for time = 0

cyclicPolyPatch::calcTransforms : Writing half0 faces to OBJ file blablabla.obj
cyclicPolyPatch::calcTransforms : Writing half1 faces to OBJ file blablabla.obj
cyclicPolyPatch::calcTransforms : Writing coupled face centres as lines to blablabla.obj

face 38 area does not match neighbour 8138 by 0.101242% -- possible face ordering problem.
patch:cyclicSides my area:2.67 neighbour area:2.6727 matching tolerance:0.001
Mesh face:8797132 vertices:3((2.74863 39.0073 215.981) (1.96174 38.9641 214.09) (-2.27374e-13 39.0114 216.158))
Neighbour face:8805232 vertices:3((3.15983e-13 -39.0114 216.158) (1.96174 -38.9639 214.081) (2.74863 -39.0071 215.972))
Rerun with cyclic debug flag set for more information.

From function cyclicPolyPatch::calcTransforms()
in file meshes/polyMesh/polyPatches/constraint/cyclic/cyclicPolyPatch.C at line 180.

FOAM exiting


I know from other threads that this error may be due to the tolerance that is too high for the case. Indeed, the two faces do not meet the matching tolerance criteria, although their geometry is imported correctly, I can see it using objToVtk + paraFoam. However, changing the matching tolerance value in coupledPolyPatch.C did not help to solve the issue: the matching tolerance is still 0.001, even after wclean wmake!
Moreover, I am not able to run the case with cyclic debug flag on: changing the OpenFOAM/OpenFOAM-1.6/etc/controlDict did not produce any results!
Is this a bug or am I missing something? Thanks a lot to everyone that can shed some light!

maddalena
maddalena is offline   Reply With Quote

Old   March 3, 2010, 08:41
Red face Solved!
  #4
Senior Member
 
maddalena's Avatar
 
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23
maddalena will become famous soon enough
Ok ok... The two faces were not equals... Now it works perfectly!
And thanks to hrv, the pointwise -> OF conversion is simply great!
maddalena is offline   Reply With Quote

Old   March 16, 2010, 16:08
Smile Cyclic/Periodic boundaries now available
  #5
Senior Member
 
rmatus's Avatar
 
Rick Matus
Join Date: Mar 2009
Location: Fort Worth, Texas, USA
Posts: 116
Rep Power: 17
rmatus is on a distinguished road
The just released version of Pointwise (V16.03) includes true cyclic/periodic boundaries. Look under Create->Periodic->Translate/Rotate.

If you are already using Pointwise V16.02 you can download V16.03 from the Pointwise website.
rmatus is offline   Reply With Quote

Old   September 16, 2010, 03:50
Default
  #6
Senior Member
 
maddalena's Avatar
 
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23
maddalena will become famous soon enough
Quote:
Originally Posted by rmatus View Post
The just released version of Pointwise (V16.03) includes true cyclic/periodic boundaries. Look under Create->Periodic->Translate/Rotate.

If you are already using Pointwise V16.02 you can download V16.03 from the Pointwise website.
Hi Rick,
I was wondering if it is possible to define the order of cyclic in Pointwise, i.e. define the master and the slave face. As I showed here, this is important for some OF applications.
Regards

maddalena
maddalena is offline   Reply With Quote

Old   October 4, 2010, 06:40
Lightbulb
  #7
Senior Member
 
maddalena's Avatar
 
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23
maddalena will become famous soon enough
I believe I have the answer...
The patch order (master-slave) is set by the surface domain number, which is a consequence on the domain creation. For example let us say I have the following domain:
domain-1
domain-2
domain-3
domain-6
domain-7
and I want to make domain-6 cyclic. First I use create->periodic with domain-6. A new domain is created: domain-4 (the first empty name on my domain list). As a consequence, domain-4 will be the master and domain-6 the slave.
In any case, it will be better if the master slave can be set manually.

mad
maddalena is offline   Reply With Quote

Old   October 4, 2010, 10:36
Default No master-slave in Pointwise
  #8
Senior Member
 
rmatus's Avatar
 
Rick Matus
Join Date: Mar 2009
Location: Fort Worth, Texas, USA
Posts: 116
Rep Power: 17
rmatus is on a distinguished road
Hi Mad:

Sorry I missed your earlier post. It looks like you found the answer on your own though. There is no concept of master and slave periodic boundaries in Pointwise. They are twins. You can change either one, and its twin will be updated.

I will add your request for explicit definition of master-slave cyclic boundaries for OpenFOAM export to our feature request database.

Rick
rmatus is offline   Reply With Quote

Old   October 4, 2010, 11:06
Default
  #9
Senior Member
 
maddalena's Avatar
 
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23
maddalena will become famous soon enough
Quote:
Originally Posted by rmatus View Post
I will add your request for explicit definition of master-slave cyclic boundaries for OpenFOAM export to our feature request database.
This will be great! Indeed, defining master and slave faces implicitly is not always easy, and you must create the same domain in different way until you get what you want. But, well, if you can define them explicitly, our life will be better for sure!
One more question: where should I write for any related feature request connected with Pointwise? Of course, I will never ask: please made the mesh for me, but, well, I will be glad to help to improve the Pointwise-OF export as the software itself, suggesting something as I have just made. Is this forum ok or is there a more appropriate place?
Regards

mad
maddalena is offline   Reply With Quote

Old   October 4, 2010, 13:15
Default
  #10
Senior Member
 
rmatus's Avatar
 
Rick Matus
Join Date: Mar 2009
Location: Fort Worth, Texas, USA
Posts: 116
Rep Power: 17
rmatus is on a distinguished road
You are entitled to free technical support through email, telephone, and website. Your quickest and easiest way to get support would be through Alberto at Porto Ricerca, alberto@portoricerca.com, 039-466-9380.

You can also contact us directly in the US at support@pointwise.com, +1 817-377-2807.

Of course, we will answer questions in the forums too, but we do not always have time to check here:-)

Rick
rmatus is offline   Reply With Quote

Old   October 4, 2010, 13:17
Default
  #11
Senior Member
 
rmatus's Avatar
 
Rick Matus
Join Date: Mar 2009
Location: Fort Worth, Texas, USA
Posts: 116
Rep Power: 17
rmatus is on a distinguished road
I forgot to mention that technical support includes taking your suggestions for adding features or other improvements to our software, so please make suggestions!
rmatus is offline   Reply With Quote

Old   October 4, 2010, 14:00
Default
  #12
Senior Member
 
maddalena's Avatar
 
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23
maddalena will become famous soon enough
Quote:
Originally Posted by rmatus View Post
Alberto at Porto Ricerca, alberto@portoricerca.com, 039-466-9380.
Yes, of course, Alberto! I am so used to open source that sometimes I forget the good side of paying a software!
Let us say that I will write to Alberto for any kind of support, and of course post here if I found something that can be useful to other Foamers.
Thanks

mad
maddalena is offline   Reply With Quote

Old   April 28, 2013, 18:32
Default
  #13
Member
 
pooyan
Join Date: Nov 2011
Posts: 62
Rep Power: 15
sam1364 is on a distinguished road
Dear Maddalana

I have the issue of defining cyclic B.C in pointwise for OpenFoam solver. So, I want the inflow and outflow of my geometry to be cyclic. therefore, I specify cyclic B.C for inflow and outflow and then I import the grid in OpenFoam. However, there I receive some errors that the areas do not match. Can you please explain more about create- periodic in pointwise more at this forum so that everyone can see the solution.

thanks



Quote:
Originally Posted by maddalena View Post
Ok ok... The two faces were not equals... Now it works perfectly!
And thanks to hrv, the pointwise -> OF conversion is simply great!
sam1364 is offline   Reply With Quote

Old   April 30, 2013, 11:06
Default
  #14
Senior Member
 
maddalena's Avatar
 
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23
maddalena will become famous soon enough
Quote:
Originally Posted by sam1364 View Post
Dear Maddalana

I have the issue of defining cyclic B.C in pointwise for OpenFoam solver. So, I want the inflow and outflow of my geometry to be cyclic. therefore, I specify cyclic B.C for inflow and outflow and then I import the grid in OpenFoam. However, there I receive some errors that the areas do not match. Can you please explain more about create- periodic in pointwise more at this forum so that everyone can see the solution.

thanks
Hello,
if you are trying to use Pointwise -> OpenFoam export for OF 2.0 or following, this will not work. Export works up to previous versions. For the newest versions, you should define your boundary as patch, export the grid, and create cyclic using createPatch utility.
Enjoy

mad
maddalena is offline   Reply With Quote

Old   June 19, 2013, 13:53
Default PointWise to OpenFoam 2.2.0
  #15
New Member
 
Luis Felipe Paulinyi
Join Date: Feb 2013
Location: Southampton, UK
Posts: 4
Rep Power: 13
lfpaulinyi is on a distinguished road
Quote:
if you are trying to use Pointwise -> OpenFoam export for OF 2.0 or following, this will not work. Export works up to previous versions. For the newest versions, you should define your boundary as patch, export the grid, and create cyclic using createPatch utility.
Dear Maddalena,

I have a ascii multi-block structured mesh and I used Pointwise to extrude the mesh and generate the patches for the boundary conditions.
I really had a hard time until I started generating my mesh in the counter clockwise sense, before doing that I always had an error message saying that I probably had a face ordering problem.
I used the createPatch utility and it worked, however I believe that the matchTolerance that I had to set was to high (0.1), most of the examples that I see uses 0.0001. Is there any problem in setting such a high match tolerance?

It also creates the mesh in a new folder 0.005, why does the program does that? Can I copy the updated boundary conditions mesh on the folder 0.005 to the constant folder?

Thanks

Last edited by lfpaulinyi; June 20, 2013 at 08:14.
lfpaulinyi is offline   Reply With Quote

Old   July 19, 2013, 12:31
Default
  #16
Senior Member
 
lakeat's Avatar
 
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21
lakeat is on a distinguished road
Send a message via Skype™ to lakeat
createPatch will do the job. Here is a sample createPatchDict.

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1.x                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      createPatchDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

pointSync true;

patches
(
    {
    	// New name
        name inlet;
        patchInfo
        {
            type cyclic;
            neighbourPatch outlet;
        }

        constructFrom patches;
        // Name you used in pointwise. It could be the same as your "New name".
        patches (inlet);
    }
    {
        name outlet;
        patchInfo
        {
            type cyclic;
            neighbourPatch inlet;
        }

        constructFrom patches;
        patches (outlet);
    }
);

// ************************************************************************* //
__________________
~
Daniel WEI
-------------
Boeing Research & Technology - China
Beijing, China
Email
lakeat is offline   Reply With Quote

Old   July 19, 2013, 12:33
Default
  #17
Senior Member
 
lakeat's Avatar
 
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21
lakeat is on a distinguished road
Send a message via Skype™ to lakeat
Quote:
Originally Posted by cnsidero View Post
Offline a questioned was asked about the cyclic boundary condition type in Pointwise for the OpenFOAM export format.

I am told the standard OpenFOAM cyclic boundary condition requires the order of cells in a patch to match the ordering in the opposing patche.

Currently Pointwise does not have cyclic/periodic functionality - meaning even though your opposing patches are identical visually (geoemetrically, # points and distribution) there is no guarantee the cell orderings are matched. As such, exporting a grid from Pointwise to OpenFOAM with a cyclic boundary will most likely result in an error when running the mesh in OpenFOAM.

This deficiency is being addressed in two ways:

A. True cyclic/periodicity is scheduled to be implemented in the next version of Pointwise. When this happens the OpenFOAM export in Pointwise will be able to handle cyclic BCs correctly.

B. The General Grid Interface (GGI) that is currently in active development among some OpenFOAM'ers does not require matching face ordering for the opposing patches. Check with the GGI developers for the status on that functionality.

I will update this thread when periodicity is implemented in Pointwise.
Hi Chris,

Is there a way to save boundary conditions to a file in pointwise? Because there are so many boundaries names and types in my case, and I have a few cases that are having the same names and types, I just want to re-use them. I don't want to type them every time. Any ideas?
__________________
~
Daniel WEI
-------------
Boeing Research & Technology - China
Beijing, China
Email
lakeat is offline   Reply With Quote

Old   July 30, 2013, 06:43
Default pointwise to OpenFoam 2.2.0
  #18
New Member
 
Luis Felipe Paulinyi
Join Date: Feb 2013
Location: Southampton, UK
Posts: 4
Rep Power: 13
lfpaulinyi is on a distinguished road
Dear lakeat,

thanks for the createPatchDict file. I was already using one and it was apparently working. I was only able to make it work with a tolerance of 0.1 which I thought was very weird since the cells coordinates match exactly on the cyclic boundaries.

I am very happy that I found out what was the problem in my mesh, the problem was that I used the Pointwise command Create>Extrude>Normal to create 1 cell thickness on the mesh. The generated mesh did not work whith the createPatch command for tolerances higher than 0.1, my simulations ran for a while and then broke down...
When I used Create>Extrude>Translate to extrude the mesh worked perfectly.

Thanks for your help.

Paulinyi
lfpaulinyi is offline   Reply With Quote

Old   July 30, 2013, 10:36
Default
  #19
Senior Member
 
lakeat's Avatar
 
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21
lakeat is on a distinguished road
Send a message via Skype™ to lakeat
Yes, I always use "Create>Extrude>Translate" procedure.
__________________
~
Daniel WEI
-------------
Boeing Research & Technology - China
Beijing, China
Email
lakeat 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
LES in OF 3.0.1, no Output for nuSgs Mirage OpenFOAM Programming & Development 1 October 4, 2016 19:00
Cyclic Boundary Condition Errors? nyflyer OpenFOAM Running, Solving & CFD 2 April 26, 2016 15:14
Problems with Cyclic & init. BCs for turbulent (k-eps) pipe flow florian_krause OpenFOAM 3 December 1, 2012 05:11
cyclic patch and other BCs zxj160 OpenFOAM 0 June 29, 2012 13:11


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