Could someone tell me what boxToCell means
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? |
It specifies two opposite poin
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 |
"box (0 0 -1) (0.1461 0.292 1)
"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). |
Thank you all. But something c
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? |
The 'convertToMeters' in block
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 |
Thanks,I already know it. Ther
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.
|
1 Attachment(s)
Quote:
Please could you tell me how can i set the makeCellSets file "boxToCell" is case? Thank you in advance |
Zmin y Zmax
Quote:
I have a question. Why the zmin is -1 and zmax is 1?. Thanks |
Questions about SetFields
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 |
Quick answer, based on previous answers of mine:
|
add boxtoCell
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 |
Quick answers:
Quote:
Quote:
|
Thank you very much i am now able to refine the region i wanted !
|
Hello Foamers,
I want to ask if there is a way i can code a cylinderTocell field to oscillate. Indeed, I created cylinderTocell field using topoSetDict, I want to know it can be put in motion. I have seen in interFoam tutorials, setFieldsDict is used to give a linear velocity to a boxtocell Field. Is it posible to give it also an oscillating velocity? Please help me to find out if there is a way this cylinderTocell Field can be moved(oscillating motion). my ultimate goal is to simulate flow over that cylinder? (stationary and oscillating). I thought that cylinder will be immersed not body fitted? Does it sound feasible? I will be happy to hear from you. Regards! |
All times are GMT -4. The time now is 09:25. |