OpenFOAM-dev / data /src /finiteVolume /fvMesh /wallDist /patchDistMethods /patchDistMethod /patchDistMethod.H
Download data/src/finiteVolume/fvMesh/wallDist/patchDistMethods/patchDistMethod/patchDistMethod.H from introvoyz042/OpenFOAM-dev: direct link, hf CLI and curl.
- Browser
- Download file 4.94 kB
-
https://huggingface.co/datasets/introvoyz042/OpenFOAM-dev/resolve/main/data/src/finiteVolume/fvMesh/wallDist/patchDistMethods/patchDistMethod/patchDistMethod.H
- Command line
-
hf download hf://datasets/introvoyz042/OpenFOAM-dev/data/src/finiteVolume/fvMesh/wallDist/patchDistMethods/patchDistMethod/patchDistMethod.H
-
curl -L -o patchDistMethod.H https://huggingface.co/datasets/introvoyz042/OpenFOAM-dev/resolve/main/data/src/finiteVolume/fvMesh/wallDist/patchDistMethods/patchDistMethod/patchDistMethod.H
4.94 kB
| /*---------------------------------------------------------------------------*\ | |
| ========= | | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | |
| \\ / O peration | Website: https://openfoam.org | |
| \\ / A nd | Copyright (C) 2015-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 <http://www.gnu.org/licenses/>. | |
| Class | |
| Foam::patchDistMethod | |
| Description | |
| Specialisation of patchDist for wall distance calculation | |
| SourceFiles | |
| patchDistMethod.C | |
| \*---------------------------------------------------------------------------*/ | |
| // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | |
| namespace Foam | |
| { | |
| class fvMesh; | |
| /*---------------------------------------------------------------------------*\ | |
| Class patchDistMethod Declaration | |
| \*---------------------------------------------------------------------------*/ | |
| class patchDistMethod | |
| { | |
| protected: | |
| // Protected Data | |
| //- Reference to the mesh | |
| const fvMesh& mesh_; | |
| //- Set of patch IDs | |
| const labelHashSet patchIndices_; | |
| public: | |
| //- Runtime type information | |
| TypeName("patchDistMethod"); | |
| // Declare runtime construction | |
| declareRunTimeSelectionTable | |
| ( | |
| autoPtr, | |
| patchDistMethod, | |
| dictionary, | |
| ( | |
| const dictionary& dict, | |
| const fvMesh& mesh, | |
| const labelHashSet& patchIDs | |
| ), | |
| (dict, mesh, patchIDs) | |
| ); | |
| // Constructors | |
| //- Construct from mesh and patch ID set | |
| patchDistMethod | |
| ( | |
| const fvMesh& mesh, | |
| const labelHashSet& patchIDs | |
| ); | |
| //- Disallow default bitwise copy construction | |
| patchDistMethod(const patchDistMethod&) = delete; | |
| // Selectors | |
| static autoPtr<patchDistMethod> New | |
| ( | |
| const dictionary& dict, | |
| const fvMesh& mesh, | |
| const labelHashSet& patchIDs | |
| ); | |
| //- Destructor | |
| virtual ~patchDistMethod(); | |
| // Static Functions | |
| //- Return the patch types for y and n | |
| // These are fixedValue for the set provided otherwise zero-gradient | |
| template<class Type> | |
| static wordList patchTypes | |
| ( | |
| const fvMesh& mesh, | |
| const labelHashSet& patchIDs | |
| ); | |
| // Member Functions | |
| //- Return the patchIDs | |
| const labelHashSet& patchIndices() const | |
| { | |
| return patchIndices_; | |
| } | |
| //- Update cached geometry when the mesh moves | |
| virtual bool movePoints() | |
| { | |
| return true; | |
| } | |
| //- Update cached topology and geometry when the mesh changes | |
| virtual void topoChange(const polyTopoChangeMap&) | |
| {} | |
| //- Update from another mesh using the given map | |
| virtual void mapMesh(const polyMeshMap&) | |
| {} | |
| //- Redistribute or update using the given distribution map | |
| virtual void distribute(const polyDistributionMap&) | |
| {} | |
| //- Correct the given distance-to-patch field | |
| virtual bool correct(volScalarField& y) = 0; | |
| //- Correct the given distance-to-patch and normal-to-patch fields | |
| virtual bool correct(volScalarField& y, volVectorField& n) = 0; | |
| // Member Operators | |
| //- Disallow default bitwise assignment | |
| void operator=(const patchDistMethod&) = delete; | |
| }; | |
| // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | |
| } // End namespace Foam | |
| // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | |
| // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | |
| // ************************************************************************* // | |