Mesh generated VOF fields (interFoam)
1 Attachment(s)
Hello!
I would like to ask if anybody has an idea about how to make a mesh generated setFields (I don't know how to formally call this case so I'll just go with this). I want to make an fluid domain similar to the one in the picture attached, where separate domains are for the air and water. In setFields we usually do this using BoxToCell, but clearly it cannot be used for the one I/m trying to do. I have also heard of funkySetFields but I cannot imagine it working for me (but maybe I am wrong, I haven't actually tried). Thank you in advance! |
You mean like the interface being represented by a certain grid line?
|
Yeah. Maybe a better way of saying this is how can I create a non-box geometry for air-water phases in interFoam?
|
Quote:
|
Quote:
|
No, I simply wish to implement interFoam where my initial fluid geometries are non-rectangular.
|
For setFields, you can just make your box extend to outside your domain, so with a flat surface, you can still use a box. I guess this would work:
Code:
/*--------------------------------*- C++ -*----------------------------------*\ |
Thank you very much! I'll give it a try. A friend also mentioned to me that I can manually set the water domain in 0/alpha.water by typing 1 in the face where I want water to be. I guess this is not the most elegant solution, but as long as my mesh is not super fine, it should be manageable.
|
All times are GMT -4. The time now is 04:00. |