Go to the documentation of this file.
47 const labelUList& faceLabels = psi_.mesh().boundary()[patchI].edgeFaces();
49 internalCoeffs_[patchI][edgeI] +=
diag()[faceLabels[edgeI]];
51 boundaryCoeffs_[patchI][edgeI] = value;
62 <<
"solving faMatrix<scalar>"
76 addBoundaryDiag(
diag(), 0);
79 addBoundarySource(totalSource, 0);
88 psi_.boundaryField().scalarInterfaces(),
99 psi.correctBoundaryConditions();
101 psi.mesh().setSolverPerformance(
psi.name(), solverPerf);
111 addBoundaryDiag(boundaryDiag, 0);
122 source_ - boundaryDiag*psif,
124 psi_.boundaryField().scalarInterfaces(),
130 addBoundarySource(tres_s.
ref());
145 "H("+psi_.name()+
')',
153 zeroGradientFaPatchScalarField::typeName
int debug
Static debugging option.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)
void diag(pointPatchField< vector > &, const pointPatchField< tensor > &)
volScalarField H(IOobject("H", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), mesh, dimensionedScalar(dimLength, Zero))
Ostream & endl(Ostream &os)
Add newline and flush stream.
void setComponentReference(const label patchi, const label facei, const direction cmpt, const scalar value)
const dimensionSet dimArea(sqr(dimLength))
const Mesh & mesh() const
Return mesh.
messageStream Info
Information stream (stdout output on master, null elsewhere)
#define DebugInFunction
Report an information message using Foam::Info.
SolverPerformance< Type > solve()
Solve returning the solution statistics.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
tmp< GeometricField< Type, faPatchField, areaMesh > > H() const
Return the H operation source.
Internal::FieldType & primitiveFieldRef(const bool updateAccessTime=true)
Return a reference to the internal field.
void correctBoundaryConditions()
Correct boundary field.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
Internal & ref(const bool updateAccessTime=true)
Return a reference to the dimensioned internal field.
A const Field/List wrapper with possible data conversion.
tmp< Field< Type > > residual() const
Return the matrix residual.
Container< Type > & ref() const
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
const volScalarField & psi