def simulate_dc_current(i_dc, N, dt, beta_c, Gamma, Ic, R):
# Initialize variables
delta = np.zeros(N)
u = np.zeros(N)
eta = np.random.normal(0, 1, N)
# Euler-Maruyama method for SDE
for t in range(1, N):
du = (1 / beta_c) * (-u[t-1] - np.sin(delta[t-1]) + i_dc / Ic) * dt + (1 / beta_c) * np.sqrt(4 * Gamma * dt) * eta[t]
delta[t] = delta[t-1] + u[t-1] * dt
u[t] = u[t-1] + du
# Calculate the average dimensionless voltage
mean_u = np.mean(u)
# Convert to actual voltage
mean_voltage = mean_u * R * Ic