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

[Other] wedge geometry from rectangular domain using extrudeMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 18, 2024, 12:54
Default wedge geometry from rectangular domain using extrudeMesh
  #1
New Member
 
Carmelo Baronetto
Join Date: Dec 2023
Posts: 22
Rep Power: 2
Carmelo98 is on a distinguished road
Good morning to all,
I hope you can help me with this problem.
I want to create a wedge geometry to simulate a portion of a cylinder. The mesh requires a local cylindrical refinement.
I followed these steps:
1) I created a rectagular domain using blockMesh. I set boundary types in the blockMeshDict for all patches.
2) I locally refined using topoSet and refineMesh
3) Finally I extruded the mesh using extrudeMesh, which generates a wedge of 5 degrees.


The geometry looks fine but I guess there are some issues with boundaries.

All the boundaries set in blockMeshDict are still present in the wedge geometry, except for the lower side of the rectagular which is now the axis of the cylinder.

I guess no boundary condition has to be set fo this face but I don't know how to manage it. In this case, I didn't specify any boundary conditions and it is set as empty by default (as it is expected). If I simply cancel that boundary in the boundary.C, checkMesh returns an error.

Code:
*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2312                                  |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    arch        "LSB;label=32;scalar=64";
    class       polyBoundaryMesh;
    location    "constant/polyMesh";
    object      boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

7
(
    inlet
    {
        type            patch;
        nFaces          16;
        startFace       128270;
    }
    confine_sup
    {
        type            patch;
        nFaces          100;
        startFace       128286;
    }
    confine_dx
    {
        type            patch;
        nFaces          30;
        startFace       128386;
    }
    wall_domain
    {
        type            wall;
        inGroups        1(wall);
        nFaces          104;
        startFace       128416;
    }
    side_zero
    {
        type            wedge;
        inGroups        1(wedge);
        nFaces          64200;
        startFace       128520;
    }
    side_pos
    {
        type            wedge;
        inGroups        1(wedge);
        nFaces          64200;
        startFace       192720;
    }
    defaultFaces
    {
        type            empty;
        inGroups        1(empty);
        nFaces          700;
        startFace       256920;
    }
)
does anyone know how to fix this problem?
Thank you
Attached Images
File Type: jpg rectangular_domain.jpg (82.7 KB, 4 views)
File Type: jpg wedge_domain.jpg (50.2 KB, 7 views)
Carmelo98 is offline   Reply With Quote

Reply


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
How to mesh a domain around a rounded geometry with structured grid quarkz Pointwise & Gridgen 2 March 5, 2019 22:05
Sudden increase the residual of Maxwell's equations hsezsz CFX 2 October 13, 2016 06:58
Domain Imbalance HMR CFX 5 October 10, 2016 05:57
Problem with building geometry - concentric cylinders Rhoddwen OpenFOAM Pre-Processing 9 December 17, 2014 10:02
block geometry inside fluid domain jeff Main CFD Forum 18 April 12, 2004 11:37


All times are GMT -4. The time now is 06:43.