This page contains the boundaryConditions Package documentation.
Generic boundary condition base class.
Attention
This class is abstract. Always create one of its subclasses.
Parameters : |
|
---|
The BoundaryCondition class should raise an error when invoked with internal faces. Don’t use the BoundaryCondition class in this manner. This is merely a test.
>>> from fipy.meshes.grid1D import Grid1D
>>> mesh = Grid1D(nx = 2)
>>> from fipy.tools import parallel
>>> if parallel.procID == 0:
... bc = __BoundaryCondition(mesh.getInteriorFaces(), 0)
... else:
... raise IndexError("Face list has interior faces")
Traceback (most recent call last):
...
IndexError: Face list has interior faces
Bases: fipy.boundaryConditions.boundaryCondition.BoundaryCondition
The FixedFlux boundary condition adds a contribution, equivalent to a fixed flux (Neumann condition), to the equation’s RHS vector. The contribution, given by value, is only added to entries corresponding to the specified faces, and is weighted by the face areas.
Creates a FixedFlux object.
Parameters : |
|
---|
Bases: fipy.boundaryConditions.boundaryCondition.BoundaryCondition
The FixedValue boundary condition adds a contribution, equivalent to a fixed value (Dirichlet condition), to the equation’s RHS vector and coefficient matrix. The contributions are given by for the RHS vector and for the coefficient matrix. The parameter 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 : |
|
---|
The BoundaryCondition class should raise an error when invoked with internal faces. Don’t use the BoundaryCondition class in this manner. This is merely a test.
>>> from fipy.meshes.grid1D import Grid1D
>>> mesh = Grid1D(nx = 2)
>>> from fipy.tools import parallel
>>> if parallel.procID == 0:
... bc = __BoundaryCondition(mesh.getInteriorFaces(), 0)
... else:
... raise IndexError("Face list has interior faces")
Traceback (most recent call last):
...
IndexError: Face list has interior faces
Bases: fipy.boundaryConditions.boundaryCondition.BoundaryCondition
This boundary condition is generally used in conjunction with a ImplicitDiffusionTerm that has multiple coefficients. It does not have any direct effect on the solution matrices, but its derivatives do.
Creates an NthOrderBoundaryCondition.
Parameters : |
|
---|