|
[Sponsors] |
November 2, 2024, 07:17 |
From 3D to 2D with snappy
|
#1 |
New Member
Join Date: Oct 2024
Posts: 6
Rep Power: 2 |
Good morning,
Im'm trying to create a 2D mesh using snappyHexMesh, of course I need to start from a 3D mesh and then I would like to make a 2D extrusion in order to have just one cell in the z direction. I would like to use the extruddeMesh command with the following dict. The command runs without errors however non modifications appear. Can you help me? Thanks in advance /*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 12 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { format ascii; class dictionary; object extrudeDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // constructFrom mesh; // Estrudere dalla mesh esistente sourceCase "./"; // Percorso del tuo caso sourcePatches (front); // Nome del patch che vuoi estrudere exposedPatchName upperWall; // Nome del patch esposto flipNormals false; // Non invertire le normali // Estrusione a normale extrudeModel linearNormal; // Definisci il coefficiente di estrusione linearNormalCoeffs { thickness 0.001; // Spessore a 0 per avere una sola cella } // Specifica il numero di strati, che sarà 1 poiché vogliamo una sola cella nLayers 1; // Solo uno strato expansionRatio 1.0; // Nessuna espansione mergeFaces false; // Non unire le facce mergeTol 0; // Tolleranza per la fusione degli spigoli // ************************************************** *********************** // |
|
November 3, 2024, 05:26 |
|
#2 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29 |
Hello Albertine,
I would expect something like constructFrom patch; rather than mesh. Since you are using OpenFOAM-12, you can use this command: Code:
foamInfo extrudeMesh Regards, Yann |
|
Tags |
snapphhexmesh, snappyhexmesh 2d |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] help to troubleshooting snappy mesh errors | otaolafr | OpenFOAM Meshing & Mesh Conversion | 3 | July 16, 2023 09:04 |
Error while running pisoFoam with snappy but ran smoothly without snappy in empty dm | faiazk | OpenFOAM Running, Solving & CFD | 0 | October 24, 2018 14:51 |
[Gmsh] STL on Gmsh + Mesh on Snappy | adrieno | OpenFOAM Meshing & Mesh Conversion | 3 | May 20, 2016 13:22 |
[snappyHexMesh] Bad snappy - an igloo challenge | GerhardHolzinger | OpenFOAM Meshing & Mesh Conversion | 0 | January 24, 2016 11:10 |
[snappyHexMesh] Snappy Hex Mesh Generation: error preventing the .eMesh file generation. | Mariana Garcia | OpenFOAM Meshing & Mesh Conversion | 1 | January 7, 2016 05:24 |