File: const_mass_frac2.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 (17 lines) | stat: -rw-r--r-- 600 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

from rocketcea.biprop_utils.rho_isp_plot_obj import RhoIspPlot
from rocketcea.biprop_utils.veh_stage_obj import ConstMassFracStage

rp = RhoIspPlot(bipropL=[('LOX','LH2'),('N2O4','MMH')], nsteps_sg=90, nsteps_isp=90)

stg_obj = ConstMassFracStage( mass_frac=0.8, WtPayload=1000.0 )

rp.add_rho_isp_contours()

rp.add_stage_param_contours( stg_obj, set_param='GLOW', param_value=2000.0,
                             plot_paramL=['DeltaV'],
                             plot_param_valD={'DeltaV':[4500., 5000., 5500., 6000., 6500., 7000.]})
    
rp.savefig('const_mass_frac2.png', dpi=120)
rp.show()