openfoamquest

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

OpenFOAM 多孔質体 設定(2) porous model

前回はtopoSetで多孔質部分のセルゾーンを設定しました。

openfoamquest.hatenablog.jp今回は多孔質モデルの設定を行います。

多孔質のソルバーはporousSimpleFoamなどがありますが

simpleFoamのfvOptionsで多孔質モデルを設定することもできます。

モデル式はDarcyForchheimerの式を使用します。

 

 constantフォルダにfvOptionsのファイルを作成。

f:id:openfoamquest:20210109223706p:plain

\*---------------------------------------------------------------------------*/
FoamFile
{
 version 2.0;
 format ascii;
 class dictionary;
 location "constant";
 object fvOptions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

porosity1
{
 type explicitPorositySource;

 explicitPorositySourceCoeffs
 {
  selectionMode cellZone;

  cellZone fff-fluid_porous;

  type DarcyForchheimer;

       D 1E9;
       F 10000;

       d ($D $D $D);
       f ($F $F $F);

       coordinateSystem
       {
         type cartesian;
         origin (0 0 0);
         note "Any note can be written here.";
         coordinateRotation
         {
            type axesRotation;
            e1 (1 0 0);
            e2 (0 0 1);
         }
       }
     }

}

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