ndiffusion.BoundaryCondition¶
- class ndiffusion.BoundaryCondition¶
Robin BC on one edge of the domain: A*phi + B*(dphi/dn) = 0, with n the outward normal, so the coefficients mean the same thing on every edge.
Common choices:
vacuum (Marshak): A = (1-alpha)/(4*(1+alpha)), B = D/2 reflective: A = 0, B = 1 zero-flux approx: A = 1, B = 0
- __init__(*args, **kwargs)¶
Overloaded function.
__init__(self: ndiffusion._core.BoundaryCondition) -> None
__init__(self: ndiffusion._core.BoundaryCondition, A: typing.SupportsFloat | typing.SupportsIndex, B: typing.SupportsFloat | typing.SupportsIndex) -> None
Methods
__init__(*args, **kwargs)Overloaded function.
Attributes
- property A¶
- property B¶