36void 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);
97Foam::adjointOutletVelocityFvPatchVectorField::
98adjointOutletVelocityFvPatchVectorField
104 fixedValueFvPatchVectorField(
p, iF),
109Foam::adjointOutletVelocityFvPatchVectorField::
110adjointOutletVelocityFvPatchVectorField
118 fixedValueFvPatchVectorField(ptf,
p, iF, mapper),
123Foam::adjointOutletVelocityFvPatchVectorField::
124adjointOutletVelocityFvPatchVectorField
131 fixedValueFvPatchVectorField(
p, iF),
141Foam::adjointOutletVelocityFvPatchVectorField::
142adjointOutletVelocityFvPatchVectorField
148 fixedValueFvPatchVectorField(pivpvf, iF),
160 assignBoundaryValue();
168 writeEntry(
"value",
os);
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...
void evaluate()
Evaluate boundary conditions.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
static const SphericalTensor oneThirdI
void size(const label n)
Older name for setAddressableSize.
commsTypes
Types of communications.
Base class for solution control classes.
autoPtr< boundaryAdjointContribution > boundaryContrPtr_
Provides the adjoint outlet velocity values (i.e. adjoint velocity in case of a zeroGradient U bounda...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
friend Ostream & operator(Ostream &, const faMatrix< Type > &)
virtual bool write()
Write the output fields.
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 operator=(const UList< Type > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
const std::string patch
OpenFOAM patch number as a std::string.
dimensionedScalar tr(const dimensionedSphericalTensor &dt)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
Field< vector > vectorField
Specialisation of Field<T> for vector.
Field< tensor > tensorField
Specialisation of Field<T> for tensor.