Aloha Script :
title
'Simulasi dispersi Kebocoran Gas LPG di PT Mandom
Indonesia'
select
nominmax
contours= 50
PAINTREGIONS
variables
C(threshold=0.0000000001)
P(threshold=0.000000000001)
definitions
A= 0.01
B = -1
epsvisc = 1.e-6*10
muw = 0.01861598
muo = 0.017668201
M = 10 !C^2/muw + (1-C)^2/muo
D = 0.001
! D >= 1 for explosion, D <= 1e-3 for leak
WF = 1
{wind factor, WF = 1 if there's wind and 0
if no wind}
K =6e-11
K2 = 6e-11
krw = C^2/muw
Pin = 1.01e5 !pascal
Pexhaust = 1496 !pascal
Pout = 1496
phi =1
hour = 60*60
day = hour * 24
initial values
C = 0
P = Pin
equations
C: phi*dt(C) - div(K*krw*grad(p)) -
epsvisc*div(grad(C)) = 0
p: div(K*M*grad(p)) = 0
boundaries
region 1
start(0,0)
natural(C) = 0 line to (3,0)
natural(C) = 0 line to (3,0.7)
natural(C) = 0 Natural(p) = 0
line to (4.3,0.7) line to (4.3,1.8)
natural(C) = 0 Natural(p) = 0
line to (0,1.8)
line to close
start (3.3,0.7)
natural(C) = 0 Natural (p) = 0
line to (3.35,0.7) line to (3.35,0.9) line to (3.3,0.9) line
to close
start (3,1.05)
natural(C) = 0 Natural (p) = 0
line to (3.05,1.05) line to (3.05,1.8) line to (3,1.8) line to
close
start (3.3,1.05)
natural(C) = 0 Natural (p) = 0
line to (3.35,1.05) line to (3.35,1.8) line to (3.3,1.8) line
to close
start (3.4, 0.95)
line to (3.41,0.95) line to (3.41,0.96) line to (3.4,0.96)
value (C) = 1 line to (3.4,0.95) line to close
! SUMBER KEBOCORAN LPG
TIME 0 to 308000 by 100
monitors
for cycle = 5
vector(-K*M*grad(p)) norm as "Flow Velocity"
plots
for cycle = 5
contour(min(max(c,0),1)) as "Chemical Dispersion Contour
Profile non painted" range(-0.26,1)
contour(min(max(c,0),1)) as "Chemical Dispersion Contour
Profile Painted" range(-0.26,1) painted nominmax
surface(min(max(c,0),1)) as "Chemical Dispersion Contour
Profile 3D" range(-0.26,1) VIEWPOINT(3, 0.7, 30) !fixed range
(0,10)
histories
end