Escolar Documentos
Profissional Documentos
Cultura Documentos
Fluidos-IMF
Primer trabajo de informática y sistemas
SEMESTRE 2017 -2
Integrantes :
SECCION 2
- Graficar la serie de tiempo de la velocidad y dirección de las corrientes
por cada nivel de profundidad
ola=load('corrientes1.txt');
%convertimos el tiempo
time=time1 + time2+2014;
vel=ola(:,6:2:20);
dir=ola(:,7:2:21);
figure(1)
subplot(4,1,1)
plot(time,vel(:,1))
title('velocidad de ola(m/s)')
xlabel('tiempo')
ylabel('velocidad 1 ')
subplot(4,1,2)
plot(time,vel(:,2))
xlabel('tiempo')
ylabel('velocidad 2 ')
subplot(4,1,3)
plot(time,vel(:,3))
xlabel('tiempo')
ylabel('velocidad 3 ')
subplot(4,1,4)
plot(time,vel(:,4))
xlabel('tiempo')
ylabel('velocidad 4 ')
figure(2)
subplot(4,1,1)
plot(time,vel(:,5))
title('velocidad*ola(m/s)')
xlabel('tiempo')
ylabel('velocidad 5 ')
subplot(4,1,2)
plot(time,vel(:,6))
xlabel('tiempo')
ylabel('velocidad 6 ')
subplot(4,1,3)
plot(time,vel(:,7))
xlabel('tiempo')
ylabel('velocidad 7 ')
subplot(4,1,4)
plot(time,vel(:,8))
xlabel('tiempo')
ylabel('velocidad 8 ')
%graficamos tiempo vs dirección
figure(3)
subplot(4,1,1)
plot(time,dir(:,1))
title('direccion de ola(º)')
xlabel('tiempo')
ylabel('direccion 1 ')
subplot(4,1,2)
plot(time,dir(:,2))
xlabel('tiempo')
ylabel('direccion 2 ')
subplot(4,1,3)
plot(time,dir(:,3))
xlabel('tiempo')
ylabel('direccion 3 ')
subplot(4,1,4)
plot(time,dir(:,4))
xlabel('tiempo')
ylabel('direccion 4 ')
figure(4)
subplot(4,1,1)
plot(time,dir(:,5))
title('direccion de ola(º)')
xlabel('tiempo')
ylabel('direccion 5 ')
subplot(4,1,2)
plot(time,dir(:,6))
xlabel('tiempo')
ylabel('direccion 6 ')
subplot(4,1,3)
plot(time,dir(:,7))
xlabel('tiempo')
ylabel('direccion 7 ')
subplot(4,1,4)
plot(time,dir(:,8))
xlabel('tiempo')
ylabel('direccion 8 ')
vel = ola(:,6:2:20);
dir = ola(:,7:2:21);
figure(1)
boxplot(vel)
max(vel)
min(vel)
mean(vel)
prctile(vel,25)
prctile(vel,75)
title('grafico de caja y
bigotes de velocidades')
xlabel('nº de velocidad')
figure(2)
boxplot(dir)
max(dir)
min(dir)
mean(dir)
prctile(dir,25)
prctile(dir,75)
title('grafico de caja y
bigotes de direcciones')
xlabel('nº de dirección')
Análisis de velocidad en nivel 1
Máximo 0.3390
Mínimo 0
Mediana 0.0735
Máximo 0.4050
Mínimo 1.0000e-03
Mediana 0.0793
Máximo 0.4750
Mínimo 1.0000e-03
Mediana 0.0855
Máximo 0.4600
Mínimo 0
Mediana 0.0913
Percentil 25 0.0420 0.0440 0.0460 0.0480 0.0490 0.0530 0.0570 0.0650
Máximo 0.4420
Mínimo 1.0000e-03
Mediana 0.0972
Máximo 0.4600
Mínimo 0
Mediana 0.1036
Máximo 0..7000
Mínimo 0
Mediana 0.1117
Máximo 0.7450
Mínimo 0.0030
Mediana 0.1267
Percentil 25 0.0420 0.0440 0.0460 0.0480 0.0490 0.0530 0.0570 0.0650
%nivel de profundidad 1
figure(5)
figure(6)
figure(7)
%nivel de profundidad 4
figure(8)
figure(9)
%nivel de profundidad 6
figure(10)
wind_rose(dir(:,6)+180,vel(:,6),'dtype','meteo','n',8,'di',[0.0 0.1 0.2 0.3 0.4 0.5 ],'ci',[10 15 20 30
40 50])
%nivel de profundidad 7
figure(11)
%nivel de profundidad 1
figure(12)
wind_rose(dir(:,8)+180,vel(:,8),'dtype','meteo','n',8,'di',[0.0 0.1 0.2 0.3 0.4 0.5 ],'ci',[10 15 20 30
40 50])
ola=load('corrientes1.txt');
time=time1 + time2+2014;
dir=ola(:,7:2:21);
vel=ola(:,6:2:20);
dir1=dir*(3.14/180);
%descomponemos dir(rad) en senos y cosenos
v=vel.*sin(dir1);
u=vel.*cos(dir1);
%graficamos tiempo vs u
figure(1)
subplot(4,1,1)
plot(time,u(:,1))
xlabel('tiempo(años)')
ylabel('direccion 1 ')
subplot(4,1,2)
plot(time,u(:,2))
xlabel('tiempo(años)')
ylabel('direccion 2 ')
subplot(4,1,3)
plot(time,u(:,3))
xlabel('tiempo(años)')
ylabel('direccion 3 ')
subplot(4,1,4)
plot(time,u(:,4))
xlabel('tiempo(años)')
ylabel('direccion 4 ')
figure(2)
subplot(4,1,1)
plot(time,u(:,5))
xlabel('tiempo(años)')
ylabel('direccion 5 ')
subplot(4,1,2)
plot(time,u(:,6))
xlabel('tiempo(años)')
ylabel('direccion 6 ')
subplot(4,1,3)
plot(time,u(:,7))
xlabel('tiempo(años)')
ylabel('direccion 7 ')
subplot(4,1,4)
plot(time,u(:,8))
xlabel('tiempo(años)')
ylabel('direccion 8 ')
%graficamos tiempo vs v
figure(3)
subplot(4,1,1)
plot(time,v(:,1))
xlabel('tiempo(años)')
ylabel('velocidad 1 ')
subplot(4,1,2)
plot(time,v(:,2))
xlabel('tiempo(años)')
ylabel('velocidad 2 ')
subplot(4,1,3)
plot(time,v(:,3))
xlabel('tiempo(años)')
ylabel('velocidad 3 ')
subplot(4,1,4)
plot(time,v(:,4))
xlabel('tiempo(años)')
ylabel('velocidad 4 ')
figure(4)
subplot(4,1,1)
plot(time,v(:,5))
xlabel('tiempo(años)')
ylabel('velocidad 5 ')
subplot(4,1,2)
plot(time,v(:,6))
xlabel('tiempo(años)')
ylabel('velocidad 6 ')
subplot(4,1,3)
plot(time,v(:,7))
xlabel('tiempo(años)')
ylabel('velocidad 7 ')
subplot(4,1,4)
plot(time,v(:,8))
xlabel('tiempo(años)')
ylabel('velocidad 8 ')
Conclusiones:
- Del grafico de caja y bigotes se puede entender que las velocidades de las olas tienen
mayor dispersión conforme se acercan a la superficie, por lo tanto, los niveles tomados
por la maquina son ascendentes siendo el nivel 1 el fondo marino y el nivel 8 la
superficie del mar.
- Del grafico de rosas se puede entender que las olas tienen dirección predominante al
oeste siendo las de mayor cantidad las de velocidad comprendida entre 0.1-0.2