Model: Deposito - Sensores: General

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

Deposito_Sensores

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

Active Object Class: Main


Name Value
Advanced
Additional Code double a=5;
Auto-create Datasets true
Recurrence 1
Dataset Samples To Keep 100
Make Default View Area false

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

Statechart Entry Point: statechart

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);

Time Plot: plot


Name Value
General
Time Window 100
Vertical Scale FIXED
Chart Vertical Scale: From 0
Chart Vertical Scale: To 100
Analysis Auto Update true
Recurrence 1
Dataset Samples To Keep 100
Advanced
x 30
y 250
Width 300
Height 250
Appearance
Show Legend true
Legend Place SOUTH
Label Format MODEL_TIME_UNITS

Plot Items:
Title Type Dataset / Value Point Style Color Line Width Interpolation
Volumen del dataset Altura NONE slateGray true 1 LINEAR
depósito

Data Set: Altura


Name Value
General
Axis Data Freeze X Axis true
Axis Data Vertical Y Axis y
Dataset Samples To Keep 100
Analysis Auto Update false

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

Simulation Experiment: Simulation


Name Value
General
Active Object Class Main
Random Number Generation Type randomSeed
Advanced
Maximum Available Memory 64
Differention Equations Method EULER
Mixed Equations Method RK45_NEWTON
Algebraic Equations Method MODIFIED_NEWTON
Absolute Accuracy 1.0E-5
Time Accuracy 1.0E-5
Relative Accuracy 1.0E-5
Fixed Time Step 0.0010
Presentation Top Group Persistent true
Model Time
Model Time Units Minute
Stop Option Never
Initial Time 0.0
Final Time 60.0
Presentation
CPU Time Balance ratio_1_2
Execution Mode realTimeScaled
Real Time Scale SCALE_1
Window
Title Erlantz_1 : Simulation

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

You might also like