CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM

Hollow sphere with setFields

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

LinkBack Thread Tools Search this Thread Display Modes
Old   May 3, 2019, 09:46
Default Hollow sphere with setFields
New Member
Join Date: Feb 2019
Posts: 23
Rep Power: 7
dolfus is on a distinguished road
Hello all,

I'm triying to simulate a drop of water surrounded by a fine layer of oil. Using setFields in 2D this would a water cylinder inside an oil annulus cylinder wich works perfectly.

In 3D it's clear that the geometry would be a sphere of water inside a hollow sphere of oil, and that's the problem because it doesn't seem that setFields support this arrangement.
So I don't know if maybe usinG surfaceToCell or any option like that would work for this case (the point is that i guess there are many solutions to this problem and I'm not able to check it all).

Thank you in advance,

dolfus is offline   Reply With Quote

Old   May 3, 2019, 11:29
Senior Member
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym

You have several possibilities:

1. Create cellSet with topoSet utility and then use cellToCell in setFieldsDict.

2. Use setFields with two different dictionaries. The first creates outer sphere, the second creates inner sphere (by overwriting values inside outer sphere).

3. Create STL surface of the spherical layer and use surfaceToCell.

The easiest is the second variant.
alexeym is offline   Reply With Quote


cylinder, openfoam 6, setfields, sphere

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
[GAMBIT] How to split a hollow sphere in special different spaces aja1345 ANSYS Meshing & Geometry 11 August 20, 2018 00:45
[GAMBIT] How to split a hollow sphere in different angles aja1345 ANSYS Meshing & Geometry 2 August 16, 2018 10:53
[snappyHexMesh] Sphere in a channel by snappyHexMesh arsalan.dryi OpenFOAM Meshing & Mesh Conversion 0 November 14, 2016 16:01
Hollow sphere iside ANSYS Meshing & Geometry 2 July 26, 2011 10:19
meshing F1 front wing Steve FLUENT 0 April 17, 2003 12:37

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