% This script defines workspace parameters for sscfluids_diesel_injection

% Copyright 2019 The MathWorks, Inc.

% Cam Shaft
start_extend = 0; % rad
extend_angle = pi/4; % rad
start_retract = 7*pi/4; % rad
retract_angle = pi/4; % rad
initialization_time = 0.01; % s
cam_phase_angles = [0, -3*pi/2, -pi/2, -pi]; % rad

% Injection Pump
cam_stroke = 0.01; % m
safety_gap = 0.001; % m
plunger_area = 1.14e-4; % m^2
plunger_stroke = cam_stroke + 2*safety_gap; % m
plunger_initial_position = plunger_stroke - safety_gap; % m
plunger_dead_volume = 2.6e-6; % m^3
inlet_orifice_diameter = 0.003; % m
inlet_offset = 0.001; % m
spill_orifice_diameter = 0.0024; % m
delivery_valve_orifice_area = 2.1e-6; % m^2

% Injector
injector_piston_area = 1.4e-4; % m^2
injector_piston_stroke = 0.001; % m
injector_dead_volume = 1.45e-6; % m^3
injector_nozzle_diameter = 4e-4; % m
injector_preload = 0.015; % m

% Lift pump
lift_pump_cam_eccentricity = 0.02; % m
lift_pump_piston_area = 0.0026; % m^2
lift_pump_piston_stroke = 2*(lift_pump_cam_eccentricity + safety_gap); % m
lift_pump_initial_position = 2*lift_pump_cam_eccentricity + safety_gap; % m
lift_pump_dead_volume = 21e-6; % m^3

% Pipelines
high_pressure_pipe_diameter = 0.003; % m
low_pressure_pipe_diameter = 0.005; % m
lift_pump_pipe_diameter = 0.006; % m