CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Open Foam /Setfields

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

Like Tree3Likes
  • 1 Post By gschaider
  • 2 Post By mu.e.nash

Reply
 
LinkBack Thread Tools Display Modes
Old   January 28, 2010, 03:11
Default Open Foam /Setfields
  #1
Member
 
Mohammad Zakerzadeh
Join Date: Dec 2009
Location: Aachen, Germany
Posts: 40
Rep Power: 7
moh1367 is on a distinguished road
Hi!
I want to use VOF solver and need to set the field in an exact manner. for example set in a circular region or other more complicated shapes. Can anyone help me?
moh1367 is offline   Reply With Quote

Old   January 28, 2010, 14:51
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by moh1367 View Post
Hi!
I want to use VOF solver and need to set the field in an exact manner. for example set in a circular region or other more complicated shapes. Can anyone help me?
http://openfoamwiki.net/index.php/Co...funkySetFields would be a possibility. Or write your own custom utility for your application
songwukong likes this.
gschaider is offline   Reply With Quote

Old   January 28, 2010, 15:43
Default
  #3
Member
 
Mohammad Zakerzadeh
Join Date: Dec 2009
Location: Aachen, Germany
Posts: 40
Rep Power: 7
moh1367 is on a distinguished road
Thanks alot but can my reason satisfied simpler for example is there a substitution for ?Box to cell" in the Foam?
moh1367 is offline   Reply With Quote

Old   March 22, 2012, 07:09
Default
  #4
New Member
 
muhammad El-nashash'ee
Join Date: Aug 2011
Posts: 4
Rep Power: 5
mu.e.nash is on a distinguished road
there is a list for available types
Valid topoSetSource types :

39
(
boundaryToFace
boxToCell
boxToFace
boxToPoint
cellToCell
cellToFace
cellToPoint
cylinderAnnulusToCell
cylinderToCell
faceToCell
faceToFace
faceToPoint
faceZoneToCell
faceZoneToFaceZone
fieldToCell
labelToCell
labelToFace
labelToPoint
nbrToCell
nearestToCell
nearestToPoint
normalToFace
patchToFace
pointToCell
pointToFace
pointToPoint
regionToCell
rotatedBoxToCell
setToCellZone
setToFaceZone
setToPointZone
setsToFaceZone
shapeToCell
sphereToCell
surfaceToCell
surfaceToPoint
zoneToCell
zoneToFace
zoneToPoint
)
songwukong and krishtej23 like this.
mu.e.nash is offline   Reply With Quote

Old   November 27, 2012, 10:12
Default
  #5
Member
 
Join Date: May 2012
Posts: 55
Rep Power: 5
styleworker is on a distinguished road
Two examples of selecting specific region & faces(setFieldsDict):

regions
(
/*cylinderToCell
{
p1 (0 0 -0.025); //Min
p2 (0 0 0.05); //Max
radius 0.098;

fieldValues
(
volScalarFieldValue alpha1 1
);
}*/
patchToFace
{
name sym1;
fieldValues
(
volScalarFieldValue alpha1 1
);
}


);
styleworker is offline   Reply With Quote

Old   January 7, 2013, 11:02
Default
  #6
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 1,088
Blog Entries: 6
Rep Power: 19
Tobi will become famous soon enough
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi all,

is it possible to set the cell values of alpha1 (i.e) to 1 in a given STL file?
Therefor I want to use the "surfaceToCell" method. Is that method for that ?

Thanks tobi
Tobi is offline   Reply With Quote

Reply

Tags
openfoam, setfields, vof

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
BlockMesh FOAM warning gaottino OpenFOAM Native Meshers: blockMesh 7 July 19, 2010 14:11
Problem installing on Ubuntu 9.10 -> 'Cannot open : No such file or directory' mfiandor OpenFOAM Installation 2 January 25, 2010 10:50
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51
Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Native Meshers: blockMesh 10 April 2, 2007 14:00
Import gmsh msh to Foam adorean Open Source Meshers: Gmsh, Netgen, CGNS, ... 24 April 27, 2005 08:19


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