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

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

rp = RhoIspPlot()


stg_obj = ReferenceStage( WtPayload=1600000.0, volCuInRef=75500.0*1728, WtInertRef=300000.0,
                          Name='Saturn V 1st stg')

rp.add_rho_isp_contours(label_frac_pos=0.2)

rp.add_stage_param_contours( stg_obj, set_param='GLOW', param_value=5000000.0+1600000.0,
                             label_frac_posD={'GLOW':0.9, 'CubicFt':.4, 'MassFrac':.8},
                             plot_param_valD={'DeltaV':[ 12000, 13000, 14000, 15000], 
                                              'MassFrac':[0.86,0.88,0.9,0.92,0.94,0.95],
                                              'CubicFt':[50000, 75000, 100000, 125000, 150000, 175000, 200000]},
                             plot_paramL=['DeltaV','CubicFt','MassFrac'], num_ticks=6)
    
rp.savefig('rho_veh_2.png', dpi=120)
rp.show()