|
[Sponsors] |
[cfMesh] Cyclic boundary condition with cfMesh |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 28, 2018, 10:53 |
Cyclic boundary condition with cfMesh
|
#1 |
Senior Member
Lukas Fischer
Join Date: May 2018
Location: Germany, Munich
Posts: 117
Rep Power: 8 |
Hi Foamers,
How can I assign neighboring patches in the meshDict? If I have to apply cyclicAMI I would also like to know how to set the transform and separation vector in the meshDict. Here are my steps: I created the geometry (.stl) file with ICEM. The renameBoundary dictionary in the meshDict looks like this: Code:
renameBoundary { newPatchNames { "OUTLET" { newName OUTLET; type cyclic; neighbourPatch INLET; } "INLET" { newName INLET; type cyclic; neighbourPatch OUTLET; } "WALL" { newName WALL; type wall; } } } Code:
renameBoundary { newPatchNames { "OUTLET" { newName OUTLET; type cyclicAMI; neighbourPatch INLET; transform translational; separationVector (0 0 -0.032); } "INLET" { newName INLET; type cyclicAMI; neighbourPatch OUTLET; transform translational; separationVector (0 0 0.032); } "WALL" { newName WALL; type wall; } } } I am noticing that cfMesh ignores the neighbourPatches and the other parameters if cyclicAMI is used. The boundary file in constant/polyMesh/boundary does not contain the other parameters of the dictionary. Hence, it would have to be manually added. Code:
location "constant/polyMesh"; object boundary; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 3 ( OUTLET { type cyclicAMI; nFaces 2502; startFace 1567898; } INLET { type cyclicAMI; nFaces 2502; startFace 1570400; } WALL { type wall; nFaces 47088; startFace 1572902; } ) Lukas Last edited by lukasf; September 18, 2018 at 04:57. Reason: Adjusting the question asked |
|
September 18, 2018, 11:05 |
New Thread
|
#2 |
Senior Member
Lukas Fischer
Join Date: May 2018
Location: Germany, Munich
Posts: 117
Rep Power: 8 |
I opened a new thread with a more fitting title in my opinion:
How to use renameBoundary for cyclic boundary conditions? |
|
May 22, 2020, 19:19 |
|
#3 |
Member
niewiemnic
Join Date: Jan 2018
Location: Niemcy
Posts: 80
Rep Power: 8 |
I also struggled with this problem and it worked well finally after 2h...
My situation: I want to set cyclicAMI for planes front_c - back_c and top_c - bottom_c with this cfd-domain, Code:
xmin -1.1; xmax 2.2; ymin -0.133; ymax -0.008; zmin -2.2; zmax 2.2; back_c is on ymin top_c is on zmax bottom_c is on zmin 1. your_geometry.fms for example with Code:
profil wall front patch back patch inlet patch outlet patch top patch bottom patch 3. createPatch with this createPatchDict Code:
pointSync false; // Patches to create. patches ( { // Name of new patch name front_c; // Dictionary to construct new patch from patchInfo { type cyclicAMI; neighbourPatch back_c; transform translational; separationVector (0 -0.125 0); //(0 -0.133 0); // Optional non-default tolerance to be able to define cyclics // on bad meshes matchTolerance 1E-2; } // How to construct: either from 'patches' or 'set' constructFrom patches; // If constructFrom = patches : names of patches. Wildcards allowed. patches (front); // If constructFrom = set : name of faceSet //set f0; } { // Name of new patch name back_c; // Dictionary to construct new patch from patchInfo { type cyclicAMI; neighbourPatch front_c; transform translational; separationVector (0 0.125 0); //(0 -0.008 0); matchTolerance 1E-2; } // How to construct: either from 'patches' or 'set' constructFrom patches; // If constructFrom = patches : names of patches. Wildcards allowed. patches (back); // If constructFrom = set : name of faceSet //set f0; } { // Name of new patch name top_c; // Dictionary to construct new patch from patchInfo { type cyclicAMI; neighbourPatch bottom_c; transform translational; separationVector (0 0 -4.4); //(0 0 2.2); matchTolerance 1E-2; } // How to construct: either from 'patches' or 'set' constructFrom patches; // If constructFrom = patches : names of patches. Wildcards allowed. patches (top); // If constructFrom = set : name of faceSet //set f0; } { // Name of new patch name bottom_c; // Dictionary to construct new patch from patchInfo { type cyclicAMI; neighbourPatch top_c; transform translational; separationVector (0 0 4.4); //(0 0 -2.2); matchTolerance 1E-2; } // How to construct: either from 'patches' or 'set' constructFrom patches; // If constructFrom = patches : names of patches. Wildcards allowed. patches (bottom); // If constructFrom = set : name of faceSet //set f0; } ); |
|
Tags |
cfmesh, cyclic boundaries, cyclicami |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
sliding mesh problem in CFX | Saima | CFX | 46 | September 11, 2021 08:38 |
cyclic patchType with inletOutlet boundary condition | mikeP | OpenFOAM Running, Solving & CFD | 3 | August 4, 2021 15:29 |
Cyclic Boundary Condition Errors? | nyflyer | OpenFOAM Running, Solving & CFD | 2 | April 26, 2016 15:14 |
Basic Nozzle-Expander Design | karmavatar | CFX | 20 | March 20, 2016 09:44 |
vorticity boundary condition | bearcharge | Main CFD Forum | 0 | May 14, 2010 12:32 |