|
[Sponsors] |
Trying to understand: What is the "boxToCell"? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 8, 2015, 01:15 |
Trying to understand: What is the "boxToCell"?
|
#1 |
New Member
jhYang
Join Date: Aug 2015
Location: south Korea
Posts: 4
Rep Power: 11 |
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?? |
|
September 8, 2015, 11:20 |
|
#2 |
Member
Sravan Kumar
Join Date: May 2014
Posts: 57
Rep Power: 12 |
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 } 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 |
|
September 8, 2015, 21:36 |
Thanks very much:)
|
#3 |
New Member
jhYang
Join Date: Aug 2015
Location: south Korea
Posts: 4
Rep Power: 11 |
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 03:46. |
|
September 9, 2015, 03:38 |
|
#4 |
Member
Sravan Kumar
Join Date: May 2014
Posts: 57
Rep Power: 12 |
I do not understand your question, can you elaborate ??
|
|
September 9, 2015, 03:55 |
:)
|
#5 |
New Member
jhYang
Join Date: Aug 2015
Location: south Korea
Posts: 4
Rep Power: 11 |
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. |
|
September 9, 2015, 04:50 |
|
#6 |
Member
Sravan Kumar
Join Date: May 2014
Posts: 57
Rep Power: 12 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I make boxToCell | jhYang | OpenFOAM Pre-Processing | 1 | September 17, 2015 05:28 |
boxToCell alternatives | silo | OpenFOAM Pre-Processing | 2 | February 12, 2015 05:58 |
[Other] boxToCell versus rotatedBoxToCell | engineer_the | OpenFOAM Meshing & Mesh Conversion | 2 | August 6, 2014 15:07 |
.setSet problems | Grimoli | OpenFOAM | 9 | July 31, 2013 14:24 |
Bug? refineMesh boxToCell negative coordinates | lindstroem | OpenFOAM | 2 | June 20, 2011 09:06 |