CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   extrudeMesh-utilitiy: how to (http://www.cfd-online.com/Forums/openfoam/80855-extrudemesh-utilitiy-how.html)

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?

Code:

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


(
      Pressure_inlet
    {
        type            patch;
        nFaces          30;
        startFace      64438;
    }
 
    Tube
    {
        type            wall;
        nFaces          140;
        startFace      64538;
    }
 
    Pressure_outlet
    {
        type            patch;
        nFaces          176;
        startFace      64678;
    }
 
    frontAndBackPlanes
    {
        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...

regards,


-Louis

bruxellois October 9, 2010 06:09

OK, thanks a lot.

Regards.

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?
/N

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,
Tom


All times are GMT -4. The time now is 22:49.