CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Other] Interface dynamic refine mesh of multi-phase fluid (https://www.cfd-online.com/Forums/openfoam-meshing/204347-interface-dynamic-refine-mesh-multi-phase-fluid.html)

ethanboem July 20, 2018 13:09

Interface dynamic refine mesh of multi-phase fluid
 
Hi,

I'm new to OpenFOAM, and I want to use the solver of multiphaseInterDyMFoam to refine the interface mesh of multiphase liquid. But, there is only code for refining one phase of the liquid interface in OpenFOAM (showing as below).

Code:

dynamicFvMesh dynamicRefineFvMesh;
  dynamicRefineFvMeshCoeffs
  {
      refineInterval 1;
      field alpha1;
      lowerRefineLevel 0.001;
      upperRefineLevel 0.999;
      unrefineLevel 10;
      nBufferLayers 1;
      maxRefinement 2;
      maxCells 200000;
      correctFluxes (( phi none) (nHatf none) (rhoPhi none) (ghf none) );
      dumpLevel true;
  }

If it is a three-phase system of water-oil-air, how to refine the mesh of water and oil phase surface dynamically at the same time? For any hints, I will be quite grateful.

clapointe July 25, 2018 23:12

What if you defined a new field that is the gradient of alpha and refine where it's high? This should get you refinement at the interface.

Caelan


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