|
[Sponsors] |
[Other] [cfMesh] Error when creating AMI patches propeller |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 21, 2021, 15:23 |
[cfMesh] Error when creating AMI patches propeller
|
#1 | |
Member
Gabriel Felix
Join Date: May 2021
Location: Brazil
Posts: 35
Rep Power: 6 |
Hi folks,
I've been running propeller simulations over the last months, and I had been using snappyHexMesh for meshing the propeller geometry and simulation domain before jumping into cfMesh. My simulation structure is completely based on the pimpleFoam propeller tutorial, except that I modified it to run my geometry in compressible steady-state (rhoSimpleFoam) and using MRF technique. SHM meshes were never as refined as they should be, specially at the leading-edge and near the blade tips. As reported in this thread: [snappyHexMesh] Rough leading-edge and trailing-edge after snapping, I spent around 2 months trying to improve the mesh, which I actually did, however not sufficiently as I wanted. SHM fails to refine the surface after a certain surface refinement level and also fails to add boundary layers properly to the surface. After researching for alternatives I came across cfMesh through this video: How to create your first mesh with cfMesh - tutorial by József Nagy that helped me a lot with the introduction to the mesher. It is a much simpler, more intuitive, increadibly fast, and requires fewer configurations compared to SHM. It really surprised me. I have started meshing with it and the very first mesh I came out with was better than any mesh I had done before with SHM. Not only the surface refinement was excelent, but it succesfully added layers on the whole propeller/airfoil surface. It also executed the mesh in less than a minute, when compared to 10-30 minutes of SHM. I found cfMesh really great, but I'm having difficulties to integrate the mesh to my simulation structure and to dealing with some AMI patches, which I'm going to further detail next. My domain is composed by: - propellerTip: are the prop blades - propellerSpinner: the prop spinner - innerCylinderSmall: the "moving" domain - outerCylinder: an outer cylinder that contains the other patches as well as the farfield upstream and downstream of the propeller snappyHexMesh The meshing process that I was using was: create a blockMesh wrapping the whole domain; extract stl file surface with surfaceFeatureExtract, mesh with snappyHexMesh;configure the boundary, inlet and outlet face sets; and finally create AMI, inlet and outlet patches.cfMesh Images from the differences of SHM and cfMesh meshes. Left SHM, right cfMesh |
||
October 27, 2021, 12:38 |
[update]
|
#2 |
Member
Gabriel Felix
Join Date: May 2021
Location: Brazil
Posts: 35
Rep Power: 6 |
Hi folks,
I succesfully created the faceSet, cellSet, faceZone and cellZone with the following topoSet script: Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.x | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object topoSetDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // actions ( // ================================================== { name innerCylinderSmallCell; type cellSet; action new; source patchToCell; sourceInfo { patch innerCylinderSmall; } } { name innerCylinderSmallFace; type faceSet; action new; source patchToFace; sourceInfo { patch innerCylinderSmall; } } { name innerCylinderSmallFaceZone; type faceZoneSet; action new; source setsToFaceZone; sourceInfo { faceSet innerCylinderSmallFace; cellSet innerCylinderSmallCell; } } { name innerCylinderSmallCellZone; type cellZoneSet; action new; source setToCellZone; sourceInfo { set innerCylinderSmallCell; } } ); // ************************************************************************* // Code:
refinementSurfaces { innerCylinderSmall { level (2 2); faceType boundary; cellZone innerCylinderSmall; faceZone innerCylinderSmall; cellZoneInside inside; } Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object createBafflesDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // internalFacesOnly true; baffles { innerCylinderSmall { type faceZone; zoneName innerCylinderSmallFaceZone; flip false; patches { master { name innerCylinderSmall; type patch; neighbourPatch innerCylinderSmall_slave; } //slave { ${..master} } slave { name innerCylinderSmall_slave; type patch; neighbourPatch innerCylinderSmall; } } } } // ************************************************************************* // |
|
July 5, 2023, 21:54 |
|
#3 |
Member
Gabriel Felix
Join Date: May 2021
Location: Brazil
Posts: 35
Rep Power: 6 |
Hello guys, I finally found a solution to the problem and managed to mesh the propeller case with cfMesh succesfully. I posted the detailed solution in this thread.
[Guide] How to mesh a propeller domain using cfMesh - AMI patch Case files are also available. |
|
Tags |
ami, cfmesh, error, patch, propeller |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Foam::error::PrintStack | almir | OpenFOAM Running, Solving & CFD | 92 | May 21, 2024 08:56 |
Creating patches in OpenFOAM | shahidkhan | OpenFOAM | 1 | February 5, 2020 02:46 |
Possible bug with stitchMesh and cyclics in OpenFoam | Jack001 | OpenFOAM Pre-Processing | 0 | May 21, 2016 09:00 |
[mesh manipulation] mirrorMesh and undoing the joining of patches | chegdan | OpenFOAM Meshing & Mesh Conversion | 3 | October 21, 2015 09:09 |
Regarding periodic BC in ICEM generated grid | Tarak | OpenFOAM | 32 | April 30, 2013 15:46 |