File: show_X_mono.py

package info (click to toggle)
rocketcea 1.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 39,944 kB
  • sloc: fortran: 23,152; python: 9,235; pascal: 370; makefile: 168; sh: 9
file content (12 lines) | stat: -rw-r--r-- 418 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
from rocketcea.cea_obj import CEA_Obj

C40 =  CEA_Obj( propName='HYD40')
C100 = CEA_Obj( propName='N2H4')

I40,  C40,  T40 =   C40.get_IvacCstrTc(Pc=200.0, eps=20.0)
I100, C100, T100 = C100.get_IvacCstrTc(Pc=200.0, eps=20.0)

print('       Isp     Cstar     Tc')
print('      (sec)   (ft/sec)  (degR)')
print('40%%    %5.1f   %6.1f   %6.1f'%(I40, C40, T40) )
print('100%%   %5.1f   %6.1f   %6.1f'%(I100, C100, T100) )