OpenFOAM-dev / data /src /lagrangian /parcel /submodels /CloudFunctionObjects /CloudFunctionObject /CloudFunctionObject.H
Download data/src/lagrangian/parcel/submodels/CloudFunctionObjects/CloudFunctionObject/CloudFunctionObject.H from introvoyz042/OpenFOAM-dev: direct link, hf CLI and curl.
- Browser
- Download file 7.62 kB
-
https://huggingface.co/datasets/introvoyz042/OpenFOAM-dev/resolve/main/data/src/lagrangian/parcel/submodels/CloudFunctionObjects/CloudFunctionObject/CloudFunctionObject.H
- Command line
-
hf download hf://datasets/introvoyz042/OpenFOAM-dev/data/src/lagrangian/parcel/submodels/CloudFunctionObjects/CloudFunctionObject/CloudFunctionObject.H
-
curl -L -o CloudFunctionObject.H https://huggingface.co/datasets/introvoyz042/OpenFOAM-dev/resolve/main/data/src/lagrangian/parcel/submodels/CloudFunctionObjects/CloudFunctionObject/CloudFunctionObject.H
7.62 kB
| /*---------------------------------------------------------------------------*\ | |
| ========= | | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | |
| \\ / O peration | Website: https://openfoam.org | |
| \\ / A nd | Copyright (C) 2011-2024 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::CloudFunctionObject | |
| Description | |
| Templated cloud function object base class | |
| SourceFiles | |
| CloudFunctionObject.C | |
| CloudFunctionObjectNew.C | |
| \*---------------------------------------------------------------------------*/ | |
| // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | |
| namespace Foam | |
| { | |
| class polyPatch; | |
| class tetIndices; | |
| /*---------------------------------------------------------------------------*\ | |
| Class CloudFunctionObject Declaration | |
| \*---------------------------------------------------------------------------*/ | |
| template<class CloudType> | |
| class CloudFunctionObject | |
| : | |
| public CloudSubModelBase<CloudType> | |
| { | |
| // Private Data | |
| //- Output path | |
| fileName outputDir_; | |
| // Private Member Functions | |
| //- Inherit write from CloudSubModelBase | |
| using CloudSubModelBase<CloudType>::write; | |
| //- Write post-processing info | |
| virtual void write(); | |
| public: | |
| //- Runtime type information | |
| TypeName("cloudFunctionObject"); | |
| //- Declare runtime constructor selection table | |
| declareRunTimeSelectionTable | |
| ( | |
| autoPtr, | |
| CloudFunctionObject, | |
| dictionary, | |
| ( | |
| const dictionary& dict, | |
| CloudType& owner, | |
| const word& modelName | |
| ), | |
| (dict, owner, modelName) | |
| ); | |
| // Constructors | |
| //- Construct null from owner | |
| CloudFunctionObject(CloudType& owner); | |
| //- Construct from dictionary | |
| CloudFunctionObject | |
| ( | |
| const dictionary& dict, | |
| CloudType& owner, | |
| const word& objectType, | |
| const word& modelName | |
| ); | |
| //- Construct copy | |
| CloudFunctionObject(const CloudFunctionObject<CloudType>& ppm); | |
| //- Construct and return a clone | |
| virtual autoPtr<CloudFunctionObject<CloudType>> clone() const | |
| { | |
| return autoPtr<CloudFunctionObject<CloudType>> | |
| ( | |
| new CloudFunctionObject<CloudType>(*this) | |
| ); | |
| } | |
| //- Destructor | |
| virtual ~CloudFunctionObject(); | |
| //- Selector | |
| static autoPtr<CloudFunctionObject<CloudType>> New | |
| ( | |
| const dictionary& dict, | |
| CloudType& owner, | |
| const word& objectType, | |
| const word& modelName | |
| ); | |
| // Member Functions | |
| // Evaluation | |
| //- Pre-evolve hook | |
| virtual void preEvolve(); | |
| //- Post-evolve hook | |
| virtual void postEvolve(); | |
| //- Post-move hook | |
| virtual void postMove | |
| ( | |
| typename CloudType::parcelType& p, | |
| const scalar dt, | |
| const point& position0, | |
| bool& keepParticle | |
| ); | |
| //- Post-patch hook | |
| virtual void postPatch | |
| ( | |
| const typename CloudType::parcelType& p, | |
| const polyPatch& pp | |
| ); | |
| //- Pre-face hook | |
| virtual void preFace(const typename CloudType::parcelType& p); | |
| //- Post-face hook | |
| virtual void postFace(const typename CloudType::parcelType& p); | |
| // Input/output | |
| //- Return the output path | |
| const fileName& outputDir() const; | |
| //- Return the output time path | |
| fileName writeTimeDir() const; | |
| }; | |
| // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | |
| } // End namespace Foam | |
| // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | |
| // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | |
| // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | |
| // ************************************************************************* // | |