46 fixedValueFvPatchScalarField(
p, iF),
60 fixedValueFvPatchScalarField(ptf,
p, iF, mapper),
73 fixedValueFvPatchScalarField(
p, iF),
87 fixedValueFvPatchScalarField(tppsf, iF),
106 const fvsPatchField<scalar>& phip = boundaryContrPtr_->phib();
113 const fvPatchField<vector>& Up = boundaryContrPtr_->Ub();
116 const fvPatchField<vector>& Uap = boundaryContrPtr_->Uab();
119 scalarField Uac_n(Uap.patchInternalField()() & nf);
135 tmp<scalarField> tmomentumDiffusion =
136 boundaryContrPtr_->momentumDiffusion();
137 scalarField& momentumDiffusion = tmomentumDiffusion.ref();
140 tmp<scalarField> tsource = boundaryContrPtr_->pressureSource();
144 if (addATCUaGradUTerm())
152 neg(phip)*(patchInternalField())
158 + 2*momentumDiffusion*snGradUan
163 fixedValueFvPatchScalarField::updateCoeffs();
176 pos(phip)*patch().deltaCoeffs()*(*
this - patchInternalField())
244 pos(phip)*(this->patch().deltaCoeffs()*(*
this))
260void Foam::adjointFarFieldPressureFvPatchScalarField::operator=
272void Foam::adjointFarFieldPressureFvPatchScalarField::operator=
285void Foam::adjointFarFieldPressureFvPatchScalarField::operator+=
298void Foam::adjointFarFieldPressureFvPatchScalarField::operator-=
311void Foam::adjointFarFieldPressureFvPatchScalarField::operator*=
316 if (&patch() != &ptf.patch())
319 <<
"Incompatible patches for patch fields"
330void Foam::adjointFarFieldPressureFvPatchScalarField::operator/=
335 if (&patch() != &ptf.patch())
338 <<
"Incompatible patches for patch fields"
349void Foam::adjointFarFieldPressureFvPatchScalarField::operator+=
361void Foam::adjointFarFieldPressureFvPatchScalarField::operator-=
373void Foam::adjointFarFieldPressureFvPatchScalarField::operator*=
378 const fvsPatchField<scalar>& phip = boundaryContrPtr_->phib();
385void Foam::adjointFarFieldPressureFvPatchScalarField::operator/=
397void Foam::adjointFarFieldPressureFvPatchScalarField::operator=
409void Foam::adjointFarFieldPressureFvPatchScalarField::operator+=
421void Foam::adjointFarFieldPressureFvPatchScalarField::operator-=
429 neg(phip)*((*
this)-t)
437void Foam::adjointFarFieldPressureFvPatchScalarField::operator*=
449void Foam::adjointFarFieldPressureFvPatchScalarField::operator/=
468 adjointFarFieldPressureFvPatchScalarField
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...
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
void operator=(const Field< Type > &)
Copy assignment.
@ MUST_READ
Reading required.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
autoPtr< boundaryAdjointContribution > boundaryContrPtr_
virtual tmp< Field< scalar > > gradientInternalCoeffs() const
Return the matrix diagonal coefficients corresponding to the evaluation of the gradient of this patch...
virtual void write(Ostream &) const
Write.
virtual tmp< Field< scalar > > snGrad() const
Return true if this patch field fixes a value.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual tmp< Field< scalar > > gradientBoundaryCoeffs() const
Return the matrix source coefficients corresponding to the evaluation of the gradient of this patchFi...
adjointFarFieldPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
virtual tmp< Field< scalar > > valueInternalCoeffs(const tmp< scalarField > &) const
Return the matrix diagonal coefficients corresponding to the evaluation of the value of this patchFie...
virtual tmp< Field< scalar > > valueBoundaryCoeffs(const tmp< scalarField > &) const
Return the matrix source coefficients corresponding to the.
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.
virtual tmp< Field< Type > > patchInternalField() const
Return internal field next to patch.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
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 traits class, which is primarily used for primitives and vector-space.
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.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
Define a concrete fvPatchField type and add to run-time tables Example, (fvPatchScalarField,...
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
dimensionedScalar pos(const dimensionedScalar &ds)
adjointBoundaryCondition< scalar > adjointScalarBoundaryCondition
static void check(const int retVal, const char *what)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
errorManip< error > abort(error &err)
Field< vector > vectorField
Specialisation of Field<T> for vector.
dimensionedScalar neg(const dimensionedScalar &ds)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
fvPatchField< scalar > fvPatchScalarField