###########################
# Physical constants
###########################
R = 8.314   #[J/molK], Gas constant

###########################
# C-curve related constants
###########################
n = 0.75    #[-]
Teq = 500 + 273   #[K], equilibrium temperature of solid solution
T_min_c_curve = 250 #[C], lowest temperature to plot C-curve
A0 = 420    #[J/mol]
Qd = 130e3    #[J/mol]

Tr = 300+273    #[K], reference temperature for generating C-curves
tr = 10     #[s], reference time for generating C-curves
Xc = 0.05   #[-], reference transformation fraction for generating C-curves

###########################
# Welding related constants
###########################
rhoc_weld = 0.0027 #[J/mm^3K]
a_weld = 62      #[mm^2/s]
T0_weld = 20 + 273 #[K], temperature of surroundings
Tsol_weld = 550 + 273 #[K], temperature of complete solution of metal
Tmin_weld = 40 + 273 #[K], end-temperature of transformation

t_min_weld = -3 #[log(s)], start time to display in the T-t plot
t_max_weld = 2 #[log(s)], end time to display in the T-t plot
t_points_weld = 100 #[–], number of points along the time axis in the T-t plot

qvd_slider_step = 0.01
qvd_slider_min = 0.05
qvd_slider_max = 0.21

Xq_q_min = 0.001 #[kJ/mm^2], minimum qvd-value to calculate/plot the Xq-curve for
Xq_q_max = 0.2 #[kJ/mm^2], maximum qvd-value to calculate/plot the Xq-curve for
Xq_q_points = 50 #[-], number of points on the qvd axis of the X-q plot

Xq_y_min = 0 #[mm], minimum distance to plot the X-q curve for
Xq_y_max = 31 #[mm], maximum value to plot the X-q curve for
Xq_y_step = 2.5 #[mm], distance between lines in the X-q plot

weld_scheil_integrand_points = 500 #[-], number of points on the time axis when evaluating the sheil integral


###########################
# Jominy-stick related constants
###########################
Ti_jominy = 550 + 273 #[K], Initial temperature of jominy-stick
T0_jominy = 20 + 273  #[K], Temperature at cold end of jominy-stick
a_jominy = 62         #[mm^2/s]

t_min_jominy = 0 #[log(s)], start time to display in the T-t plot
t_max_jominy = 3 #[log(s)], end time to display in the T-t plot
t_points_jominy = 100 #[–], number of points along the time axis in the T-t plot

Tt_x_min_jominy = 0 #[mm], minimum distance to display in the T-t plot
Tt_x_max_jominy = 100 #[mm], maximum distance to display in the T-t plot
Tt_x_step_jominy = 5 #[mm], step size along the stick in the T-t plot

Xx_x_min = 0.5 #[log(mm)], minimum distance to display in X-x plot
Xx_x_max = 2.7 #[log(mm)], maximum distance to display in X-x plot
Xx_x_points = 100 #[-], number of steps on the x-axis in the X-x plot

jominy_scheil_integrand_points = 1000 #[-], number of points on the time axis of the sheil integrand. Larger values give increased precision

###########################
# Extrusion related constants
###########################
Ti_extrusion = 550 + 275 #[K], initial temperature
T0_extrusion = 20 + 275 #[K], temperature of cooling medium
rhoc_extrusion = 2700000 #[J/m^3K]
w_extrusion = 0.01 #[m]

h_min = 1      #[W/m^2K], start of h-axis
h_max = 1000    #[W/m^2K], end of h-axis
h_steps = 100   # [–], steps on h-axis

t_min_extrusion = -2 #[log(s)], start time to display in the T-t plot
t_max_extrusion = 4 #[log(s)], end time to display in the T-t plot
t_points_extrusion = 100 #[–], number of points along the time axis in the T-t plot