39Foam::adjointFarFieldPressureFvPatchScalarField::
40adjointFarFieldPressureFvPatchScalarField
46 fixedValueFvPatchScalarField(
p, iF),
51Foam::adjointFarFieldPressureFvPatchScalarField::
52adjointFarFieldPressureFvPatchScalarField
60 fixedValueFvPatchScalarField(ptf,
p, iF, mapper),
65Foam::adjointFarFieldPressureFvPatchScalarField::
66adjointFarFieldPressureFvPatchScalarField
73 fixedValueFvPatchScalarField(
p, iF),
83Foam::adjointFarFieldPressureFvPatchScalarField::
84adjointFarFieldPressureFvPatchScalarField
90 fixedValueFvPatchScalarField(tppsf, iF),
139 boundaryContrPtr_->momentumDiffusion();
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);
319 if (&patch() != &ptf.patch())
322 <<
"Incompatible patches for patch fields"
338 if (&patch() != &ptf.patch())
341 <<
"Incompatible patches for patch fields"
432 neg(phip)*((*
this)-t)
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 operator=(const Field< Type > &)
Copy assignment.
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.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void size(const label n)
Older name for setAddressableSize.
Base class for solution control classes.
virtual tmp< Field< scalar > > gradientInternalCoeffs() const
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
virtual tmp< Field< scalar > > valueInternalCoeffs(const tmp< scalarField > &) const
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,...
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 tmp< Field< Type > > patchInternalField() const
Return internal field next to patch as patch field.
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 class representing the concept of 1 (one) that can be used to avoid manipulating objects known to b...
A class for managing temporary objects.
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)
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)
static void check(const int retVal, const char *what)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
errorManip< error > abort(error &err)
dimensionedScalar neg(const dimensionedScalar &ds)