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>"
69 addBoundaryDiag(
diag(), 0);
72 addBoundarySource(totalSource, 0);
81 psi_.boundaryField().scalarInterfaces(),
92 psi.correctBoundaryConditions();
94 psi.mesh().setSolverPerformance(
psi.name(), solverPerf);
104 addBoundaryDiag(boundaryDiag, 0);
115 source_ - boundaryDiag*psif,
117 psi_.boundaryField().scalarInterfaces(),
123 addBoundarySource(tres_s.
ref());
138 "H("+psi_.name()+
')',
146 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 (uses stdout - output is on the master only)
#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
const volScalarField & psi