BlockScience / aztec-gddt

Aztec Granular Design Digital Twin
Apache License 2.0
10 stars 0 forks source link

Clean up time series initialization #314

Open SeanMcOwen opened 2 months ago

SeanMcOwen commented 2 months ago

L1_INTER_SHOCK_AMPLITUDE = 100 # Amplitude of wave L1_INTER_SHOCK_PERIOD = 10 # Period of wave num_points = (TIMESTEPS - final_time) - initial_time t = np.arange(initial_time, initial_time + num_points)

raw_shock_signal = ( L1_INTER_SHOCK_AMPLITUDE np.sin(2 np.pi * t / L1_INTER_SHOCK_PERIOD)

intermit_shock_gas_fee_l1_time_series = np.zeros(TIMESTEPS) intermit_shock_gas_fee_blob_time_series = np.zeros(TIMESTEPS)

intermit_shock_gas_fee_l1_time_series[0:initial_time] = steady_gas_fee_l1_time_series[ 0:initial_time ].copy() intermit_shock_gas_fee_l1_time_series[-final_time:] = steady_gas_fee_l1_time_series[ -final_time: ].copy() intermit_shock_gas_fee_l1_time_series[initial_time : TIMESTEPS - final_time] = ( steady_gas_fee_l1_time_series[initial_time : TIMESTEPS - final_time].copy()