36 void Foam::adjointOutletVelocityFvPatchVectorField::assignBoundaryValue()
39 tmp<vectorField> tnf(
patch().nf());
63 tmp<scalarField> tmomentumDiffusion
67 const scalarField& momentumDiffusion = tmomentumDiffusion();
70 const word& fieldName = internalField().name();
71 tmp<tensorField> tgradUaf(computePatchGrad<vector>(fieldName));
80 explDiffusiveFlux - (explDiffusiveFlux & nf)*nf
89 vectorField Uat((nd*Uac_t - explDiffusiveFlux_t - source)/denom);
104 fixedValueFvPatchVectorField(
p, iF),
118 fixedValueFvPatchVectorField(ptf,
p, iF, mapper),
131 fixedValueFvPatchVectorField(
p, iF),
145 fixedValueFvPatchVectorField(pivpvf, iF),
157 assignBoundaryValue();
172 void Foam::adjointOutletVelocityFvPatchVectorField::operator=
188 adjointOutletVelocityFvPatchVectorField
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
fvPatchField< vector > fvPatchVectorField
commsTypes
Communications types.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::buffered)
Evaluate the patch field, sets updated() to false.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::buffered)
Update the coefficients associated with the patch field.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
virtual void write(Ostream &) const
Write.
static const SphericalTensor oneThirdI
Macros for easy insertion into run-time selection tables.
autoPtr< boundaryAdjointContribution > boundaryContrPtr_
Engine to manage contributions of the objective functions to the adjoint boundary conditions...
A class for handling words, derived from Foam::string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
A FieldMapper for finite-volume patch fields.
dimensionedScalar tr(const dimensionedSphericalTensor &dt)
Provides the adjoint outlet velocity values (i.e. adjoint velocity in case of a zeroGradient U bounda...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
virtual void write(Ostream &) const
Write.
Field< tensor > tensorField
Specialisation of Field<T> for tensor.
Base class for solution control classes.
virtual void operator=(const UList< Type > &)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const std::string patch
OpenFOAM patch number as a std::string.
Field< vector > vectorField
Specialisation of Field<T> for vector.
adjointOutletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)