# Could someone tell me what boxToCell means

 Register Blogs Members List Search Today's Posts Mark Forums Read

 March 28, 2006, 06:57 Could someone tell me what boxToCell means #1 New Member   Dan Chang Join Date: Mar 2009 Posts: 4 Rep Power: 9 I get one queation in the dambreak tutorial of interFoam. The setFieldsDict are shown below: regions ( boxToCell { box (0 0 -1) (0.1461 0.292 1); fieldValues ( volScalarFieldValue gamma 1 ); } ); What does "box (0 0 -1) (0.1461 0.292 1)" mean? In this case ,I don't see anything related to (0 0 -1) and (0.1461 0.292 1). Could anyone help me,thanks?

 March 28, 2006, 08:18 It specifies two opposite poin #2 Senior Member   Markus Hartinger Join Date: Mar 2009 Posts: 102 Rep Power: 9 It specifies two opposite points of a box. All cells within that box are selected. It is used to set the void fraction gamma, in order to pile up a lot of water to be splash around. markus

 March 28, 2006, 08:19 "box (0 0 -1) (0.1461 0.292 1) #3 Senior Member   Eugene de Villiers Join Date: Mar 2009 Posts: 725 Rep Power: 13 "box (0 0 -1) (0.1461 0.292 1)" defines a rectangular prism aligned with the coordinate system with one point (minimum x, y and z) at (0 0 -1) and another point (maximum x, y and z) at (0.1461 0.292 1).

 March 28, 2006, 21:24 Thank you all. But something c #4 New Member   Dan Chang Join Date: Mar 2009 Posts: 4 Rep Power: 9 Thank you all. But something confused me is why is "box (0 0 -1) (0.1461 0.292 1)" in this case. eg: convertToMeters 0.146 0.1461*0.146=0.0213 is not the physical size of water column. So does 0.292,1,and -1. Could anyone help me,thanks?

 March 29, 2006, 07:05 The 'convertToMeters' in block #5 Senior Member   Markus Hartinger Join Date: Mar 2009 Posts: 102 Rep Power: 9 The 'convertToMeters' in blockMeshDict is only used inside the 'blockMesh' mesh-generator. x=0.1461 and y=0.292 is the 'top-right' corner of the water column in physical space. The other coordinates are just chosen to be bigger for convenience markus

 March 29, 2006, 21:17 Thanks,I already know it. Ther #6 New Member   Dan Chang Join Date: Mar 2009 Posts: 4 Rep Power: 9 Thanks,I already know it. There is a geometry figure in the uer guide U-55, it is different with the simulated case. So I am just a little confused. Thank you.

October 21, 2009, 09:33
#7
Member

toto
Join Date: Jun 2009
Posts: 71
Rep Power: 9
Quote:
 Originally Posted by eugene "box (0 0 -1) (0.1461 0.292 1)" defines a rectangular prism aligned with the coordinate system with one point (minimum x, y and z) at (0 0 -1) and another point (maximum x, y and z) at (0.1461 0.292 1).

Please could you tell me how can i set the makeCellSets file "boxToCell" is case?

Attached Files
 geaom.doc (67.5 KB, 130 views)

May 5, 2013, 01:55
Zmin y Zmax
#8
New Member

Alexander Villamizar Hernández
Join Date: Mar 2013
Posts: 5
Rep Power: 5
Quote:
 Originally Posted by dan Thank you all. But something confused me is why is "box (0 0 -1) (0.1461 0.292 1)" in this case. eg: convertToMeters 0.146 0.1461*0.146=0.0213 is not the physical size of water column. So does 0.292,1,and -1. Could anyone help me,thanks?

I have a question. Why the zmin is -1 and zmax is 1?. Thanks

 September 3, 2014, 14:44 Questions about SetFields #9 Member   Parisa Join Date: Feb 2013 Posts: 51 Rep Power: 5 I have 2 questions about setFields. I was partially answered based on the the following post: Could someone tell me what boxToCell means However, my questions are: 1- How the minimum and maximum corners are determined? 2- Why zmin and zmax are -1 and +1, as exactly the last forumer aske? I appreciate if you help me, Parisa Last edited by wyldckat; September 28, 2014 at 11:20. Reason: rectified link and moved post to the same thread

September 28, 2014, 11:28
#10
Super Moderator

Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,531
Blog Entries: 39
Rep Power: 97
1. Quote:
 Originally Posted by wyldckat Have a look into this file: https://github.com/OpenFOAM/OpenFOAM...et/topoSetDict You can find it on your system by running: Code: `find \$FOAM_UTILITIES -name topoSetDict` But keep in mind that if your internal mesh isn't already cut into the shape of the sphere, then all you get is a selection of the cells that are inside the sphere selection.
2. Quote:
 Originally Posted by wyldckat It's simple: setSet and topoSet are basically selection tools that can select parts of the mesh, including points, faces and cells. Once you select parts of the mesh and assign each selection a "tag" (i.e. a "set"), then you can do something with that "tag".

 February 17, 2016, 16:26 add boxtoCell #11 New Member   Nadine Join Date: Feb 2016 Location: MS Posts: 6 Rep Power: 2 Hello , i need help regarding those 2 lines what is the difference between add and new , and is it true that openFoam no longer use cellSet should i replace it with something else ? cellSet refine new cellSet refine add boxToCell (0.0 0.0 0.0) (0.584 0.146 0.584) cellSet refine new boxToCell (0.0 0.146 0.0) (0.548 0.292 0.584) Thank you

February 21, 2016, 13:56
#12
Super Moderator

Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,531
Blog Entries: 39
Rep Power: 97
Quote:
 Originally Posted by nb977 what is the difference between add and new
• "new" is for creating a new set.

Quote:
 Originally Posted by nb977 and is it true that openFoam no longer use cellSet should i replace it with something else ?
You're mixing up two things:
1. There was an application named "cellSet" in older versions of OpenFOAM.
2. The current setSet application has a command named "cellSet", which is still working. The lines you pointed out should work within setSet.
For more details: http://openfoamwiki.net/index.php/SetSet#Usage_example

 February 22, 2016, 20:17 #13 New Member   Nadine Join Date: Feb 2016 Location: MS Posts: 6 Rep Power: 2 Thank you very much i am now able to refine the region i wanted !

 Thread Tools 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 On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post mohammad dehghani FLUENT 2 November 26, 2007 04:05 waynezw0618 OpenFOAM Running, Solving & CFD 0 December 17, 2006 23:39 dan OpenFOAM 0 March 28, 2006 06:55 What means % in Fortran Main CFD Forum 2 April 20, 2004 14:34 neu FLUENT 1 June 2, 2003 03:44

All times are GMT -4. The time now is 03:17.