|
[Sponsors] |
[mesh manipulation] Unstructured tetrahedral mesh Refinement using REFINEMESH DICT UTILITY.???? POSSIBLE? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 11, 2017, 15:15 |
Unstructured tetrahedral mesh Refinement using REFINEMESH DICT UTILITY.???? POSSIBLE?
|
#1 |
Senior Member
sandy
Join Date: Feb 2016
Location: .
Posts: 117
Rep Power: 10 |
Hey foamers
i am working on a problem with a cylinder with tetrahedral mesh created in gambit. pic is attached below. i want to know whether refinement is possible near the wall region, say a circular patch from the walls, can this be done using Refinemesh -dict utility??? plzz helppp |
|
July 11, 2017, 18:41 |
|
#2 |
Senior Member
sandy
Join Date: Feb 2016
Location: .
Posts: 117
Rep Power: 10 |
oh hell yeah its possible just did it.....
|
|
July 11, 2017, 18:47 |
Unstructured tetrahedral mesh Refinement using REFINEMESH DICT UTILITY.???? POSSIBLE?
|
#3 |
New Member
Thomas
Join Date: Jul 2017
Posts: 5
Rep Power: 9 |
Would be nice if you could share it with us. So if someone comes to the same problem, he/she knows what to do.
Sent from my iPhone using CFD Online Forum mobile app |
|
July 12, 2017, 06:02 |
|
#4 |
Senior Member
sandy
Join Date: Feb 2016
Location: .
Posts: 117
Rep Power: 10 |
actually i have a cylinder
i have to refine the mesh along the circumference so i created annular to cell in toposetdict and hybrid structured/unstructured mesh in gambit then i used use hextopology to cut the cells in all three directions and refined from 0.1 milion cells to 2million cells using refinemesh utility this is my refinemesh dict /*--------------------------------*- 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; location "system"; object refineMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // set c0; coordinateSystem global; globalCoeffs { tan1 (1 0 0); tan2 (0 1 0); normal (0 0 1); } directions ( tan1 tan2 normal ); useHexTopology yes; geometricCut no; writeMesh no; // ************************************************** *********************** // this is my toposetdict /*--------------------------------*- 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; location "system"; object topoSetDict.1; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // actions ( { name c0; type cellSet; action new; source cylinderAnnulusToCell; sourceInfo { p1 (0 0 0); outerRadius 0.012; p2 (0 0 0.144); innerRadius 0.009; } } ); // ************************************************** *********************** first load your gambit mesh to openfoam using gambittooam3d -scae 0.001 etc..just see the command guys next run this commands[allrun file ] to read toposetdict and refinemesh #!/bin/sh cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions refineMeshByCellSet() { while [ $# -ge 1 ] do if [ ! -e log.refineMesh.$1 ] then echo "Creating cell set for primary zone - $1" cp system/topoSetDict.$1 system/topoSetDict topoSet > log.topoSet.$1 2>&1 echo "Refining primary zone - $1" refineMesh -dict system/refineMeshDict -overwrite \ > log.refineMesh.$1 2>&1 fi shift done } //restore0Dir //runApplication blockMesh refineMeshByCellSet 1 2 3 4 [// 1,2,3,4 depend on no times you want to refine] //#echo "mapping fields from 2D throttle case" //#runApplication mapFields ../throttle -sourceTime latestTime //runApplication decomposePar //runParallel $(getApplication) //runApplication reconstructPar #------------------------------------------------------------------------------# i have attached the results this refinement is for all 3 directions |
|
February 1, 2019, 06:58 |
|
#5 |
New Member
samuel
Join Date: Sep 2018
Posts: 5
Rep Power: 8 |
You don't solve the post.
How use refineMesh with tetra? |
|
Tags |
refinemesh utility |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
y+ = 1 boundary layer mesh with snappyHexMesh | Arzed23 | OpenFOAM Running, Solving & CFD | 6 | November 23, 2022 16:15 |
[snappyHexMesh] SnappyHexMesh running killed! | Mark JIN | OpenFOAM Meshing & Mesh Conversion | 7 | June 14, 2022 02:37 |
[snappyHexMesh] problems generating clean mesh | Christian_tt | OpenFOAM Meshing & Mesh Conversion | 2 | June 20, 2019 06:39 |
[snappyHexMesh] snappyHexMesh aborting | Tobi | OpenFOAM Meshing & Mesh Conversion | 0 | November 10, 2010 04:23 |
fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 12:55 |