/*---------------------------------------------------------------------------*\ ========= | \\ / 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 . Class Foam::fixedProfileFvPatchField Description This boundary condition provides a fixed value profile condition. Usage \table Property | Description | Required | Default value profile | Profile function | yes | direction | Direction of the line along which the profile is \\ evaluated | yes | origin | Origin of the line along which the profile is \\ evaluated | yes | \endtable Example of the boundary condition specification: \verbatim { type fixedProfile; profile { type table; file "UProfile"; format csv; nHeaderLine 0; columns (0 (1 2 3)); separator ","; mergeSeparators no; outOfBounds clamp; interpolationScheme linear; } direction (0 1 0); origin 0; } \endverbatim Example setting a parabolic inlet profile for the pitzDaily case: \verbatim inlet { type fixedProfile; profile polynomial ( ((1 0 0) (0 0 0)) ((-6200 0 0) (2 0 0)) ); direction (0 1 0); origin 0.0127; } \endverbatim See also Foam::Function1s SourceFiles fixedProfileFvPatchField.C \*---------------------------------------------------------------------------*/ #ifndef fixedProfileFvPatchField_H #define fixedProfileFvPatchField_H #include "fixedValueFvPatchFields.H" #include "Function1.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam { /*---------------------------------------------------------------------------*\ Class fixedProfileFvPatchField Declaration \*---------------------------------------------------------------------------*/ template class fixedProfileFvPatchField : public fixedValueFvPatchField { // Private Data //- Profile function autoPtr> profile_; //- Origin of the line along which the profile is evaluated scalar origin_; //- Direction of the line along which the profile is evaluated vector direction_; public: //- Runtime type information TypeName("fixedProfile"); // Constructors //- Construct from patch, internal field and dictionary fixedProfileFvPatchField ( const fvPatch&, const DimensionedField&, const dictionary& ); //- Construct by mapping given fixedProfileFvPatchField // onto a new patch fixedProfileFvPatchField ( const fixedProfileFvPatchField&, const fvPatch&, const DimensionedField&, const fieldMapper& ); //- Disallow copy without setting internal field reference fixedProfileFvPatchField ( const fixedProfileFvPatchField& ) = delete; //- Copy constructor setting internal field reference fixedProfileFvPatchField ( const fixedProfileFvPatchField&, const DimensionedField& ); //- Construct and return a clone setting internal field reference virtual tmp> clone ( const DimensionedField& iF ) const { return tmp> ( new fixedProfileFvPatchField(*this, iF) ); } // Member Functions using fvPatchField::patch; // Evaluation functions //- Update the coefficients associated with the patch field virtual void updateCoeffs(); //- Write virtual void write(Ostream&) const; // Member Operators //- Inherit assignment using fixedValueFvPatchField::operator=; }; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // #ifdef NoRepository #include "fixedProfileFvPatchField.C" #endif // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // #endif // ************************************************************************* //