CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   hemisphere in setFields (https://www.cfd-online.com/Forums/openfoam-pre-processing/160490-hemisphere-setfields.html)

Elham October 8, 2015 22:53

hemisphere in setFields
 
Hi,

I am going to simulate a single droplet falling in air by means of InterDyMFoam. To decrease the computational time I want to simulate half of the domain. So I need to have a hemisphere for the half of the drop in initial condition. Anybody knows How I can create a hemisphere by setFields or any other functions?

Thanks

nimasam October 10, 2015 08:21

you can use following instructions :

Quote:


defaultFieldValues
(
volScalarFieldValue alpha1 1
);

regions
(
sphereToCell
{
centre (0 0 1.024E-03);
radius 0.512E-03;
fieldValues
(
volScalarFieldValue alpha1 0
);
}
);





kmooney October 11, 2015 11:44

Setting a sphere should work in your case right?

Elham October 11, 2015 23:26

Quote:

Originally Posted by nimasam (Post 567442)
you can use following instructions :

Dear Nima,

Thanks for your reply. But I suppose it is for a sphere simulation not a hemisphere, isn't it?

Regards

Antimony October 12, 2015 01:11

To make it a hemisphere, one can probably use a box to reset its value, I suppose.

Of course, this wouldn't be ideal if the plane of the flat surface of the hemisphere is at an angle.

Maybe combining it with topoSet and its rotated Box might help? Any comments?

nimasam October 12, 2015 08:11

1- change your perspective :), you can easily obtain hemispherical with that command :) Hint: assign a valid centre!

2- but if you insist on draw hemisphere, use funkySetFields


All times are GMT -4. The time now is 04:30.