CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Internal fan (https://www.cfd-online.com/Forums/openfoam-solving/174064-internal-fan.html)

AlexPorta July 3, 2016 16:16

Internal fan
 
I'm trying to model an internal fan, but I can't figure out how to associate the pair of cyclic patches generated by createBaffles dict to a geometry (disk surface) read in by snappyHexMesh.

None of the tutorials I've looked at cover that.

Can anybody point me in the right direction?

hokhay September 19, 2017 07:34

Hello Alex, I am having the same problem as well. Have you found the answer so far?

Sent from my LG-H818 using CFD Online Forum mobile app

vs1 September 19, 2017 08:47

type the command createBaffles in terminal opened in case directory

hokhay September 19, 2017 08:59

What is the setting in createBafflesDict?

Sent from my LG-H818 using CFD Online Forum mobile app

vs1 September 19, 2017 10:37

Lets say, you have an internal face in domain for fan, baffles dict will convert it into a boundary-like face, and split it into 2 faces (..half_0 & half_1).

So, the createBafflesDict would look like this:-

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object createBafflesDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

internalFacesOnly true;


baffles
{


cyclicFaces1
{
type faceZone;
zoneName Fan;
patches
{
master
{
name Fan_half0;
type cyclic;
featureCos 0.9;
neighbourPatch Fan_half1;
}
slave
{
name Fan_half1;
type cyclic;
featureCos 0.9;
neighbourPatch jetFan1_half0;
}
}
}

And the boundary file:-

Fan_half0
{
type cyclic;
inGroups 2
(
cyclic cyclicFaces1
);

nFaces 341;
startFace 1633212;
matchTolerance 0.0001;
transform unknown;
neighbourPatch Fan_half1;
}


Fan_half1
{
type cyclic;
inGroups 2
( cyclic cyclicFaces1);

nFaces 341;
startFace 1633553;
matchTolerance 0.0001;
transform unknown;
neighbourPatch jetFan1_half0;
}

hokhay September 20, 2017 04:53

Thanks for detail reply vs1. What are about my master and slave are two separate stl files? They have different shape and position. How to setup?

Thank you very much


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