CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[snappyHexMesh] From 3D to 2D with snappy

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 2, 2024, 07:17
Default From 3D to 2D with snappy
  #1
New Member
 
Join Date: Oct 2024
Posts: 6
Rep Power: 2
Albertine is on a distinguished road
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


// ************************************************** *********************** //
Albertine is offline   Reply With Quote

Old   November 3, 2024, 05:26
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
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
This will give you some information about the utility, and will point to tutorials using it. You can have a look at the tutorials to find one doing what you want to achieve and see how the extrudeMeshDict file is defined.

Regards,
Yann
Yann is offline   Reply With Quote

Reply

Tags
snapphhexmesh, snappyhexmesh 2d


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 02:55.