Beispiel #1
0
    title="\\tau_{xz}=",
    value_unit='\\frac{\\mathrm{N}}{\\mathrm{mm}^2}',
    value=0,
    start=0,
    end=10,
    step=0.5)
Tangential_XZ_slider.on_change('value', TangentialXZ_init)

Plane_Angle_slider = LatexSlider(title="\\alpha=",
                                 value_unit='^{\\circ}',
                                 value=0,
                                 start=-180,
                                 end=180,
                                 step=1)
Plane_Angle_slider.on_change('value', changePlaneAngle)
Plane_Angle_slider.disabled = True

###Create Reset Button:
reset_button = Button(label="Reset", button_type="success")
reset_button.on_click(reset)

###Create Draw Button:
draw_button = Button(label="Draw", button_type="success")
draw_button.on_click(draw)

###Create Show Button:
show_button = Button(label="Show/Hide principal stress + direction",
                     button_type="success",
                     disabled=True)
show_button.on_click(show)
                                   value=lfa/L, start=0, end=1, step=.01, width=423, bar_color = c_green)
slider_location_freq.on_change('value',change_location_freq)

# slider for damping coefficient
slider_damping = LatexSlider(title="\\text{Loss Modulus } \\eta: ", value=damping, start=0.01, end=0.4, step=.01, width=423) 
slider_damping.on_change('value',change_damping)

# slider for excitation frequency ratio
slider_frequency = LatexSlider(title="\\text{Excitation Frequency Ratio } r=\\frac{\\Omega}{\\omega_1}: ", value=r, 
                               start=0.04, end=10, step=0.04, width=215, bar_color = c_blue) 
slider_frequency.on_change('value',change_frequency_ratio)

# button to switch between the adjustment of the input parameters and the adjustment of the excitation frequency ratio
switch_button = Button(label="Frequency Analysis  ⇨", button_type="success", width=200, height=40)
switch_button.on_click(disable_plot_sliders)
slider_frequency.disabled = True


#################################
##        INITIAL STATE        ##
#################################

calculate_deflection(system_select.value)
calculate_amp_and_phase()
calculate_3d_plot_coordinates(system_select.value)
update_3d_plot()


#################################
##       APP DESCRIPTION       ##
#################################