File: show_amb_mode.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 (11 lines) | stat: -rw-r--r-- 394 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
from rocketcea.cea_obj import CEA_Obj

C = CEA_Obj(oxName="LOX", fuelName="H2",  useFastLookup=0)
Pc=500.
MR=6.0
for eps in [2., 5., 7., 10., 20., 50.]:
    
    IspVac = C.get_Isp( Pc=Pc, MR=MR, eps=eps)
    IspAmb, mode = C.estimate_Ambient_Isp(Pc=Pc, MR=MR, eps=eps, Pamb=14.7)
    
    print('Pc=%4i  eps=%3i  IspAmb/IspVac= %6.2f/%6.2f  Mode= %s'%(int(Pc),int(eps), IspAmb, IspVac, mode))