Guest User

Untitled

a guest
Aug 1st, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.       program felszinlegkor
  2. c     Keszitette: Lazar Dora /ELTE/
  3. c     ldora1989@gmail.com
  4. c     2012.04.25.
  5.       implicit none
  6.       integer i
  7.       integer zr
  8.       real theta1,theta2,theta3
  9.       real thetas1,thetas2,thetas3
  10.       real c1,c2,c3
  11.       real z0,k,rb
  12.       real lamda,gamma,ro,row,cp
  13.       real KS1,KS2,KS3
  14.       real B1,B2,B3
  15.       real K1,K2,K3
  16.       real D1,D2,D3
  17.       real Kef1,Kef2
  18.       real pszi1,pszi2,pszi3
  19.       real pszis1,pszis2,pszis3
  20.       real Q1,Q2,Q3
  21.       real Rn(574),G(574),S(574),Ur(574)
  22.       real d(574),es(574),T(574)
  23.       real ucs(574),ra(574),Ae(574),E0(574)
  24.       integer ev(574),h(574),n1(574),n2(574)
  25.       integer x1(574),o(574),p(574)
  26.       real l(574),x2(574)
  27.       real r(574),e(574),di(574),cs(574),v(574)
  28.       real par(574),belso(574),oszto(574)
  29. c40    format(6i4,i2,f8.1,f6.1,i6,3i5,i7,f6.1)
  30.  
  31.       open(10,file='M0210_BS.928')
  32.       open(25,file='Qk.txt')
  33.       open(30,file='parolgas.txt')
  34.  
  35.       do i=1,574
  36.       read(10,*)ev(i),h(i),n1(i),n2(i),
  37.      + x1(i),o(i),p(i),l(i),x2(i),
  38.      + T(i),r(i),e(i),Ur(i),
  39.      + di(i),S(i),cs(i),v(i)
  40.  
  41.       theta1=0.10
  42.       theta2=0.08
  43.       theta3=0.02
  44.  
  45.       c1=30.
  46.       c2=3.5
  47.       c3=2.3
  48.  
  49.       zr=20.
  50.       z0=0.01
  51.       k=0.378
  52.  
  53.       lamda=2.5*(10.**6.)
  54.       gamma=0.65
  55.       ro=1.2
  56.       cp=1004.
  57.  
  58.       Rn(i)=-122+0.808*S(i)
  59.       G(i)=0.15*Rn(i)
  60.  
  61.       d(i)=(lamda/461.)*(es(i)/(T(i)**2.))
  62.       es(i)=6.11*exp((17.4*T(i))/(T(i)+239.16))
  63.  
  64.       ucs(i)=(k*Ur(i))/(log(zr/z0))
  65.       ra(i)=(0.74*log(zr/z0))/(k*ucs(i))
  66.  
  67.       rb=c1+c2*(thetas1/theta1)**c3
  68.       Ae(i)=Rn(i)-G(i)
  69.       belso(i)=ro*cp*(d(i)/ra(i))
  70.       oszto(i)=d(i)+gamma*(1.+rb/ra(i))
  71.       E0(i)=(d(i)*Ae(i)+belso(i))/oszto(i)
  72.       par(i)=E0(i)*lamda
  73.  
  74.       KS1=176.*(10.**(-6.))
  75.       KS2=7.*(10.**(-6.))
  76.       KS3=7.*(10.**(-6.))
  77.       thetas1=0.395
  78.       thetas2=0.451
  79.       thetas3=0.451
  80.       B1=4.05
  81.       B2=5.39
  82.       B3=5.39
  83.  
  84.       K1=KS1*(theta1/thetas1)**(2.*B1+3.)
  85.       K2=KS2*(theta2/thetas2)**(2.*B2+3.)
  86.       K3=KS3*(theta3/thetas3)**(2.*B3+3.)
  87.       D1=0.1
  88.       D2=0.2
  89.       D3=0.3
  90.       Kef1=(K1*D1+K2*D2)/(D1+D2)
  91.       Kef2=(K2*D2+K3*D3)/(D2+D3)
  92.  
  93.       pszis1=-0.121
  94.       pszis2=-0.478
  95.       pszis3=-0.478
  96.       pszi1=pszis1*((theta1/thetas1)**((-1.)*B1))
  97.       pszi2=pszis2*((theta2/thetas2)**((-1.)*B2))
  98.       pszi3=pszis3*((theta3/thetas3)**((-1.)*B3))
  99.  
  100.       row=1000.
  101.  
  102.       Q1=row*Kef1*(2.*((pszi1-pszi2)/(D1+D2))+1.)
  103.       Q2=row*Kef2*(2.*((pszi2-pszi3)/(D2+D3))+1.)
  104.       Q3=row*KS3*((theta3/thetas3)**(2.*B3+3.))
  105.  
  106.       write(*,*)'Q1: ',Q1,'Q2: ',Q2,'Q3: ',Q3
  107.       write(25,*)Q1,' ',Q2,' ',Q3
  108.       write(30,*)par(i)
  109.       enddo
  110.       close(10)
  111.       close(25)
  112.       close(30)
  113.       stop
Add Comment
Please, Sign In to add comment