You are on page 1of 5

Deposito_CaudalVariable

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

Active Object Class: Main


Name Value
Advanced
Additional Code double a=5; double b=0.0002;
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 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

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 Stop at specified time
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

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

You might also like