Go to the documentation of this file.
44 fixedValueFvPatchVectorField(
p, iF),
60 fixedValueFvPatchVectorField(ptf,
p, iF, mapper),
75 fixedValueFvPatchVectorField(
p, iF),
77 kappa_(
dict.getOrDefault<scalar>(
"kappa", 0.41)),
78 E_(
dict.getOrDefault<scalar>(
"E", 9.8))
94 fixedValueFvPatchVectorField(pivpvf, iF),
96 kappa_(pivpvf.kappa_),
113 SAwallFunctionPatchField;
117 isA<SAwallFunctionPatchField>(boundaryContrPtr_->turbulentDiffusivity())
118 &&
patch().size() != 0
147 const scalarField auxA((kappa_/E_)*(
exp(kUu)-1 - kUu - 0.5*kUu*kUu));
157 label cellI =
patch().faceCells()[faceI];
159 2*auxB[faceI]*vtau[faceI]*((rt[faceI] + Uap_t[faceI]))
160 *(Uc[faceI]/
mag(Uc[faceI]))*magSf[faceI];
198 SAwallFunctionPatchField;
201 if (isA<SAwallFunctionPatchField>(nutb))
203 Uap_t1 = (Uac & tf1)*tf1;
209 Uap_t1 = - (tsource() & tf1)*tf1;
217 fixedValueFvPatchVectorField::updateCoeffs();
224 writeEntry(
"value",
os);
adjointWallVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
virtual tmp< Field< Type > > snGrad() const
Return patch-normal gradient.
A class for handling words, derived from Foam::string.
virtual void write(Ostream &) const
Write.
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)
autoPtr< boundaryAdjointContribution > boundaryContrPtr_
dimensionedScalar exp(const dimensionedScalar &ds)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
#define forAll(list, i)
Loop across all elements in list.
Field< vector > vectorField
Specialisation of Field<T> for vector.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
virtual void manipulateMatrix(fvMatrix< vector > &matrix)
word adjointSolverName_
adjointSolver name corresponding to field
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Adjoint wall velocity boundary condition. If nutUSpaldingWallFunction is employed in the flow solutio...
virtual tmp< Field< Type > > patchInternalField() const
Return internal field next to patch as patch field.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
This boundary condition provides a wall constraint on the turbulent viscosity, i.e....
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
adjointBoundaryCondition< vector > adjointVectorBoundaryCondition
const std::string patch
OpenFOAM patch number as a std::string.
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
A special matrix type and solver, designed for finite volume solutions of scalar equations....
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...