Similar problem with createPatch
Hello,
I get the following error: Code:
--> FOAM FATAL IO ERROR: Attached is my createPatchDict which is stored in my system folder: Code:
/*--------------------------------*- C++ -*----------------------------------*\ |
Hi,
Code:
"ill defined primitiveEntry starting at keyword 'patches' on line 49 and ending at line 159" See here as well. mad |
Hi dear Gabriel
I am same problem as you. If you were successful in resolve this problem please give your experiences to me. Thanks |
Hi,
I generated the periodic patches using createPatchDict with the following specifications. (where 25 is the distance between inlet and outlet) Hope it helps~ Qiang patches ( name inletOutlet_half0; patchInfo { type cyclic; neighbourPatch inletOutlet_half1; transform translational; separationVector (25 0 0); } constructFrom patches; patches (inlet); set f0; } { name inletOutlet_half1; patchInfo { type cyclic; neighbourPatch inletOutlet_half0; transform translational; separationVector (-25 0 0); } constructFrom patches; patches (outlet); set f0; } ); Quote:
|
3 Attachment(s)
Hi dear Qiang
Thanks for your reply very much. My geometry and createPatchDict file are as below: Attachment 20981 Attachment 20982 When running the case this error reported: This probably means your geometry is not consistent with the specified separation and might lead to problems. Continuing with specified separation vector (0.0002 0 0.0002) patch:outlet1 neighbour:inlet1 --> FOAM Warning : From function cyclicPolyPatch::calcTransforms() in file meshes/polyMesh/polyPatches/constraint/cyclic/cyclicPolyPatch.C at line 368 In your mind are there any incorrect setting in createPatchDict file proportional to geometry? What are separationVector and rotationAxis and rotationCentre ? please demonstrate for me. In fact I do not know how I should adjust this parameters in createPatchDict file proportional to my geometry. All my case is as below Attachment 20983 Thanks |
Hi,
I am not sure about your case. Maybe you can specify transform rotational; rotationAxis ( 0 0 1 );//maybe(0 0 -1) rotationCentre ( x y 0 );//specify [x,y] to your case to ensure that the outlet boundary meet the inlet boundary after 270 degrees rotation around the center (anticlockwise) Best, Qiang Quote:
|
Dear mad
Have you any more suggestion ? |
Quote:
mad |
Dear mad
What is your suggestion about my geometry and createPatchDict that I was mentioned in above post numbering 25? please |
Quote:
mad |
Hi guys,
I have a similar problem for defining cyclic boundary conditions but here for unstructured grids. Well as you know cyclic boundary conditions defining is a bit different since OF 2.0.0, So as I understood, there is no need to use createPatch utility anymore. (Please correct me if I am wrong) Here is the page for new features of OF 2.0.0: http://www.openfoam.org/version2.0.0/meshing.php as you can see, cyclic boundary conditions are defined like this (in boundary file): patch0_half0 { type cyclic; nFaces 256; startFace 11520; matchTolerance 0.0001; neighbourPatch patch0_half1; } patch0_half1 { type cyclic; nFaces 256; startFace 11776; matchTolerance 0.0001; neighbourPatch patch0_half0; } So I did the same work and defined my cyclic patches like this: inlet { type cyclic; nFaces 543; startFace 281225; matchTolerance 0.0001; neighbourPatch outlet; } outlet { type cyclic; nFaces 530; startFace 281768; matchTolerance 0.0001; neighbourPatch inlet; } but there is a problem here. As you can see, the number of faces is different between inlet and outlet patches. one is 543 and the other is 530. by running checkMesh I get the following error: --> FOAM FATAL ERROR: For patch inlet there are 543 face centers, for the neighbour patch outlet there are 530 So its needed to make these numbers equal. But how is that possible for unstructured grids? any suggestions is greatly appreciated. FYI: I am using ICEM to generate the mesh. Thanks, Mojtaba |
Quote:
Copy-paste worked as a charm in the past for me. mad |
Quote:
But am I correct? Is there any need of createPatch utility for cyclic patches anymore? |
All times are GMT -4. The time now is 08:33. |