Boundary
- class dustpy.utils.Boundary(r, ri, S, condition=None, value=None)[source]
Bases:
object
Class for managing boundary conditions for gas and dust.
Attributes Summary
The type of boundary condition to be applied.
The value of the boundary to be applied if applicable.
Methods Summary
Function sets the boundary value.
setcondition
(condition[, value])Function to set boundary condition.
Attributes Documentation
- condition
The type of boundary condition to be applied.
- value
The value of the boundary to be applied if applicable.
Methods Documentation
- setcondition(condition, value=None)[source]
Function to set boundary condition.
- Parameters:
condition (string) –
- Type of boundary conditon:
”const_grad” : constant gradient
”const_pow” : constant power law
”const_val” : constant value
”val” : custom value
”grad” : custom gradient
”pow” : custom power law with set exponent
None : Don’t impose boundary condition (default)
value (float or array, optional, default : None) – Value if needed for boundary condition