/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2020-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
OpenFOAM is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see .
Class
Foam::MPLICcell
Description
Class performs geometric matching of volume fraction and calculates surface
interpolation of volume fraction field.
Cut algorithms:
- Single cell cut
- Face-edge walk multiple cell cuts
- Tet decomposition cell cuts
SourceFiles
MPLICcell.C
\*---------------------------------------------------------------------------*/
#ifndef MPLICcell_H
#define MPLICcell_H
#include "MPLICface.H"
#include "MPLICcellStorage.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
/*---------------------------------------------------------------------------*\
Class MPLICcell Declaration
\*---------------------------------------------------------------------------*/
class MPLICcell
{
// Private member data
// Face related objects
//- Select unweighted interpolation if true
// velocity flux corrected if false
const bool unweighted_;
//- Select multi-cut if true or single-cut if false
const bool multiCut_;
//- Surface interpolated alpha
DynamicList alphaf_;
//- Flux of alpha from point interpolated U
DynamicList alphaPhiU_;
//- Face flux from point interpolated U
DynamicList phiU_;
// Geometry related objects
//- Calculated volume fraction corresponding to the cut
scalar cutAlpha_;
//- Cut surface area vector
vector cutSf_;
//- Cut normal
vector cutNormal_;
//- Face cutter
MPLICface faceCutter_;
//- Sub cell volume
scalar subCellVolume_;
//- Cut points for single cut
DynamicList cutPoints_;
//- Cut edge labels for single cut
DynamicList