Professional Documents
Culture Documents
Model: Deposito_CaudalVariable
Name Value
General
Java Package Name erlantz_1
File Name C:\Documents and
Settings\BEEP\Escritorio\ANYLOGIC\Erlantz_3\Deposito_CaudalV
ariable.alp
Parameter: q
Name Value
General
Type double
Default Value 22
Editor
Editor Control TEXT_BOX
Flow Variable: Dy
Name Value
General
Formula q/a - sqrt(2*10*y/(a*a-b*b))
Page 1 of 5
Deposito_CaudalVariable
Stock Variable: y
Name Value
General
Initial Value 25
Expression Dy
Rectangle: rectangle
Name Value
Advanced
x 620
y 200
Width 80
Height 60
Rotation 180.0
Dynamic
Dynamic: Fill Color blue
Dynamic: Height y
Line: line
Name Value
Advanced
x 540
y 200
dX 80
dY 0
Line: line1
Name Value
Advanced
x 620
y 200
dX 0
dY -150
Line: line2
Name Value
Advanced
x 540
y 200
dX 0
dY -150
Slider: slider
Name Value
Page 2 of 5
Deposito_CaudalVariable
Name Value
General
Orientation HORIZONTAL
Default Value 0
Action q=value;
Advanced
x 600
y 260
Width 100
Height 30
Text: text
Name Value
Page 3 of 5
Deposito_CaudalVariable
Name Value
Advanced
x 40
y 30
General
Alignment LEFT
Font Name Serif
Font Size 28
Bold Font Style true
Text DEPÓSITO CON AGUJERO (CAUDAL VARIABLE)
Advanced
x 40
y 30
Text: text1
Name Value
Advanced
x 40
y 63
General
Alignment LEFT
Font Name Serif
Font Size 16
Italic Font Style true
Text Similar al caso anterior. Sin embargo, en esta ocasión podemos
controlar (mediante un slider) el caudal de
entrada al depósito. Si el caudan de entrada es superior al líquido
que se escapa por el agujero, el depósito
se irá llenando. En caso contrario, irá vaciándose.
Advanced
x 40
y 63
Button: button
Name Value
General
Label Text Run the model and switch to Main view
Action if ( getState() == IDLE )
run();
getEngine().getPresentation().setPresentable(
getEngine().getRoot() );
Advanced
Font Name Dialog
Font Size 11
x 40
y 140
Width 330
Height 30
Dynamic
Dynamic: Label getState() == IDLE ?
"Run the model and switch to Main view" :
Page 4 of 5
Deposito_CaudalVariable
Name Value
"Switch to Main view"
Page 5 of 5