Professional Documents
Culture Documents
Model: Deposito - Sensores: General
Model: Deposito - Sensores: General
Model: Deposito - Sensores: General
Model: Deposito_Sensores
Name Value
General
Java Package Name erlantz_1
File Name C:\Documents and
Settings\BEEP\Escritorio\ANYLOGIC\Deposito_Sensores\Deposito
_Sensores.alp
Parameter: q
Name Value
General
Type double
Default Value 10
Editor
Editor Control TEXT_BOX
Parameter: b
Name Value
Page 1 of 7
Deposito_Sensores
Name Value
General
Type double
Default Value 0.2
Editor
Editor Control TEXT_BOX
Flow Variable: Dy
Name Value
General
Formula q/a - 1/a*b*sqrt(2*10*y)
Stock Variable: y
Name Value
General
Initial Value 25
Expression Dy
Transition: transition
Name Value
General
Trigger Type condition
Condition y<50
Transition: transition1
Name Value
General
Trigger Type condition
Page 2 of 7
Deposito_Sensores
Name Value
Condition y>100
State: Lleno
Name Value
General
Entry Action q=0;
State: Vacio
Name Value
General
Entry Action q=150*b*sqrt(2*10*y);
Plot Items:
Title Type Dataset / Value Point Style Color Line Width Interpolation
Volumen del dataset Altura NONE slateGray true 1 LINEAR
depósito
Page 3 of 7
Deposito_Sensores
Rectangle: rectangle
Name Value
Advanced
x 460
y 200
Width 80
Height 60
Rotation 180.0
Dynamic
Dynamic: Fill Color blue
Dynamic: Height y
Line: line
Name Value
Advanced
x 380
y 200
dX 80
dY 0
Line: line1
Name Value
Advanced
x 460
y 200
dX 0
dY -150
Line: line2
Name Value
Advanced
x 380
y 200
dX 0
dY -150
Text: text1
Name Value
Advanced
x 570
y 150
General
Alignment LEFT
Font Name SansSerif
Font Size 10
Page 4 of 7
Deposito_Sensores
Name Value
Bold Font Style true
Text ORIFICIO DE SALIDA:
Advanced
x 570
y 150
Slider: slider1
Name Value
General
Orientation HORIZONTAL
Default Value 0
Action b=value;
Advanced
x 570
y 170
Width 100
Height 30
Page 5 of 7
Deposito_Sensores
Text: text
Name Value
Advanced
x 40
y 30
General
Alignment LEFT
Font Name Serif
Font Size 28
Bold Font Style true
Text PRÁCTICA 2 --> DEPÓSITO CON SENSORES
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 En este caso se ha añadido una carta de estados a la simulación.
Gracias a esto, mientras el depósito no
esté llenado hasta un límite fijado, el caudal de entrada aumenta
hasta llegar a ese límite. Una vez llegado,
el caudal de entrada cesa y el depósito comienza a vaciarse. Una
vez que se alcance el límite inferior de
nivel, el caudal de entrada vuelve a activarse.
En un gráfico podemos ver cual es el volumen contenido en el
depósito en tiempo real.
Advanced
x 40
y 63
Button: button
Name Value
Page 6 of 7
Deposito_Sensores
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 190
Width 330
Height 30
Dynamic
Dynamic: Label getState() == IDLE ?
"Run the model and switch to Main view" :
"Switch to Main view"
Page 7 of 7