46 fixedValueFvPatchScalarField(
p, iF),
60 fixedValueFvPatchScalarField(ptf,
p, iF, mapper),
73 fixedValueFvPatchScalarField(
p, iF),
90 fixedValueFvPatchScalarField(tppsf, iF),
109 const fvsPatchField<scalar>& phip = boundaryContrPtr_->phib();
116 const fvPatchField<vector>& Up = boundaryContrPtr_->Ub();
119 const fvPatchField<vector>& Uap = boundaryContrPtr_->Uab();
122 scalarField Uac_n(Uap.patchInternalField()() & nf);
138 tmp<scalarField> tmomentumDiffusion =
139 boundaryContrPtr_->momentumDiffusion();
140 scalarField& momentumDiffusion = tmomentumDiffusion.ref();
143 tmp<scalarField> tsource = boundaryContrPtr_->pressureSource();
147 if (addATCUaGradUTerm())
155 neg(phip)*(patchInternalField())
161 + 2*momentumDiffusion*snGradUan
166 fixedValueFvPatchScalarField::updateCoeffs();
179 pos(phip)*
patch().deltaCoeffs()*(*
this - patchInternalField())
247 pos(phip)*(this->
patch().deltaCoeffs()*(*this))
256 writeEntry(
"value",
os);
263 void Foam::adjointFarFieldPressureFvPatchScalarField::operator=
275 void Foam::adjointFarFieldPressureFvPatchScalarField::operator=
288 void Foam::adjointFarFieldPressureFvPatchScalarField::operator+=
301 void Foam::adjointFarFieldPressureFvPatchScalarField::operator-=
314 void Foam::adjointFarFieldPressureFvPatchScalarField::operator*=
319 if (&
patch() != &ptf.patch())
322 <<
"Incompatible patches for patch fields" 326 const fvsPatchField<scalar>& phip = boundaryContrPtr_->phib();
333 void Foam::adjointFarFieldPressureFvPatchScalarField::operator/=
338 if (&
patch() != &ptf.patch())
341 <<
"Incompatible patches for patch fields" 345 const fvsPatchField<scalar>& phip = boundaryContrPtr_->phib();
352 void Foam::adjointFarFieldPressureFvPatchScalarField::operator+=
364 void Foam::adjointFarFieldPressureFvPatchScalarField::operator-=
376 void Foam::adjointFarFieldPressureFvPatchScalarField::operator*=
388 void Foam::adjointFarFieldPressureFvPatchScalarField::operator/=
400 void Foam::adjointFarFieldPressureFvPatchScalarField::operator=
412 void Foam::adjointFarFieldPressureFvPatchScalarField::operator+=
424 void Foam::adjointFarFieldPressureFvPatchScalarField::operator-=
432 neg(phip)*((*
this)-t)
440 void Foam::adjointFarFieldPressureFvPatchScalarField::operator*=
452 void Foam::adjointFarFieldPressureFvPatchScalarField::operator/=
471 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.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
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...
virtual void write(Ostream &) const
Write.
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)
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...