TankHoleSeries Commands
4 models that start with TankHole (TankHole, TankHoleInitRate, TankHoleDuration, TankHoleFixStep) models Liquids outflow from a hole in the body of the tank with small changes to each other. TankHole models the outflow until the outflow volume become equal to the Tank containment volume, TankHoleInitRate is same TankHole model with outflow rate equal to the initial rate, TankHoleDuration is same Tankhole model but its calculations will be stop when the release duration become equal to defined duration and TankHoleFixStep is same TankHole but with limited steps of calculations. Models are according [Ref.1].
- OutFlowModel.TankHole(Tag, Hole_Diameter=0.01, Hole_Height_FromBot=0, delta_t=0.1, Cd=1)
Argument
Type
Description
Tag
int
Unique integer value that will be used for referring to the defined elements or objects.
Hole_Diameter
float
Diameter of the hole that liquid release.
Hole_Height_FromBot
float
the height of the hole from the ground.
delta_t
float
Calculation steps time interval.
Cd
float
Discharge coefficient ≤1.
Example:
Python Code
import opensrane as opr opr.OutFlowModel.TankHole(Tag, Hole_Diameter=0.05, Hole_Height_FromBot=0, delta_t=500, Cd=1)
- OutFlowModel.TankHoleInitRate(Tag, Hole_Diameter=0.01, Hole_Height_FromBot=0, delta_t=0.1, Cd=1)
In this model the initial rate of outflow will be consider constant.
Argument
Type
Description
Parameters are same as before.
Example:
Python Code
import opensrane as opr opr.OutFlowModel.TankHoleInitRate(2, Hole_Diameter=0.01, Hole_Height_FromBot=1, delta_t=500, Cd=0.62)
- OutFlowModel.TankHoleDuration(Tag, Hole_Diameter=0.01, Hole_Height_FromBot=0, delta_t=0.1, Cd=1, Duration=100)
In this model the duration of outflow is limited to defined Duration.
Argument
Type
Description
Duration
float
Total duration of outflow
Other parameters are same as before.
Example:
Python Code
import opensrane as opr opr.OutFlowModel.TankHoleDuration(3, Hole_Diameter=0.5, Hole_Height_FromBot=0.5, delta_t=500, Cd=0.62,Duration=3000)
- OutFlowModel.TankHoleFixStep(Tag, Hole_Diameter=0.01, Hole_Height_FromBot=0, delta_t=0.1, Cd=1, StepNumber=30)
In this model the calculations steps are limited to the defined StepNumber.
Argument
Type
Description
StepNumber
int
The number or calculations steps.
Other parameters are same as before.
Example:
Python Code
import opensrane as opr opr.OutFlowModel.TankHoleFixStep(4, Hole_Diameter=0.5, Hole_Height_FromBot=0.5, delta_t=500, Cd=0.62,StepNumber=30)
J. Casal, Evaluation of the Effects and Consequences of Major Accidents in Industrial Plants, vol. 8. 2018.
Code Developed by: Bijan Sayyafzadeh