/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2026 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::FvFaceCellWave
Description
Wave propagation of information through grid. Every iteration
information goes through one layer of cells. Templated on information
that is transferred.
Handles parallel and cyclics and non-parallel cyclics.
Note: whether to propagate depends on the return value of Type::update
which returns true (i.e. propagate) if the value changes by more than a
certain tolerance.
This tolerance can be very strict for normal face-cell and parallel
cyclics (we use a value of 0.01 just to limit propagation of small changes)
but for non-parallel cyclics this tolerance can be critical and if chosen
too small can lead to non-convergence.
SourceFiles
FvFaceCellWave.C
\*---------------------------------------------------------------------------*/
#ifndef FvFaceCellWave_H
#define FvFaceCellWave_H
#include "volFields.H"
#include "surfaceFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// Forward declaration of classes
class fvMesh;
class fvPatch;
class transformer;
/*---------------------------------------------------------------------------*\
Class FvFaceCellWaveName Declaration
\*---------------------------------------------------------------------------*/
TemplateName(FvFaceCellWave);
/*---------------------------------------------------------------------------*\
Class FvFaceCellWave Declaration
\*---------------------------------------------------------------------------*/
template
class FvFaceCellWave
:
public FvFaceCellWaveName
{
protected:
// Protected static data
//- ...
static const scalar geomTol_;
//- ...
static scalar propagationTol_;
// Protected data
//- Reference to mesh
const fvMesh& mesh_;
//- Information for internal faces
List& internalFaceInfo_;
//- Information for patch faces
List>& patchFaceInfo_;
//- Information for all cells
List& cellInfo_;
//- Additional data to be passed into container
TrackingData& td_;
//- Has internal face changed?
PackedBoolList internalFaceChanged_;
//- Has patch face changed?
List patchFaceChanged_;
//- Has cell changed?
PackedBoolList cellChanged_;
//- List of changed patch and faces
DynamicList changedPatchAndFaces_;
//- List of changed cells
DynamicList