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

Trying to understand: What is the "boxToCell"?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 8, 2015, 00:15
Default Trying to understand: What is the "boxToCell"?
  #1
New Member
 
jhYang
Join Date: Aug 2015
Location: south Korea
Posts: 4
Rep Power: 10
jhYang is on a distinguished road
I don't know how do I set-up the boxToCell.

In user guide it says just min and max.

I want to know that how calculate the min and max to the boxToCell??
jhYang is offline   Reply With Quote

Old   September 8, 2015, 10:20
Default
  #2
Member
 
Sravan Kumar
Join Date: May 2014
Posts: 57
Rep Power: 11
coolcrasher is on a distinguished road
boxToCell -- is to set field values to part of your domain, it overwrites the default values set for the fields in zero folder ( example - specified by internalField uniform 0; )
For this you have to specify the start point and end point of diagonal of your box ( which should be inside your domain ).

Example:
Code:
boxToCell 
26      { 
27          box (0 0 -1) (0.1461 0.292 1); 
28          fieldValues 
29          ( 
30              volScalarFieldValue alpha.water 1 
31          ); 
32      }
start point here is ( 0 0 -1 ) and end point is ( 0.1461 0.292 1 ).
Field values represent the the list of field values you want to set inside this box which overwrites the field values set in zero folder in this box region.

You can run this boxToCell by adding setFieldsDict file in your systems folder and give the parameters you want to set. You can run the file from terminal after blockMesh, by saying setFields.

You can get the sample setFieldsDict file in DamBreak tutorial of openFoam.

Hopefully this clarifies your doubt
coolcrasher is offline   Reply With Quote

Old   September 8, 2015, 20:36
Default Thanks very much:)
  #3
New Member
 
jhYang
Join Date: Aug 2015
Location: south Korea
Posts: 4
Rep Power: 10
jhYang is on a distinguished road
Thank you very much for your help:^)

but I still don't know how I set-up the coordination of the boxToCell.

Last edited by jhYang; September 9, 2015 at 02:46.
jhYang is offline   Reply With Quote

Old   September 9, 2015, 02:38
Default
  #4
Member
 
Sravan Kumar
Join Date: May 2014
Posts: 57
Rep Power: 11
coolcrasher is on a distinguished road
I do not understand your question, can you elaborate ??
coolcrasher is offline   Reply With Quote

Old   September 9, 2015, 02:55
Default :)
  #5
New Member
 
jhYang
Join Date: Aug 2015
Location: south Korea
Posts: 4
Rep Power: 10
jhYang is on a distinguished road
Um.. well boxToCell and blockMesh are not related?
And this case(red thing is fluid), yellow point is the boxToCell's coordination??

I really know that how to make coordinations for boxToCell.
Attached Images
File Type: png Screenshot from 2015-09-08 00_27_22.png (1.8 KB, 46 views)
jhYang is offline   Reply With Quote

Old   September 9, 2015, 03:50
Default
  #6
Member
 
Sravan Kumar
Join Date: May 2014
Posts: 57
Rep Power: 11
coolcrasher is on a distinguished road
Hi

you can get the coordinates of your domain from paraview.

After you do blockMeshon your case, open the mesh in paraview using paraFoam.

You have a tool named probe location, which will show you the point in your geometry and will give you the coordinates. You can move the point using your mouse ( which is difficult ) or you can move it by changing the value in the coordinates manually.

It would be quite a work to get the exact values but need patience, it would work.

I guess this clarifies your question

Best regards
coolcrasher is offline   Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I make boxToCell jhYang OpenFOAM Pre-Processing 1 September 17, 2015 04:28
boxToCell alternatives silo OpenFOAM Pre-Processing 2 February 12, 2015 04:58
[Other] boxToCell versus rotatedBoxToCell engineer_the OpenFOAM Meshing & Mesh Conversion 2 August 6, 2014 14:07
.setSet problems Grimoli OpenFOAM 9 July 31, 2013 13:24
Bug? refineMesh boxToCell negative coordinates lindstroem OpenFOAM 2 June 20, 2011 08:06


All times are GMT -4. The time now is 06:28.