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

TiroParabolico

Model: TiroParabolico
Name Value
General
Java Package Name tiroparabolico
File Name C:\Documents and
Settings\BEEP\Escritorio\ANYLOGIC\TiroParabolico\TiroParabolico
.alp

Active Object Class: Main


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

Parameter: Vo
Name Value
General
Type double
Default Value 100
Editor
Editor Control TEXT_BOX

Parameter: g
Name Value
General
Type double
Default Value 10
Editor
Editor Control TEXT_BOX

Page 1 of 5
TiroParabolico

Event: event
Name Value
General
Trigger Type condition
Condition y<-400

Flow Variable: Dy
Name Value
General
Formula Voy-Vy

Stock Variable: y
Name Value
General
Initial Value -325
Expression Dy

Stock Variable: Vy
Name Value
General
Expression ay

Flow Variable: ay
Name Value
General
Formula g

Auxiliary Variable: Voy


Name Value
General
Formula Vo*sin(alfa)

Auxiliary Variable: Vox


Name Value

Page 2 of 5
TiroParabolico

Name Value
General
Formula Vo*cos(alfa)

Flow Variable: Dx
Name Value
General
Formula Vox

Stock Variable: x
Name Value
General
Initial Value 95
Expression Dx

Oval: oval
Name Value
General
Fill Color red
Advanced
x 95
y 395
Radius X 5
Radius Y 5
Dynamic
Dynamic: x x
Dynamic: y -y

Line: line
Name Value
Advanced
x 90
y 400
dX 700
dY 0

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

Page 3 of 5
TiroParabolico

Name Value
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 100.0
Presentation
CPU Time Balance ratio_1_2
Execution Mode realTimeScaled
Real Time Scale SCALE_1
Window
Title TiroParabolico : Simulation

Text: text
Name Value
Advanced
x 40
y 30
General
Alignment LEFT
Font Name Serif
Font Size 28
Bold Font Style true
Text TIRO PARABÓLICO
Advanced
x 40
y 30

Text: text1
Name Value
Advanced
x 40
y 63
General
Alignment LEFT

Page 4 of 5
TiroParabolico

Name Value
Font Name Serif
Font Size 16
Italic Font Style true
Text La siguiente simulación muestra la evolución de un tiro parabólico.
El ángulo de entrada esta fijado de antemano.
La simulación acaba una vez que la pelota vuelve a alcanzar la
altura y=0.
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 120
Width 330
Height 30
Dynamic
Dynamic: Label getState() == IDLE ?
"Run the model and switch to Main view" :
"Switch to Main view"

Page 5 of 5

You might also like