/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2016 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::flameControllingVelocityFvPatchVectorField Group grpGenericBoundaryConditions grpInletBoundaryConditions Description This boundary condition provides a surface-normal vector boundary condition by its magnitude. Usage \table Property | Description | Required | Default value refValue | reference value | yes | \endtable Example of the boundary condition specification: \verbatim { type flameControllingVelocity; refValue uniform -10; // 10 INTO the domain } \endverbatim Note Sign conventions: - the value is positive for outward-pointing vectors See also Foam::fixedValueFvPatchField SourceFiles flameControllingVelocityFvPatchVectorField.C \*---------------------------------------------------------------------------*/ #ifndef flameControllingVelocityFvPatchVectorField_H #define flameControllingVelocityFvPatchVectorField_H #include "fvPatchFields.H" #include "fixedValueFvPatchFields.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam { /*---------------------------------------------------------------------------*\ Class flameControllingVelocityFvPatchVectorField Declaration \*---------------------------------------------------------------------------*/ class flameControllingVelocityFvPatchVectorField : public fixedValueFvPatchVectorField { // Private data scalarField refValue_; // scalar fuelVolumeRatio; scalar Tref_; scalar startTime_; scalar lastTime; scalar lastVolume; scalar lastMass; public: //- Runtime type information TypeName("flameControllingVelocity"); // Constructors //- Construct from patch and internal field flameControllingVelocityFvPatchVectorField ( const fvPatch&, const DimensionedField& ); //- Construct from patch, internal field and dictionary flameControllingVelocityFvPatchVectorField ( const fvPatch&, const DimensionedField&, const dictionary& ); //- Construct by mapping given // flameControllingVelocityFvPatchVectorField // onto a new patch flameControllingVelocityFvPatchVectorField ( const flameControllingVelocityFvPatchVectorField&, const fvPatch&, const DimensionedField&, const fvPatchFieldMapper& ); //- Construct as copy flameControllingVelocityFvPatchVectorField ( const flameControllingVelocityFvPatchVectorField& ); //- Construct and return a clone virtual tmp clone() const { return tmp ( new flameControllingVelocityFvPatchVectorField(*this) ); } //- Construct as copy setting internal field reference flameControllingVelocityFvPatchVectorField ( const flameControllingVelocityFvPatchVectorField&, const DimensionedField& ); //- Construct and return a clone setting internal field reference virtual tmp clone ( const DimensionedField& iF ) const { return tmp ( new flameControllingVelocityFvPatchVectorField ( *this, iF ) ); } // Member functions // Mapping functions //- Map (and resize as needed) from self given a mapping object virtual void autoMap ( const fvPatchFieldMapper& ); //- Reverse map the given fvPatchField onto this fvPatchField virtual void rmap ( const fvPatchVectorField&, const labelList& ); // Evaluation functions //- Update the coefficients associated with the patch field virtual void updateCoeffs(); //- Write virtual void write(Ostream&) const; }; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // #endif // ************************************************************************* //