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

Hollow sphere with setFields

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 3, 2019, 10:46
Default Hollow sphere with setFields
  #1
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,


Adolfo
dolfus is offline   Reply With Quote

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

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

Reply

Tags
cylinder, openfoam 6, setfields, sphere


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


All times are GMT -4. The time now is 12:56.