Creating mesh for cyclicAMI boundaries
1 Attachment(s)
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 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 https://i.ibb.co/QkyHXGh/fig1.png the patches one over the other one https://i.ibb.co/pwHvVSB/fig2.png and one of the patch with the captured features. https://i.ibb.co/30MP8Vr/fig3.png 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++ -*----------------------------------*\ |
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). https://i.ibb.co/Js5wkGW/dif-Features.png |
Do you mean by using bigger (full) geometry file and cut by smaller blockMesh?
Will this solve the cyclic boundary issue? Quote:
|
Quote:
Regards |
All times are GMT -4. The time now is 15:49. |