from rocketcea.biprop_utils.veh_stage_obj import ReferenceStage rp = RhoIspPlot(bipropL=[('LOX', 'LH2'), ('LOX', 'RP1'), ('LOX', 'CH4')], Pc=735., eps=27.5) stg_obj = ReferenceStage(WtPayload=260000.0, volCuInRef=11180 * 1728, WtInertRef=29300.0, Name='Saturn V 3rd stg') rp.add_rho_isp_contours(label_frac_pos=0.2) rp.add_stage_param_contours(stg_obj, set_param='GLOW', param_value=524300.0, label_frac_posD={ 'CubicFt': .4, 'DeltaV': .5 }, plot_param_valD={ 'CubicFt': [4000, 6000, 8000, 10000, 12000], 'DeltaV': [7000, 7500, 8000, 8500] }, plot_paramL=['DeltaV', 'CubicFt'], num_ticks=6) png_name = __file__[:-2] + 'png' rp.savefig(png_name, dpi=120) rp.show()
rp = RhoIspPlot(bipropL=[('LOX', 'LH2'), ('LOX', 'RP1')], Pc=1000., eps=16) 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) png_name = __file__[:-2] + 'png' rp.savefig(png_name, dpi=120) rp.show()
legend_loc='upper right', eps=84, Pc=475, show_mr_on_plot=True, show_frozen_isp_on_plot=True) stg_obj = ReferenceStage(WtPayload=20000.0, volCuInRef=2185 * 1728, WtInertRef=5428.0, Name='Centaur Upper Stg') #rp.add_rho_isp_contours(label_frac_pos=0.2) rp.add_stage_param_contours( stg_obj, set_param='VolPropellant', param_value=2185 * 1728, label_frac_posD={ 'GLOW': 0.4, 'DeltaV': .4 }, plot_param_valD={ 'DeltaV': [10000, 11000, 12000, 13000, 14000, 15000, 16000, 17000] }, plot_paramL=['GLOW', 'DeltaV'], num_ticks=6) png_name = __file__[:-2] + 'png' rp.savefig(png_name, dpi=120) rp.show()
rp = RhoIspPlot(bipropL=[('LOX', 'LH2'), ('LOX', 'RP1')], Pc=735., eps=27.5) stg_obj = ReferenceStage(WtPayload=260000.0, volCuInRef=11180 * 1728, WtInertRef=29300.0, Name='Saturn V 3rd stg') rp.add_rho_isp_contours(label_frac_pos=0.2) rp.add_stage_param_contours(stg_obj, set_param='VolPropellant', param_value=11180 * 1728, label_frac_posD={ 'GLOW': 0.2, 'CubicFt': .4, 'DeltaV': .5 }, plot_param_valD={ 'DeltaV': [5000, 10000, 15000, 20000], 'MassFrac': [0.86, 0.88, 0.9, 0.92, 0.94, 0.95, .96, .97], 'GLOW': [500000, 600000, 800000, 1000000, 1200000] }, plot_paramL=['DeltaV', 'GLOW'], num_ticks=6) png_name = __file__[:-2] + 'png' rp.savefig(png_name, dpi=120) rp.show()
from rocketcea.biprop_utils.veh_stage_obj import ReferenceStage rp = RhoIspPlot(nsteps_sg=100, nsteps_isp=100) stg_obj = ReferenceStage(WtPayload=10000.0, volCuInRef=180 * 1728, WtInertRef=1121.0, Name='Delta Upper stg') rp.add_rho_isp_contours(label_frac_pos=0.2) rp.add_stage_param_contours(stg_obj, set_param='DeltaV', param_value=8000, label_frac_posD={ 'GLOW': 0.45, 'CubicFt': .4, 'MassFrac': .1 }, plot_param_valD={ 'GLOW': [20000, 22000, 24000, 26000], 'MassFrac': [0.88, .9, .92, .94, .95, .96], 'CubicFt': [100, 200, 300, 400] }, plot_paramL=['CubicFt', 'GLOW', 'MassFrac'], num_ticks=10) png_name = __file__[:-2] + 'png' rp.savefig(png_name, dpi=120) rp.show()
from rocketcea.biprop_utils.rho_isp_plot_obj import RhoIspPlot from rocketcea.biprop_utils.veh_stage_obj import ReferenceStage #rp = RhoIspPlot(bipropL=[('LOX','LH2'),('N2O4','MMH')], nsteps_sg=119, nsteps_isp=119) rp = RhoIspPlot() stg_obj = ReferenceStage(WtPayload=10000.0) rp.add_rho_isp_contours(label_frac_pos=0.2) rp.add_stage_param_contours(stg_obj, set_param='DeltaV', param_value=5000.0, plot_param_valD={ 'GLOW': [20000, 19000, 18000, 17000, 16000], 'MassFrac': [.65, .7, .75, .8, .85], 'CubicFt': [75, 100, 200, 300, 400] }, label_frac_posD={ 'GLOW': 0.9, 'CubicFt': .4 }, plot_paramL=['GLOW', 'CubicFt', 'MassFrac'], num_ticks=6) rp.savefig('rho_veh_1.png', dpi=120) rp.show()
rp = RhoIspPlot(nsteps_sg=100, nsteps_isp=100) stg_obj = ReferenceStage(WtPayload=10000.0, volCuInRef=180 * 1728, WtInertRef=1121.0, Name='Delta Upper Stg') rp.add_rho_isp_contours(label_frac_pos=0.2) rp.add_stage_param_contours( stg_obj, set_param='VolPropellant', param_value=180 * 1728, label_frac_posD={ 'GLOW': 0.45, 'DeltaV': .4, 'MassFrac': .1 }, plot_param_valD={ 'GLOW': [14000, 16000, 18000, 20000, 22000, 24000, 26000, 280000], 'MassFrac': [0.86, 0.88, .9, .92], 'DeltaV': [4000, 5000, 6000, 7000, 8000, 9000] }, plot_paramL=['DeltaV', 'GLOW', 'MassFrac'], num_ticks=10) png_name = __file__[:-2] + 'png' rp.savefig(png_name, dpi=120) rp.show()
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()
from rocketcea.biprop_utils.veh_stage_obj import ReferenceStage stg_obj = ReferenceStage(volCuInRef=441.0, WtInertRef=20.0, WtPayload=30.0, Name='N2H4 DACS') rp = RhoIspPlot(bipropL=[('N2O4', 'MMH'), ('CLF5', 'N2H4')], monopropL=['HYD40', 'HAN315', 'HAN269']) rp.add_rho_isp_contours(label_frac_pos=0.2) rp.add_stage_param_contours( stg_obj, set_param='GLOW', param_value=64.0, label_frac_posD={ 'GLOW': 0.9, 'VolPropellant': .4 }, plot_param_valD={ 'DeltaV': [1900, 2100, 2300, 2500, 2700, 2900, 3100, 3300], 'MassFrac': [.44, .46, .48, .5, .52], 'VolPropellant': [350, 375, 400, 425, 450] }, plot_paramL=['DeltaV', 'VolPropellant'], num_ticks=6) rp.savefig('divert_veh.png', dpi=120) rp.show()
from rocketcea.biprop_utils.veh_stage_obj import ReferenceStage rp = RhoIspPlot(bipropL=[('LOX', 'LH2'), ('LOX', 'RP1')], Pc=1000., eps=16) 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='DeltaV', param_value=12000, label_frac_posD={ 'GLOW': 0.9, 'CubicFt': .4, 'MassFrac': .8 }, plot_param_valD={ 'GLOW': [6e6, 5.5e6, 5e6, 4.5e6], 'CubicFt': [60000, 70000, 90000, 110000, 13000] }, plot_paramL=['GLOW', 'CubicFt'], num_ticks=6) png_name = __file__[:-2] + 'png' rp.savefig(png_name, dpi=120) rp.show()
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()