simpleSRFoam, makePatch and cyclic patch
1 Attachment(s)
Hi everybody.
I'm trying to set up case with simpleSRFFoam solver (OpenFOAM-1.5-dev). I based myself on the mixer tutorial in order to simulate a 4 blades marine propeller. I created a simple geometry for a test, a one single blade into a 90° wedge, so don't care if the mesh is coarse and the domain is small. I generated a mesh with Netgen and then exported in OpenFOAM-1.5+ format. The tutorial is not clear about that - maybe becouse the side periodic patched are equivalent - but I guess I must 'map' one side on the other one. If I'm right, I can use createPatch for that, but I'm experienced some errors. Does it depend on my horrible testing mesh? Isn't my boundary file correct? I attach a pic of the mesh and report my boundary file and the createPatchDict. boundary Code:
7 Code:
matchTolerance 1E-3; Code:
Create time After read some posts, I was in doubt about the side patches defining, so I created one single patche for both side faces. I launched simpleSRFFoam and obtain Code:
Create time |
I've just run a simple test with a meshed cube and I realized that createPatch works fine when the side faces have the same number of tet cells. If I generate a different amount of cells, it doesn't work anymore. Is this a constraint? I wonder how I can control and obtain the same number of side cells in more complex geometries.
Please, can anyone help me? :confused: |
If you want to create a cyclic patch from two patches, those two patches should match (within some tolerance). So if you create the mesh with some external mesh generator, be sure that the patches are linked. The number of cells should be the same, but also the relative position.
But you are using 1.5-dev, so if you cannot create a mesh with matching patches, you can always use the cyclicGgi patch type. The cyclicGgi will also work for more complicated problems, when both patches (cyclic1 and cyclic2) are full non-matching. |
Thanks for your reply. I already used cyclicGgi with MRFSimpleFoam solver. I'll make a test.
|
Quote:
I am investigating the flow through a single channel of a radial pump. So I have to use cyclicGgi (OF 1.5-dev). I ask You: Have I to use createPatch, Am I advised to do so, or what else? For the moment I do not perform this action, and the calculations seem to perform well, even if the results compared with some others are not so good. So I am worried about cyclicGgi. Thank You in advance Yours sincerely, Claudio |
@Claudio
I don't see the point in using createPatch. The only thing I used for cyclicGgi was faceSet and setsToZones to create the two cyclic zones from the cyclic patches. You can see a description of the use of cyclicGgi in this presentation (slide 23): http://www.tfd.chalmers.se/~hani/kurser/OS_CFD_2009/OlivierPresentation/case_study_2009_OP.pdf Best regards, Alex. |
Quote:
I have troubles when decomposing the case having cyclicGgi patches. A segmentation fault occurs? Is the a procedure to be followed to perform this task? I have already stored in the controlDict file the string "preservePatches ( Per1 );". However this error occurs anyway. Moreover, why I cannot define also a preserve patch for the other cyclic patch, named Per2? Thank You, Claudio |
Quote:
Quote:
preservePatches (Per1 Per2); |
All times are GMT -4. The time now is 00:48. |