OpenFOAM-dev / data /src /finiteVolume /cfdTools /general /fvModels /includeFvModelEntry /includeFvModelEntry.H
Download data/src/finiteVolume/cfdTools/general/fvModels/includeFvModelEntry/includeFvModelEntry.H from introvoyz042/OpenFOAM-dev: direct link, hf CLI and curl.
- Browser
- Download file 4.31 kB
-
https://huggingface.co/datasets/introvoyz042/OpenFOAM-dev/resolve/main/data/src/finiteVolume/cfdTools/general/fvModels/includeFvModelEntry/includeFvModelEntry.H
- Command line
-
hf download hf://datasets/introvoyz042/OpenFOAM-dev/data/src/finiteVolume/cfdTools/general/fvModels/includeFvModelEntry/includeFvModelEntry.H
-
curl -L -o includeFvModelEntry.H https://huggingface.co/datasets/introvoyz042/OpenFOAM-dev/resolve/main/data/src/finiteVolume/cfdTools/general/fvModels/includeFvModelEntry/includeFvModelEntry.H
4.31 kB
| /*---------------------------------------------------------------------------*\ | |
| ========= | | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | |
| \\ / O peration | Website: https://openfoam.org | |
| \\ / A nd | Copyright (C) 2023-2025 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::functionEntries::includeFvModelEntry | |
| Description | |
| Specify a fvModel dictionary file to include, expects the | |
| fvModel name to follow with option arguments (without quotes). | |
| Searches for fvModel dictionary file in user/group/shipped | |
| directories allowing for version-specific and version-independent files | |
| using the following hierarchy: | |
| - \b user settings: | |
| - ~/.OpenFOAM/\<VERSION\>/caseDicts/fvModels | |
| - ~/.OpenFOAM/caseDicts/fvModels | |
| - \b group (site) settings (when $WM_PROJECT_SITE is set): | |
| - $WM_PROJECT_SITE/\<VERSION\>/etc/caseDicts/fvModels | |
| - $WM_PROJECT_SITE/etc/caseDicts/fvModels | |
| - \b group (site) settings (when $WM_PROJECT_SITE is not set): | |
| - $WM_PROJECT_INST_DIR/site/\<VERSION\>/etc/caseDicts/fvModels | |
| - $WM_PROJECT_INST_DIR/site/etc/caseDicts/fvModels | |
| - \b other (shipped) settings: | |
| - $WM_PROJECT_DIR/etc/caseDicts/fvModels | |
| The optional field arguments included in the name are inserted in 'field' or | |
| 'fields' entries in the fvModel dictionary and included in the name | |
| of the fvModel entry to avoid conflict. | |
| Examples: | |
| \verbatim | |
| #includeModel clouds | |
| \endverbatim | |
| Other dictionary entries may also be specified using named arguments. | |
| See also | |
| Foam::includeFvConstraintEntry | |
| Foam::includeFuncEntry | |
| SourceFiles | |
| includeFvModelEntry.C | |
| \*---------------------------------------------------------------------------*/ | |
| // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | |
| namespace Foam | |
| { | |
| namespace functionEntries | |
| { | |
| /*---------------------------------------------------------------------------*\ | |
| Class includeFvModelEntry Declaration | |
| \*---------------------------------------------------------------------------*/ | |
| class includeFvModelEntry | |
| : | |
| public includeFuncEntry | |
| { | |
| public: | |
| //- Runtime type information | |
| FunctionTypeName("#includeModel"); | |
| // Constructors | |
| //- Construct from line number, dictionary and Istream | |
| includeFvModelEntry | |
| ( | |
| const label lineNumber, | |
| const dictionary& parentDict, | |
| Istream& is | |
| ); | |
| //- Copy construct | |
| includeFvModelEntry(const includeFvModelEntry&) = default; | |
| //- Clone | |
| virtual autoPtr<entry> clone(const dictionary&) const | |
| { | |
| return autoPtr<entry>(new includeFvModelEntry(*this)); | |
| } | |
| // Static Data Members | |
| //- Default relative path to the directory structure | |
| // containing the fvModel dictionary files | |
| static fileName fvModelDictPath; | |
| // Member Functions | |
| //- Expand the functionEntry into the contextDict | |
| virtual bool execute(dictionary& contextDict, Istream&); | |
| }; | |
| // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | |
| } // End namespace functionEntries | |
| } // End namespace Foam | |
| // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | |
| // ************************************************************************* // | |