Esempio n. 1
0
def gui_main_one_dimensional__wave_equation__task_1(animation_plot,
                                                    input_data):
    input_data_get = input_data.get("coef", "y__x_tzero", "dydt__x_tzero",
                                    "external_influences", "y__xzero_t",
                                    "y__xeql_t")
    coef, y__x_tzero, dydt__x_tzero, external_influences, y__xzero_t, y__xeql_t = input_to_sympy(
        *input_data_get)
    boundary_function__xzero = get_first_boundary_function(y__xzero_t)
    boundary_function__xeql = get_first_boundary_function(y__xeql_t)
    return calculate__one_dimensional__wave_equation__boundary_task(animation_plot, coef, y__x_tzero, dydt__x_tzero, external_influences, \
            boundary_function__xzero, boundary_function__xeql)
Esempio n. 2
0
def gui_main_one_dimensional__heat_equation__task_0(animation_plot,
                                                    input_data):
    coef, y__x_tzero, external_influences = input_data.get(
        "coef", "y__x_tzero", "external_influences")
    coef, y__x_tzero, external_influences = input_to_sympy(
        coef, y__x_tzero, external_influences)
    if external_influences:
        return gui_main_one_dimensional__heat_equation__inhomogeneous(
            animation_plot, coef, y__x_tzero, external_influences)
    else:
        return gui_main_one_dimensional__heat_equation__homogeneous(
            animation_plot, coef, y__x_tzero)
Esempio n. 3
0
def gui_main_one_dimensional__wave_equation__homogeneous(
        animation_plot, coef, y__x_tzero, dydt__x_tzero):
    coef, y__x_tzero, dydt__x_tzero = input_to_sympy(coef, y__x_tzero,
                                                     dydt__x_tzero)
    function = calculate(
        one_dimensional__wave_equation__homogeneous(coef, y__x_tzero,
                                                    dydt__x_tzero))

    animation_plot.clean_result_part()
    for t in animation_plot.get_t():
        animation_plot.y.append(function(animation_plot.get_x(), t))

    return animation_plot
Esempio n. 4
0
def gui_main_one_dimensional__wave_equation__task_3(animation_plot,
                                                    input_data):
    input_data_get = input_data.get("coef", "y__x_tzero", "dydt__x_tzero", "external_influences", \
            "a__xzero", "b__xzero", "third_boundary_function__xzero", \
            "a__xeql", "b__xeql", "third_boundary_function__xeql")

    coef, y__x_tzero, dydt__x_tzero, external_influences, \
            a__xzero, b__xzero, third_boundary_function__xzero, \
            a__xeql, b__xeql, third_boundary_function__xeql = input_to_sympy(*input_data_get)

    boundary_function__xzero = get_third_boundary_function(
        a__xzero, b__xzero, third_boundary_function__xzero)
    boundary_function__xeql = get_third_boundary_function(
        a__xeql, b__xeql, third_boundary_function__xeql)
    return calculate__one_dimensional__wave_equation__boundary_task(animation_plot, coef, y__x_tzero, dydt__x_tzero, external_influences, \
            boundary_function__xzero, boundary_function__xeql)