46 fixedValueFvPatchScalarField(
p, iF),
60 fixedValueFvPatchScalarField(ptf,
p, iF, mapper),
73 fixedValueFvPatchScalarField(
p, iF),
76 this->readValueEntry(
dict, IOobjectOption::MUST_READ);
87 fixedValueFvPatchScalarField(tppsf, iF),
119 scalarField Uac_n(Uap.patchInternalField()() & nf);
135 tmp<scalarField> tmomentumDiffusion =
137 scalarField& momentumDiffusion = tmomentumDiffusion.ref();
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))
260 void Foam::adjointFarFieldPressureFvPatchScalarField::operator=
272 void Foam::adjointFarFieldPressureFvPatchScalarField::operator=
285 void Foam::adjointFarFieldPressureFvPatchScalarField::operator+=
298 void Foam::adjointFarFieldPressureFvPatchScalarField::operator-=
311 void Foam::adjointFarFieldPressureFvPatchScalarField::operator*=
316 if (&
patch() != &ptf.patch())
319 <<
"Incompatible patches for patch fields" 323 const fvsPatchField<scalar>& phip = boundaryContrPtr_->phib();
330 void Foam::adjointFarFieldPressureFvPatchScalarField::operator/=
335 if (&
patch() != &ptf.patch())
338 <<
"Incompatible patches for patch fields" 342 const fvsPatchField<scalar>& phip = boundaryContrPtr_->phib();
349 void Foam::adjointFarFieldPressureFvPatchScalarField::operator+=
361 void Foam::adjointFarFieldPressureFvPatchScalarField::operator-=
373 void Foam::adjointFarFieldPressureFvPatchScalarField::operator*=
385 void Foam::adjointFarFieldPressureFvPatchScalarField::operator/=
397 void Foam::adjointFarFieldPressureFvPatchScalarField::operator=
409 void Foam::adjointFarFieldPressureFvPatchScalarField::operator+=
421 void Foam::adjointFarFieldPressureFvPatchScalarField::operator-=
429 neg(phip)*((*
this)-t)
437 void Foam::adjointFarFieldPressureFvPatchScalarField::operator*=
449 void Foam::adjointFarFieldPressureFvPatchScalarField::operator/=
468 adjointFarFieldPressureFvPatchScalarField
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
adjointFarFieldPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual void write(Ostream &) const
Write.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
A traits class, which is primarily used for primitives.
virtual tmp< Field< scalar > > snGrad() const
Return true if this patch field fixes a value.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
virtual tmp< Field< scalar > > valueInternalCoeffs(const tmp< scalarField > &) const
Return the matrix diagonal coefficients corresponding to the evaluation of the value of this patchFie...
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
virtual void write(Ostream &) const
Write.
bool addATCUaGradUTerm()
Whether to add the extra term from the UaGradU formulation.
dimensionedScalar neg(const dimensionedScalar &ds)
virtual tmp< Field< scalar > > valueBoundaryCoeffs(const tmp< scalarField > &) const
Return the matrix source coefficients corresponding to the.
Macros for easy insertion into run-time selection tables.
dimensionedScalar pos(const dimensionedScalar &ds)
autoPtr< boundaryAdjointContribution > boundaryContrPtr_
Engine to manage contributions of the objective functions to the adjoint boundary conditions...
fvPatchField< scalar > fvPatchScalarField
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.
errorManip< error > abort(error &err)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual tmp< Field< scalar > > gradientBoundaryCoeffs() const
Return the matrix source coefficients corresponding to the evaluation of the gradient of this patchFi...
OBJstream os(runTime.globalPath()/outputName)
void operator=(const Field< Type > &)
Copy assignment.
static void check(const int retVal, const char *what)
virtual tmp< Field< scalar > > gradientInternalCoeffs() const
Return the matrix diagonal coefficients corresponding to the evaluation of the gradient of this patch...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Base class for solution control classes.
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.
A class for managing temporary objects.
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))
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...