Algoritmo: 'Dias Que Quiere Que Este El Calor'

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

3.

ALGORITMO

1. INICIO
2. Ingresar F (P, V, T, R, a, b)
3. Leer Vo, to
4. Ingresar Q, T, q, Vcil, P, T, a, b
5. Error = 1
6. Error >tol
NO; df= (f (P, Vo+10^-10, T, P, a, b)-f(P, Vo, T, R, a, b))/10^-10
V1 = Vo - f (P, Vo, T, R, a, b)/df
7. Hacer Error = V1 – Vo, Vo = V1
SI;Qt=Q*t
8. Hacer n= Qt/q, Vt=Vo*n
#cil = Vt/Vcil
9. Imprimir Vo, #cil
10. FIN
PROGRAMA EN MATLAB
x=input('dias que quiere que este el calor')
calor =25200
t=x*24
metano=97.2
n=t*calor/metano
P=204
Vc=25200
T=(21+273)
R=0.082
H=n/P
V=R*T*H

cilindro=V/Vc
clc
disp('para')
dias=x
disp('se requiere de esta cantidad de cilindros')
cilindros=cilindo

DIAGRAMA DE FLUJO
INICIO

f (P; V; T; R; a; b)

Vo, To

Q,t,q,Vol,P,T,a,
Q, t,……………….
b

V=f(R,t,R)

Vo=Vi

Error=l Vi- Vo l

Vi=Vo-f (P; V; T; R; a; b)/ df

Df= f(Pvo+10^ -10,T,R,a,b)-f (P; V; T; R; a; b)/ 10^ -10

error > tol

QT = Q*T

n= QT/q

Vt=Vo

Nºcil =Vr / Vcil

Vo, Nºcil

FIN

You might also like