CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Pre-Processing

Could someone tell me what boxToCell means

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

Like Tree2Likes
  • 1 Post By dan
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Display Modes
Old   March 28, 2006, 06:57
Default Could someone tell me what boxToCell means
  #1
dan
New Member
 
Dan Chang
Join Date: Mar 2009
Posts: 4
Rep Power: 9
dan is on a distinguished road
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?
linyanx likes this.
dan is offline   Reply With Quote

Old   March 28, 2006, 08:18
Default It specifies two opposite poin
  #2
Senior Member
 
Markus Hartinger
Join Date: Mar 2009
Posts: 102
Rep Power: 9
hartinger is on a distinguished road
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
hartinger is offline   Reply With Quote

Old   March 28, 2006, 08:19
Default "box (0 0 -1) (0.1461 0.292 1)
  #3
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 13
eugene is on a distinguished road
"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).
eugene is offline   Reply With Quote

Old   March 28, 2006, 21:24
Default Thank you all. But something c
  #4
dan
New Member
 
Dan Chang
Join Date: Mar 2009
Posts: 4
Rep Power: 9
dan is on a distinguished road
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?
dan is offline   Reply With Quote

Old   March 29, 2006, 07:05
Default The 'convertToMeters' in block
  #5
Senior Member
 
Markus Hartinger
Join Date: Mar 2009
Posts: 102
Rep Power: 9
hartinger is on a distinguished road
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
hartinger is offline   Reply With Quote

Old   March 29, 2006, 21:17
Default Thanks,I already know it. Ther
  #6
dan
New Member
 
Dan Chang
Join Date: Mar 2009
Posts: 4
Rep Power: 9
dan is on a distinguished road
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.
dan is offline   Reply With Quote

Old   October 21, 2009, 09:33
Default
  #7
Member
 
toto
Join Date: Jun 2009
Posts: 71
Rep Power: 9
ronaldo is on a distinguished road
Quote:
Originally Posted by eugene View Post
"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?

Thank you in advance
Attached Files
File Type: doc geaom.doc (67.5 KB, 134 views)
ronaldo is offline   Reply With Quote

Old   May 5, 2013, 01:55
Default Zmin y Zmax
  #8
New Member
 
Alexander Villamizar Hernández
Join Date: Mar 2013
Posts: 5
Rep Power: 5
avillamizarh is on a distinguished road
Quote:
Originally Posted by dan View Post
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
avillamizarh is offline   Reply With Quote

Old   September 3, 2014, 14:44
Default Questions about SetFields
  #9
Member
 
Parisa
Join Date: Feb 2013
Posts: 51
Rep Power: 5
Parisa_Khiabani is on a distinguished road
I have 2 questions about setFields. I was partially answered based on the the following post:

http://www.cfd-online.com/Forums/ope...ell-means.html

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
Parisa_Khiabani is offline   Reply With Quote

Old   September 28, 2014, 11:28
Default
  #10
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,748
Blog Entries: 39
Rep Power: 103
wyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of light
Quick answer, based on previous answers of mine:
  1. Quote:
    Originally Posted by wyldckat View Post
    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 View Post
    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".
  3. See also: http://www.cfd-online.com/Forums/ope...tml#post460374 - post #4
lowlow likes this.
wyldckat is offline   Reply With Quote

Old   February 17, 2016, 16:26
Default add boxtoCell
  #11
New Member
 
Nadine
Join Date: Feb 2016
Location: MS
Posts: 6
Rep Power: 2
nb977 is on a distinguished road
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
nb977 is offline   Reply With Quote

Old   February 21, 2016, 13:56
Default
  #12
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,748
Blog Entries: 39
Rep Power: 103
wyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of light
Quick answers:
Quote:
Originally Posted by nb977 View Post
what is the difference between add and new
  • "new" is for creating a new set.
  • "add" is to add more items to the existing set.

Quote:
Originally Posted by nb977 View Post
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
wyldckat is offline   Reply With Quote

Old   February 22, 2016, 20:17
Default
  #13
New Member
 
Nadine
Join Date: Feb 2016
Location: MS
Posts: 6
Rep Power: 2
nb977 is on a distinguished road
Thank you very much i am now able to refine the region i wanted !
nb977 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
means of this error mohammad dehghani FLUENT 2 November 26, 2007 04:05
How to use BoxToCell waynezw0618 OpenFOAM Running, Solving & CFD 0 December 17, 2006 23:39
Could someone tell me what boxToCell means dan OpenFOAM 0 March 28, 2006 06:55
What means % in Fortran? What means % in Fortran Main CFD Forum 2 April 20, 2004 14:34
What this means? neu FLUENT 1 June 2, 2003 03:44


All times are GMT -4. The time now is 04:35.