|
[Sponsors] |
[snappyHexMesh] Creating mesh for cyclicAMI boundaries |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 16, 2021, 15:17 |
Creating mesh for cyclicAMI boundaries
|
#1 |
Senior Member
Franco
Join Date: Nov 2019
Location: Compiègne, France
Posts: 129
Rep Power: 7 |
Hello,
I am trying to simulate the flow inside a periodic structure, therefore I am trying to use the cyclicAMI as boundary condition for the Inlet and Outlet patch. my workflow is the following: blockMesh (without defining any patch) surfaceFeatureExtract snappyHexMesh -overwrite (recovering the patchs from the stl: Inlet, Outlet,sym_1, sym_2, Walls) createPatch-overwrite (using createPatch to create InletAMI and OutletAMI from the Inlet and Outlet patches created in snappyHex) the Inlet and Outlet patches looks at least really similar in paraview (see figures at the end of the thread), they are separate in a distance of (9,0,0) but I am having a lot of troubles with the cyclicAMI implementation, when I run the checkMesh -allTopology -allGeometry sometimes i get the following 2 different errors (when I play a little bit with snappy and createPatch settings): Code:
Calculating AMI weights between owner patch: InletAMI and neighbour patch: OutletAMI AMI: Creating addressing and weights between 31721 source faces and 31730 target faces [0] [0] [0] --> FOAM FATAL ERROR: (openfoam-2012) [0] Unable to set target face for source face 31714 [0] [0] From virtual bool Foam::faceAreaWeightAMI::setNextFaces(Foam::label&, Foam::label&, Foam::label&, const Foam::bitSet&, Foam::labelList&, const Foam::DynamicList<int>&, bool) const [0] in file AMIInterpolation/AMIInterpolation/faceAreaWeightAMI/faceAreaWeightAMI.C at line 347. [0] FOAM parallel run aborting the geometry at least visually is correctly described and I have used snapping to features (and the features are correctly detected) I tried to play with the number of iterations of snapping right now I am at 25. I have searched in the forum without a lot of luck in these subject, any help would be appreciated. the two patches the patches one over the other one and one of the patch with the captured features. I also add the snappy dict and createPatch dict (I know that there is a problem with the sym_1 and sym_2 patches in the createPatchDict but at these moment it is not the issue.) I am using OF v2012 Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v2012 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object createPatchDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // pointSync false; patches ( { //- Inlet name InletAMI; patchInfo { type cyclicAMI; matchTolerance 1; neighbourPatch OutletAMI; transform translational; separationVector (-9 0 0); } constructFrom patches; patches (Inlet); } { //- Outlet name OutletAMI; patchInfo { type cyclicAMI; matchTolerance 1; neighbourPatch InletAMI; transform translational; separationVector (9 0 0); } constructFrom patches; patches (Outlet); } { name sym_1; patchInfo { type symmetry; } constructFrom patches; patches (sym_1); } { name sym_2; patchInfo { type symmetry; } constructFrom patches; patches (sym_2); } ); // ************************************************************************* // |
|
May 18, 2021, 06:11 |
|
#2 |
Senior Member
Franco
Join Date: Nov 2019
Location: Compiègne, France
Posts: 129
Rep Power: 7 |
I am answering my own post for anyone that find in the same situation.
I found at least a partial solution for my issue and made it work. the problem was coming from the feature snapping. I was using a quarter of the geometry (that had two symmetry planes) as the input mesh for the snappy. and when I was doing this the features were perfectly detected, but that brought some problems.I tryied another workflow where I introduce a bigger surface mesh than my simulation volume (instead of the quarter a 360°) and "cut it" with my background mesh therefore the features detected were less (as the ones in the cut will not be detected by surfaceFeatureExtract). this solved my issue. it is not a perfect solution but at least it works.... here is a image showing the difference in the features detected (in right the previews features in left the new ones) and in red the simulation volume (that is, the surface mesh intersected with the background mesh). |
|
October 10, 2022, 23:13 |
|
#3 | |
Member
|
Do you mean by using bigger (full) geometry file and cut by smaller blockMesh?
Will this solve the cyclic boundary issue? Quote:
|
||
October 11, 2022, 01:07 |
|
#4 | |
Senior Member
Franco
Join Date: Nov 2019
Location: Compiègne, France
Posts: 129
Rep Power: 7 |
Quote:
Regards |
||
Tags |
cyclicami bcs, snapphexmesh |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] non uniform mesh near the stl object | vava10 | OpenFOAM Meshing & Mesh Conversion | 0 | January 31, 2021 15:41 |
[ANSYS Meshing] What and how to use sweep mesh by inflating the boundaries? | alvinthum | ANSYS Meshing & Geometry | 2 | March 26, 2018 06:30 |
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) | cfdonline2mohsen | OpenFOAM | 3 | October 21, 2013 10:28 |
fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 12:55 |
How to control Minximum mesh space? | hung | FLUENT | 7 | April 18, 2005 10:38 |