fipy.boundaryConditions.fixedValue

Boundary condition of order 0

Classes

FixedValue(faces, value)

Adds a Dirichlet contribution to the system of equations.

class fipy.boundaryConditions.fixedValue.FixedValue(faces, value)

Bases: BoundaryCondition

Adds a Dirichlet contribution to the system of equations.

Implements

\[\phi|_\text{faces} = \text{value}\]

The contributions are given by \(-\mathtt{value}\times G_{\text{face}}\) for the RHS vector and \(G_{\text{face}}\) for the coefficient matrix. The parameter \(G_{\text{face}}\) represents the term’s geometric coefficient, which depends on the type of term and the mesh geometry.

Contributions are only added to entries corresponding to the specified faces.

Parameters:
  • faces (FaceVariable of bool) – Mask of faces where this condition applies.

  • value (float) – Value to impose.

__repr__()

Return repr(self).

Last updated on Jun 26, 2024. Created using Sphinx 7.1.2.