47 fixedValueFvPatchScalarField(
p, iF),
61 fixedValueFvPatchScalarField(ptf,
p, iF, mapper),
74 fixedValueFvPatchScalarField(
p, iF),
88 fixedValueFvPatchScalarField(tppsf, iF),
107 const fvsPatchField<scalar>& phip = boundaryContrPtr_->phib();
108 const fvPatchField<vector>& Up = boundaryContrPtr_->Ub();
111 const fvPatchField<vector>& Uap = boundaryContrPtr_->Uab();
121 tmp<scalarField> tmomentumDiffusion =
122 boundaryContrPtr_->momentumDiffusion();
123 const scalarField& momentumDiffusion = tmomentumDiffusion();
126 const word& UaName = boundaryContrPtr_->Uab().internalField().name();
127 tmp<tensorField> tgradUab = computePatchGrad<vector>(UaName);
134 scalarField normalExplDifFlux(explDiffusiveFlux & nf);
137 tmp<scalarField> tsource = boundaryContrPtr_->pressureSource();
141 if (addATCUaGradUTerm())
149 + momentumDiffusion*snGradUan
154 fixedValueFvPatchScalarField::updateCoeffs();
161 os.writeEntry(
"solverName", adjointSolverName_);
173 adjointOutletPressureFvPatchScalarField
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
@ MUST_READ
Reading required.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static const SphericalTensor oneThirdI
autoPtr< boundaryAdjointContribution > boundaryContrPtr_
tmp< Field< typename Foam::outerProduct< Foam::vector, Type2 >::type > > computePatchGrad(word name)
virtual void write(Ostream &) const
Write.
adjointOutletPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A FieldMapper for finite-volume patch fields.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
virtual tmp< Field< Type > > snGrad() const
Return patch-normal gradient.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
A class for managing temporary objects.
T & ref() const
Return non-const reference to the contents of a non-null managed pointer.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
Define a concrete fvPatchField type and add to run-time tables Example, (fvPatchScalarField,...
dimensionedScalar tr(const dimensionedSphericalTensor &dt)
adjointBoundaryCondition< scalar > adjointScalarBoundaryCondition
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Field< vector > vectorField
Specialisation of Field<T> for vector.
Field< tensor > tensorField
Specialisation of Field<T> for tensor.
fvPatchField< scalar > fvPatchScalarField