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

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: 8
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?
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: 8
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: 12
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: 8
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: 8
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: 8
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: 8
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, 111 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: 4
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: 4
Parisa_Khiabani is on a distinguished road
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
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: 8,516
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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: toposet or setFields!! - post #4
wyldckat 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 22:16.