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

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='DeltaV', param_value=7200.0,
                             plot_paramL=['GLOW'], num_ticks=16)
    
rp.savefig('const_mass_frac1.png', dpi=120)
rp.show()