/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2018-2019 OpenCFD Ltd.
\\/ 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 .
\*---------------------------------------------------------------------------*/
#include "meshRefinement.H"
#include "fvMesh.H"
#include "Time.H"
#include "refinementSurfaces.H"
#include "removeCells.H"
#include "unitConversion.H"
#include "bitSet.H"
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
//Foam::label Foam::meshRefinement::markFakeGapRefinement
//(
// const scalar planarCos,
//
// const label nAllowRefine,
// const labelList& neiLevel,
// const pointField& neiCc,
//
// labelList& refineCell,
// label& nRefine
//) const
//{
// label oldNRefine = nRefine;
//
//
// // Collect candidate faces (i.e. intersecting any surface and
// // owner/neighbour not yet refined.
// const labelList testFaces(getRefineCandidateFaces(refineCell));
//
// // Collect segments
// pointField start(testFaces.size());
// pointField end(testFaces.size());
// labelList minLevel(testFaces.size());
//
// calcCellCellRays
// (
// neiCc,
// neiLevel,
// testFaces,
// start,
// end,
// minLevel
// );
//
//
// // Re-use the gap shooting methods. This needs:
// // - shell gapLevel : faked. Set to 0,labelMax
// // - surface gapLevel : faked by overwriting
//
//
// List>& surfGapLevel = const_cast
// <
// List>&
// >(surfaces_.extendedGapLevel());
//
// List& surfGapMode = const_cast
// <
// List&
// >(surfaces_.extendedGapMode());
//
// const List> surfOldLevel(surfGapLevel);
// const List surfOldMode(surfGapMode);
//
// // Set the extended gap levels
// forAll(surfaces_.gapLevel(), regioni)
// {
// surfGapLevel[regioni] = FixedList