CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM (
-   -   extrudeMesh-utilitiy: how to (

bruxellois October 8, 2010 12:46

extrudeMesh-utilitiy: how to
1 Attachment(s)
Dear all,

I want to extrude my mesh (image in attach), recently converted with fluentMeshToFoam, into sphere. It don't know how to do it and there is no documentation to explain it.

Any idea please?


    version    2.0;
    format      ascii;
    class      polyBoundaryMesh;
    location    "3e-07/polyMesh";
    object      boundary;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

        type            patch;
        nFaces          30;
        startFace      64438;
        type            wall;
        nFaces          140;
        startFace      64538;
        type            patch;
        nFaces          176;
        startFace      64678;
        type            empty;
        nFaces          32344;
        startFace      64854;

// ************************************************************************* //

Best regards.

louisgag October 8, 2010 13:01

I've never done anything like that but you might want to look into setting a wall to something that "merges" the end to the begging thus making it into a sphere.. although only good for symmetric flows...

sorry but thats not my specialty I'm only answering because you asked me to...



bruxellois October 9, 2010 06:09

OK, thanks a lot.


paka October 14, 2010 15:47

If I were you I would go back directly to the meshing tool (whatever you use, i.e. Gambit?) and do it over there. I'm not really sure which portion you want to extrude, I assume the lower flat boundary, is it right?

I never used any external extruding tool, whenever I had such need I would do it directly into mesher.

bruxellois October 14, 2010 15:52

thanks for your reponse,

I want to extrude my mesh to a sphere, i hope doing this under FOAM if it's possible.

wikstrom October 26, 2010 11:46

Would mirrorMesh suffice?

wikstrom October 26, 2010 12:06

Oh, it was a 2D mesh. I've got no example on the shelf, but I suppose the wedge extrudeModel does what you want. Use one of the sides for sourcePatch and set the wedgeCoeffs. Set the mergeFaces to true.

Just tried it. Works fine.

shackman287 February 2, 2012 22:05

Make a 3D wedge in blockMesh. Then you can use extrudeMesh with the wedge model choosen. To rotated the wedge 355 degr (5 degrees is already created from blockMesh) and merge the front and back patches so that they meet together once wrapped around. This will eliminate the two patches and leave you with your sphere :)

tomloh April 29, 2012 18:37

Hi Charlie,

I am trying to generate a cylinder from my axisymmetric mesh and I was thinking of using extrudeMesh. I was wondering if you could shed some light on what I need to include in my case setup, ie: extrudeMeshDict and wedge coefficients. I'm finding it difficult to gather information on this...

Kind Regards,

All times are GMT -4. The time now is 08:18.