CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Open Foam /Setfields (http://www.cfd-online.com/Forums/openfoam-solving/72187-open-foam-setfields.html)

moh1367 January 28, 2010 03:11

Open Foam /Setfields
 
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?

gschaider January 28, 2010 14:51

Quote:

Originally Posted by moh1367 (Post 244008)
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

moh1367 January 28, 2010 15:43

Thanks alot but can my reason satisfied simpler for example is there a substitution for ?Box to cell" in the Foam?

mu.e.nash March 22, 2012 08:09

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
)

styleworker November 27, 2012 10:12

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
);
}


);

Tobi January 7, 2013 11:02

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


All times are GMT -4. The time now is 00:40.