openfoamquest

OpenFOAMや流体解析の使い方を紹介しています

OpenFOAM 多孔質体 設定 (1)

前回はcfMeshで多孔質部分のメッシュを作成する方法を紹介しました。 

openfoamquest.hatenablog.jp

今回はメッシュ分割した多孔質部分をtopoSetを使用してセルゾーンを作成します。

systemフォルダにtopoSetDictというファイルを作ります。

今回はporousというセルゾーン名にしました。

 

 

// ************************************************************************* //

FoamFile
{
  version 2.0;
  format ascii;
  class dictionary;
  object topoSetDict;
}

// ************************************************************************* //

actions
(

 // porous
 {
  name porousCellSet;
  type cellSet; //cellSet
  action new;
  source surfaceToCell;
  sourceInfo
  {
    file "constant/triSurface/ファイル名.stl";
    outsidePoints *1; // definition of outside外側の座標入力
    includeCut false; // cells cut by surface
    includeInside false; // cells not on outside of surf
    includeOutside true; // cells on outside of surf
    nearDistance -1; // cells with centre near surf
           // (set to -1 if not used)
    curvature 0.9; // cells within nearDistance
          // and near surf curvature
          // (set to -100 if not used)
  }
 }
{
 name porous;
 type cellZoneSet;
 action new;
 source setToCellZone;
 sourceInfo
 {
  set porousCellSet;
 }
}
);

// ************************************************************************* //

*1:0.0 0.0 0.0