# [blockMesh] Create an axisymmetric grid from a 2D blockMeshDict

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 April 20, 2020, 06:29 Create an axisymmetric grid from a 2D blockMeshDict #1 Member   K Join Date: Jul 2017 Posts: 97 Rep Power: 8 Dear Foamers, I have a 2 dimensional de laval nozzle. The meshing is done via the blockMeshDict. Now, I want to convert it to an axisymmetric one. So, instead of a symmetry PLANE, I would have a symmetry line and the front and back plane becomes of wedge type. I saw the following utility "makeAxialMesh" which does exactly what I want. However, the problem is that it is not available in OpenFOAM 4.x. Does anyone know any other alternatives ? Thanks in advance for your help Last edited by mkhm; April 20, 2020 at 10:08.

 August 19, 2020, 03:43 #2 New Member   Join Date: Jul 2017 Posts: 10 Rep Power: 8 Hello, Here a working example of a wedge : Code: ```/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: plus | | \\ / A nd | Web: www.OpenFOAM.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object blockMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // convertToMeters 1; // m radius 2.5e-3; length 80e-3; halfWedgeAngle 2.5; // degrees // wedge coordinates : hAR #calc "degToRad(\$halfWedgeAngle)"; // half angle in rad wx #calc "\$radius*cos(\$hAR)"; wyp #calc "\$radius*sin(\$hAR)"; wyn #calc "-1.0*\$wyp"; cs #calc "cos(\$hAR)"; //#calc "Info<< \$halfWedgeAngle << \$cs << \$wx"; //#calc "Info<< \$wx << endl"; vertices ( (0 0 0) (1 0 0) (0 1 0) (0 0 1) (0 0 \$length) // 4 (\$wx \$wyn \$length) (\$wx \$wyn 0) (\$wx \$wyp 0) (\$wx \$wyp \$length) ); blocks ( hex (0 6 7 0 4 5 8 4) (50 1 200) simpleGrading (0.5 1 1) ); edges ( ); boundary ( inlet { type patch; faces ( (0 7 6 0) ); } outlet { type patch; faces ( (4 5 8 4) ); } wallPipe { type wall; faces ( (5 6 7 8) ); } front { type wedge; faces ( (0 6 5 4) ); } back { type wedge; faces ( (0 4 8 7) ); } axis { type symmetry; faces ( (0 4 4 0) ); } ); mergePatchPairs ( ); // ************************************************************************* //```

 Tags axis-symmetric, mesh 2d, nozzleflow2d, openfaom, wedge

 Thread Tools Search this Thread Search this Thread: Advanced Search Display Modes Linear Mode

 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 OffTrackbacks are Off Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Ganesh FLUENT 15 November 18, 2020 06:09 [GAMBIT] How to plot S pipe mariam.sara ANSYS Meshing & Geometry 36 November 7, 2013 15:22 brissyben ANSYS Meshing & Geometry 3 April 12, 2012 05:46 albcem OpenFOAM 0 May 5, 2009 14:17 Chuck Leakeas Main CFD Forum 2 May 26, 2000 11:18

All times are GMT -4. The time now is 07:31.

 Contact Us - CFD Online - Privacy Statement - Top