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

hemisphere in setFields

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By nimasam

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 8, 2015, 23:53
Default hemisphere in setFields
  #1
Senior Member
 
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 16
Elham is on a distinguished road
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
Elham is offline   Reply With Quote

Old   October 10, 2015, 09:21
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
nimasam is on a distinguished road
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
);
}
);



__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   October 11, 2015, 12:44
Default
  #3
Senior Member
 
kmooney's Avatar
 
Kyle Mooney
Join Date: Jul 2009
Location: San Francisco, CA USA
Posts: 323
Rep Power: 17
kmooney is on a distinguished road
Setting a sphere should work in your case right?
kmooney is offline   Reply With Quote

Old   October 12, 2015, 00:26
Default
  #4
Senior Member
 
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 16
Elham is on a distinguished road
Quote:
Originally Posted by nimasam View Post
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
Elham is offline   Reply With Quote

Old   October 12, 2015, 02:11
Default
  #5
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
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?
Antimony is offline   Reply With Quote

Old   October 12, 2015, 09:11
Default
  #6
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
nimasam is on a distinguished road
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
Elham likes this.
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
setFields after snappyHexMesh mo.houssami OpenFOAM Pre-Processing 4 May 13, 2015 12:44
rhoSimplecFoam with setFields sino75 OpenFOAM Pre-Processing 0 March 11, 2015 05:08
Problems with the execution of the setFields utility. foamer OpenFOAM Pre-Processing 5 June 3, 2013 13:24
Expanding and contracting hemisphere LvK FLUENT 0 August 26, 2010 03:35
hemisphere in channel flow kirill FLUENT 3 September 16, 2004 12:51


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