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/)
-   -   Cylindrical Patch for interFoam (http://www.cfd-online.com/Forums/openfoam-solving/59900-cylindrical-patch-interfoam.html)

vatant December 11, 2006 16:10

I am trying to simulate water
 
I am trying to simulate water drop (of diameter D) in moving air. For this purpose, I would like to solve a flow field and introduce a liquid drop into the system.

I see that boxtoCell would create a box type patch..how can I create a spherical fluid patch. If my case is axisymmetric what should I use?

I also did see the rotatedboxtoCell but not sure if its the right thing to use.

waynezw0618 December 12, 2006 02:23

HI: i am also interested in
 
HI:
i am also interested in the question.there are lots of branches in TopoSetValue.could anyone explain how to use these utilities

mattijs December 12, 2006 04:13

You'll have to create your own
 
You'll have to create your own code to generate and write out a faceSet (which can then be used to make a patch). (the faceSet application with the boxToFace, rotatedBoxToFace etc. sources just handles the most general cases)

faceSets are very easy to code, e.g.

// Generate faceSet called f0 with size 100
faceSet f0(mesh, "f0", 100);
// Add faces based on face centre
forAll(mesh.faceCentres(), faceI)
{
if (mesh.faceCentres()[faceI].x() < 0)
{
f0.insert(faceI);
}
}
// Write to file
f0.write();

waynezw0618 December 12, 2006 05:08

hi Mattijs:thanks but i jus
 
hi Mattijs:thanks
but i just want to set a circul cylinder inside the hydrocylone which i want to patch a air-core,is there any basic sources ?how can i use them? thankS!


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