|
[Sponsors] |
[mesh manipulation] BlockMesh cellSet refineMesh |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 13, 2008, 14:35 |
BlockMesh cellSet refineMesh
|
#1 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
refineMesh by default refines the whole mesh. Use
refineMesh -dict to refine according to the dictionary. |
|
November 16, 2008, 21:56 |
Thank you very much for your h
|
#2 |
New Member
Axel Mohr
Join Date: Mar 2009
Location: Kiel, Schleswig-Holstein, Germany
Posts: 24
Rep Power: 17 |
Thank you very much for your help. This has been the fine but important information, I needed.
In my refineMeshDict above seems to be a little mistake. The third refinement direction should be named as "normal", not "tan3": directions ( tan1 tan2 normal ); |
|
August 26, 2010, 01:51 |
refineMesh tetrahedral
|
#3 |
Member
Hrushikesh Khadamkar
Join Date: Jul 2010
Location: Mumbai
Posts: 68
Rep Power: 16 |
||
September 21, 2010, 04:26 |
|
#4 |
New Member
Join Date: Sep 2010
Posts: 1
Rep Power: 0 |
how does tan1, tan2 get calculated while refining Mesh?
I am new to CFD so couldnt get how does it calculate... please help me out.. Thanks |
|
November 16, 2010, 06:53 |
Solution for a faster refinement
|
#5 |
New Member
Frank Whittle
Join Date: Aug 2010
Posts: 12
Rep Power: 16 |
Hello Mattijs,
I am using refineHexMesh to refine different parts of my domain. Since I have around 10 different refinement parts, after the first few, it starts getting really slow. My assumption is due to the entire domain being under consideration for refinements. Can I isolate it with sets and just include that region during refinement so that the process is much faster then later combine these sets or merge it into the main mesh file? Challenger |
|
November 26, 2010, 05:03 |
|
#6 |
Senior Member
Join Date: Nov 2010
Posts: 113
Rep Power: 16 |
Hi there,
as you are using the refineMesh utility I would like to ask you, how to use it. I found out, that the "refineMeshDict" has to be in the system/ folder. When I start refineMesh -dict it says that the file user-1.7.1/run/cases/mesh/constant/polyMesh/sets/c0 at line 0. cannot be found. The mesh was created with the blockMesh-command and is simply a box. How do i get the sets "c0" and so on? Thanks for your help! |
|
November 26, 2010, 05:53 |
|
#7 | |
New Member
Frank Whittle
Join Date: Aug 2010
Posts: 12
Rep Power: 16 |
Quote:
In order to refine a mesh, you need to specify which part or which cells are being selected. To do this, use the command setSets, this creates set which are later used by the refineMeshDict to refine the mesh. then include this set name in the refineMeshDict in order to refine those cells. setSet requires a batch file the file is just an info on which cells are selected. this is what I do, cellSet ref new boxToCell (-10 -35.0 -10) (10 35 87.6) > refinement setSet -batch refinement -latestTime refineMesh -dict the dict should include the refinement set name. in this case its ref Hope that helped. Cheers! |
||
November 26, 2010, 06:07 |
|
#8 |
Senior Member
Join Date: Nov 2010
Posts: 113
Rep Power: 16 |
Hi challenger!
Thanks! Yes, it helps! I just started with the cellSetDict to create the sets which should be the same what you are doing with cellSet command. I just refined my first "little area". Now I'll see how it works with multiple cellSets and maybe I'll have a great weekend Greetings! Last edited by lindstroem; November 26, 2010 at 06:33. |
|
October 31, 2011, 11:54 |
|
#9 | |
New Member
giovanni silva
Join Date: Jul 2010
Posts: 14
Rep Power: 16 |
Quote:
Could you explain me how I can refine a specific region in a cavity? What can I do exactly? Thanks in advance! |
||
January 16, 2013, 09:49 |
|
#10 |
Member
Join Date: Sep 2012
Posts: 30
Rep Power: 14 |
Foamers!
Do anybody know what to specify if I want to have an extra refined mesh in a region? By default, refineMesh divides cells in 4 for a 2D case, or by 8 for a 3D case. I would like the refinement to be better than this. Thanks! |
|
January 16, 2013, 09:55 |
|
#11 |
Member
Nicklas Linder
Join Date: Jul 2012
Location: Germany
Posts: 35
Rep Power: 14 |
you can run it twice, or as often as you need it...
|
|
January 16, 2013, 10:22 |
|
#12 |
Member
Join Date: Sep 2012
Posts: 30
Rep Power: 14 |
Tried, but doesnt serve my purpose of increasing the cell resolution in the central part (as seen in screenshot where I ran the utility three times)
|
|
January 16, 2013, 10:42 |
|
#13 |
Member
Nicklas Linder
Join Date: Jul 2012
Location: Germany
Posts: 35
Rep Power: 14 |
I do it quite often, but maybe different. You can see it in the attachment. I have several cellSet Files with some space in between them. So I run cellSet (with file 1) refineMesh, then the next CellSet and again refineMesh and so on..
edit: and maybe switch of decompose polyhedrons in paraview... cfd.jpg |
|
January 17, 2013, 04:24 |
|
#14 |
Member
Join Date: Sep 2012
Posts: 30
Rep Power: 14 |
Ok! It will serve my purpose, and you screenshot is exactly what I am looking for .
How did you automate this? I need to do it maybe 8 times, and modifying the dict files each time is not a good solution. How do you create your cellSets? Do you have a cellSetDict you manually edit for each refinement? Ideally, I could create the sets from the command line so I can include it in my shell script... Thanks! |
|
January 18, 2013, 05:48 |
|
#15 |
Member
Nicklas Linder
Join Date: Jul 2012
Location: Germany
Posts: 35
Rep Power: 14 |
Yes i use a script.
You need several cellSet files called cellSetDict.1, cellSetDict.2 .... I created them manually. Then I use the following script (credits to the one who wrote it, I actually don't know) Code:
refineMeshByCellSet() { while [ $# -ge 1 ] do echo "creating cell set for primary zone - $1" cp system/cellSetDict.$1 system/cellSetDict cellSet > log.cellSet.$1 2>&1 echo "refining primary zone - $1" refineMesh -dict -overwrite > log.refineMesh.$1 2>&1 shift done } runApplication blockMesh echo "BlockMesh finish" refineMeshByCellSet 1 2 3 echo "refineMeshByCellSet finish" Greetings Last edited by nlinder; January 18, 2013 at 08:02. |
|
July 30, 2013, 09:17 |
|
#16 |
Member
Join Date: Aug 2011
Posts: 89
Rep Power: 15 |
Hello,
I donīt know how to go on. what I did so far: snappyHexMesh -overwrite --> creation of the mesh (creation of folder 0 ) insideCells refine.stl cellSet --> creation of a set of cells from the mesh refineMesh -dict --> refinement of the cells in the set cellSet (creation of folder 1) everything is fine, the mesh is refined Afterwards I want to do a refinement again (the .stl-file covers a part of the first .stl-file) insideCells refine2.stl cellSet2 refineMesh -dict (I changed the name cellSet to cellSet2 in the refineMeshDict) I get the following error: Create time Create polyMesh for time = 1 #0 Foam::error:rintStack(Foam::Ostream&) in "/home/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #1 Foam::sigFpe::sigHandler(int) in "/home/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #2 in "/lib64/libc.so.6" #3 in "/home/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/bin/refineMesh" #4 in "/home/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/bin/refineMesh" #5 __libc_start_main in "/lib64/libc.so.6" #6 at /usr/src/packages/BUILD/glibc-2.11.2/csu/../sysdeps/x86_64/elf/start.S:116 Gleitkomma-Ausnahme can anybody help? What do I have to change when I want to refine the mesh twice? Thanks a lot idefix |
|
September 23, 2013, 10:45 |
|
#17 | |
Senior Member
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 342
Rep Power: 28 |
Quote:
I don't really like this behaviour, but this post of yours saved my day! I assumed that refineMesh uses the dictionary by default, and that the -dict option is used to point to an alternative dictionary. |
||
February 5, 2014, 20:37 |
Problems in refineMesh
|
#18 |
Member
Nadish Saini
Join Date: Feb 2014
Location: Raleigh, North Carolina
Posts: 39
Rep Power: 12 |
Hello Foamers,
I am new to openfoam and thus am struggling with some commands. I had created a mesh in Salome and imported it into Openfoam. I have run one analysis and now want to refine my mesh. But when i am using 'refineMesh -overwrite' command it terminates with "Aborted- Core Dumped". A bunch of files are written in my case directory but the mesh is not refined (verified this using checkMesh). I am using OF-2.2.2 Can anyone please suggest what i am doing wrong. Thank you in advance for your help! |
|
February 11, 2014, 04:13 |
|
#19 |
Member
Join Date: Aug 2011
Posts: 89
Rep Power: 15 |
Hello,
do you want to refine your whole mesh or only a part? |
|
April 10, 2014, 13:38 |
|
#20 |
Senior Member
M. Montero
Join Date: Mar 2009
Location: Madrid
Posts: 155
Rep Power: 17 |
I suppose that this utility is not valid if I want to refine along x and y direction but not along z direction because keeping the first cell height is a must.
In that case, what utility can I use? Maybe Mesquite? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[blockMesh] Multi-region Blockmesh - Refinemesh issues. | Doug68 | OpenFOAM Meshing & Mesh Conversion | 3 | February 18, 2016 21:09 |
[blockMesh] Multi-region Blockmesh - Refinemesh issues. | Doug68 | OpenFOAM Meshing & Mesh Conversion | 0 | February 17, 2016 04:39 |
[mesh manipulation] multiple calls to refineMesh parallel w/ dict failing | Regis_ | OpenFOAM Meshing & Mesh Conversion | 2 | June 4, 2015 14:44 |
[mesh manipulation] refineMesh from a cellSet issue | gfilip | OpenFOAM Meshing & Mesh Conversion | 0 | September 28, 2010 14:14 |
Bug in mesh tools: cellSet, refineMesh, ...? | alexm | OpenFOAM Bugs | 0 | August 10, 2009 13:46 |