|
[Sponsors] |
[mesh manipulation] Problem with using createPatchDict to define cyclic boundaries |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 1, 2016, 22:18 |
Problem with using createPatchDict to define cyclic boundaries
|
#1 |
New Member
Katherine
Join Date: Feb 2016
Posts: 20
Rep Power: 10 |
Hello,
I'm having some problems with periodic boundary conditions for a mesh I created with Cubit to solve for laminar flow over a cylinder. I defined the top and bottom boundaries within Cubit as "periodic", but OpenFOAM doesn't recognize Cubit's definition of periodic boundaries (i.e. they were written as type "wall" in my boundary file after running fluentMeshToFoam). To solve this problem, I tried two things: first, I modified my boundary file as follows: Code:
FoamFile { version 2.0; format ascii; class polyBoundaryMesh; location "constant/polyMesh"; object boundary; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // //5 6 ( //wall_4 // top and bottom; want to make this into 2 patches of type "cyclic" //{ //type wall; //inGroups 1(wall); //nFaces 400; //startFace 812000; //} // Patches for top and bottom... top // top boundary { type patch; nFaces 200; startFace 812000; } bottom // bottom boundary { type patch; nFaces 200; startFace 812200; } velocity-inlet_5 { type patch; nFaces 200; startFace 812400; } outflow_6 { type patch; nFaces 200; startFace 812600; } wall_7 // cylinder walls { type wall; inGroups 1(wall); nFaces 800; startFace 812800; } frontAndBackPlanes { type empty; inGroups 1(empty); nFaces 812800; startFace 813600; } ) Code:
// Sync coupled points pointSync true; // Create patches patches ( { // Name of new patch name periodic_top; // Dictionary to construct new patch from patchInfo { type cyclic; neighbourPatch periodic_bottom; matchTolerance 0.01; // optional; set transformation tensor transform translational; separationVector (0 50 0); // distance between two patches in "y" } // How to construct; either patches or set constructFrom patches; // If constructFrom = patches : name of patches patches (top); // If constructFrom = set : name of faceSet set f0; } { // Name of new patch name periodic_bottom; // Dictionary to construct new patch from patchInfo { type cyclic; neighbourPatch periodic_top; matchTolerance 0.01; // optional; set transformation tensor transform translational; separationVector (0 -50 0); } // How to construct; either patches or set constructFrom patches; // If constructFrom = patches : name of patches patches (bottom); // If constructFrom = set : name of faceSet set f0; } ); Code:
foamJob createPatch -overwrite Code:
--> FOAM FATAL ERROR: face 61 area does not match neighbour by 2.76759620807% -- possible face ordering problem. Attachment 46424 |
|
Tags |
createpatchdict, cyclic bc, cyclic boundaries, cyclic patches |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mapped vs Cyclic Boundaries in OpenFOAM | arsenis | OpenFOAM Running, Solving & CFD | 1 | February 8, 2023 22:13 |
[Commercial meshers] Problem with cyclic boundaries in Openfoam 2.3, mesh import from ICEM | Scabbard | OpenFOAM Meshing & Mesh Conversion | 29 | October 6, 2020 22:14 |
Using sprayFOAM on cyclic problem with wedge boundaries | Mentalo | OpenFOAM Running, Solving & CFD | 5 | September 7, 2018 03:12 |
[mesh manipulation] Problems with rotational cyclic boundaries | TReviol | OpenFOAM Meshing & Mesh Conversion | 8 | July 11, 2014 04:45 |
[Commercial meshers] Handling cyclic BC from gambit to openfoam for a cascade airfoil problem - OF 1.6 | maverick | OpenFOAM Meshing & Mesh Conversion | 2 | June 18, 2011 05:36 |