95 #ifndef flowRateOutletVelocity2FvPatchVectorField_H 96 #define flowRateOutletVelocity2FvPatchVectorField_H 110 class flowRateOutletVelocity2FvPatchVectorField
112 public fixedValueFvPatchVectorField
117 autoPtr<Function1<scalar>> flowRate_;
150 virtual tmp<Field<Type>> gradientInternalCoeffs()
const 152 return -pTraits<Type>::one*this->
patch().deltaCoeffs();
157 virtual tmp<Field<Type>> gradientBoundaryCoeffs()
const 159 return this->
patch().deltaCoeffs()*(*this);
166 template<
class RhoType>
167 void updateValues(
const RhoType&
rho);
173 TypeName(
"flowRateOutletVelocity2");
182 const DimensionedField<vector, volMesh>&
189 const DimensionedField<vector, volMesh>&,
200 const DimensionedField<vector, volMesh>&,
201 const fvPatchFieldMapper&
214 const DimensionedField<vector, volMesh>&
218 virtual tmp<fvPatchField<vector>>
clone()
const 224 virtual tmp<fvPatchField<vector>>
clone 226 const DimensionedField<vector, volMesh>& iF
239 virtual void write(Ostream&)
const;
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
TypeName("flowRateOutletVelocity2")
Runtime type information.
flowRateOutletVelocity2FvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
static tmp< fvPatchField< Type > > Clone(const DerivedPatchField &pf, Args &&... args)
Clone a patch field, optionally with internal field reference etc.
const std::string patch
OpenFOAM patch number as a std::string.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
A class for managing temporary objects.
virtual tmp< fvPatchField< vector > > clone() const
Return a clone.