6

Next: Renumber Mesh Up: Rotor Region Mesh – Previous: Running snappyHexMesh – Rotor   Contents   Index

Creating MRF zone for rotation

A MRFZone is created using topoSet dictionary topoSetDict.mrf:

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
|*---------------------------------------------------------------------------*|
| File created by CFD support s.r.o., Tue Sep 3 08:33:52 2013 |
| http://www.cdfsupport.com |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object topoSetDict.baffles;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

actions
(
{
name MRFZone;
type cellSet;
action new;
source boxToCell;
sourceInfo
{
boxes ( (-100 -100 -100) (100 100 100));
}
}
);

Run the topoSet utility:



# topoSet -dict system/topoSetDict.mrf