|
[Sponsors] |
createPatch, cycllicAMI and SeperationVector in OpenFOAM 9 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 27, 2022, 20:06 |
createPatch, cycllicAMI and SeperationVector in OpenFOAM 9
|
#1 |
New Member
Mahdi
Join Date: May 2016
Posts: 22
Rep Power: 10 |
Hi everyone,
I am a beginner in OpenFOAM and having a problem for prescribing a cyclicAMI boundary condition for this geometry. The mesh was an Ansys Fluent mesh with the boundaries on top and bottom (Upper1, Lower 1,...) as Wall, and then changed to cyclicAMI in OpenFOAM version 9. Honestly, I couldn't understand how to define the SeperationVector for the cyclicAMI BC. I did the following step and got errors in paraFoam. 1. First, I used fluentMeshToFoam to convert the Fluent mesh to OpenFoam mesh. I simply used that this syntax without reordering or anything. 2. I used cyclicAMI in createPatchDict and then createPatch to implement the cyclicAMI. For example, for the UPPER1 and LOWER1, I used: patches ( { // Name of new patch name Upper1_cyc; // Dictionary to construct new patch from patchInfo { type cyclicAMI; neighbourPatch Lower1_cyc; matchTolerance 50; transform translational; separationVector (0 .3 0); } // How to construct: either from 'patches' or 'set' constructFrom patches; // If constructFrom = patches : names of patches. Wildcards allowed. patches (UPPER); // If constructFrom = set : name of faceSet // set f0; } { // Name of new patch name Lower1_cyc; // Dictionary to construct new patch from patchInfo { type cyclicAMI; neighbourPatch Upper1_cyc; matchTolerance 50; transform translational; separationVector (0 -.3 0); } I did not know how the direction of the seperationVector must be, but tested both +0.3 and -0.3 for the y direction. 3. I changed the boundary conditions for P and U accordingly. When I tried to open the mesh in paraFoam with the fields of P and U, the following error appeared and exit: Source and target patch bounding boxes are not similar source box span : (0.095 0 0.0180278) target box span : (0.095 0 0.0180278) source box : (-0.1 -0.15 -0.00901388) (-0.005 -0.15 0.00901388) target box : (-0.1 0.15 -0.00901388) (-0.005 0.15 0.00901388) inflated target box : (-0.104835 0.145165 -0.0138486) (-0.00016523 0.154835 0.0138486) I would appreciate any input for this. Thank you everyone for your time. |
|
December 27, 2022, 20:25 |
|
#2 |
New Member
Mahdi
Join Date: May 2016
Posts: 22
Rep Power: 10 |
I think I got my mistake for now.
Thank you all! |
|
Tags |
cyclicami bcs, openfoam 9, seperationvector |
|
|