Você está na página 1de 18

Ingeniería Mecánica de

Fluidos-IMF
Primer trabajo de informática y sistemas

SEMESTRE 2017 -2

Integrantes :

Encalada Rojas Luis Keny


15130145

Elioenei Carlos Yauri Salas


15130203

SECCION 2
- Graficar la serie de tiempo de la velocidad y dirección de las corrientes
por cada nivel de profundidad

%cargamos la carpeta de datos

ola=load('corrientes1.txt');

%convertimos el tiempo

time1= ola(:,1)/(30*12) + ola(:,2)/12;

time2= ola(:,4)/(24*30*12) + ola(:,5)/(24*60*30*12);

time=time1 + time2+2014;

%declaramos las matrices vel y dir

vel=ola(:,6:2:20);

dir=ola(:,7:2:21);

%graficamos tiempo vs velocidad

%la velocidad 1 corresponde al fondo marino y la 8 a la superficie

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

%la dirección 1corresponde al l fondo marino y la 8 a la superficie

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

- Realizar un análisis estadístico de la información por cada nivel de


profundidad.
ola=load('corrientes1.txt');

%creamos variables para el tiempo

time1= ola(:,1)/(30*12) + ola(:,2)/12;

time2= ola(:,4)/(24*30*12) + ola(:,5)/(24*60*30*12);


time=time1 + time2;

%creamos la matriz de vlocidades y direcciones

vel = ola(:,6:2:20);

dir = ola(:,7:2:21);

%ploteamos el grafico de caja y bigotes de velocidad

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

%grafico de caja y bigotes de direccion

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

Percentil 25 0.0420 0.0440 0.0460 0.0480 0.0490 0.0530 0.0570 0.0650

Percentil 75 0.0970 0.1040 0.1120 0.1210 0.1290 0.1400 0.1490 0.1740

Análisis de velocidad en nivel 2

Máximo 0.4050

Mínimo 1.0000e-03

Mediana 0.0793

Percentil 25 0.0420 0.0440 0.0460 0.0480 0.0490 0.0530 0.0570 0.0650

Percentile75 0.0970 0.1040 0.1120 0.1210 0.1290 0.1400 0.1490 0.1740

Análisis de velocidad en nivel 3

Máximo 0.4750

Mínimo 1.0000e-03

Mediana 0.0855

Percentil 25 0.0420 0.0440 0.0460 0.0480 0.0490 0.0530 0.0570 0.0650

Percentile75 0.0970 0.1040 0.1120 0.1210 0.1290 0.1400 0.1490 0.1740

Análisis de velocidad en nivel 4

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

Percentile75 0.0970 0.1040 0.1120 0.1210 0.1290 0.1400 0.1490 0.1740

Análisis de velocidad en nivel 5

Máximo 0.4420

Mínimo 1.0000e-03

Mediana 0.0972

Percentil 25 0.0420 0.0440 0.0460 0.0480 0.0490 0.0530 0.0570 0.0650

Percentile75 0.0970 0.1040 0.1120 0.1210 0.1290 0.1400 0.1490 0.1740

Análisis de velocidad en nivel 6

Máximo 0.4600

Mínimo 0

Mediana 0.1036

Percentil 25 0.0420 0.0440 0.0460 0.0480 0.0490 0.0530 0.0570 0.0650

Percentile75 0.0970 0.1040 0.1120 0.1210 0.1290 0.1400 0.1490 0.1740

Análisis de velocidad en nivel 7

Máximo 0..7000

Mínimo 0

Mediana 0.1117

Percentil 25 0.0420 0.0440 0.0460 0.0480 0.0490 0.0530 0.0570 0.0650

Percentile75 0.0970 0.1040 0.1120 0.1210 0.1290 0.1400 0.1490 0.1740

Análisis de velocidad en nivel 8

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

Percentil 75 0.0970 0.1040 0.1120 0.1210 0.1290 0.1400 0.1490 0.1740

- Graficar las rosas de dirección de la velocidad de la corriente por


profundidad.
%graficamos las rosas de dirección

%nivel de profundidad 1

figure(5)

wind_rose(dir(:,1)+180,vel(:,1),'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 %nivel de profundidad 2

figure(6)

wind_rose(dir(:,2)+180,vel(:,2),'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 3

figure(7)

wind_rose(dir(:,3)+180,vel(:,3),'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 4

figure(8)

wind_rose(dir(:,4)+180,vel(:,4),'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 5

figure(9)

wind_rose(dir(:,5)+180,vel(:,5),'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 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)

wind_rose(dir(:,7)+180,vel(:,7),'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 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])

- Realizar la descomposición U y V de las velocidades. Así mismo, realizar


gráficos de tiempo vs U, y de tiempo vs V.

%1 declaramos las variables a usar

ola=load('corrientes1.txt');

time1= ola(:,1)/(30*12) + ola(:,2)/12;

time2= ola(:,4)/(24*30*12) + ola(:,5)/(24*60*30*12);

time=time1 + time2+2014;

%1.1declaramos las matrices de dir y velocidad

dir=ola(:,7:2:21);

vel=ola(:,6:2:20);

%transformamos la dirección a radianes

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

title('grafico de direccion u ')

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

title('grafico de direccion u ')

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

title('grafico de velocidad v ')

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

title('grafico de velocidad v ')

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

Você também pode gostar