rk_comparison.core.data package

Submodules

rk_comparison.core.data.comparison_data module

class rk_comparison.core.data.comparison_data.ComparisonData[source]

Bases: object

Class to hold comparison data of numerical methods with analytical solution.

clean_data()[source]

Method to clean all of the lists by calling constructor.

get_compareFRK5()[source]

Method to get the compareFRK5 list.

get_compareFRK6()[source]

Method to get the compareFRK6 list.

get_compareFRK7()[source]

Method to get the compareFRK7 list.

get_compareFRK8()[source]

Method to get the compareFRK8 list.

get_compareRK1()[source]

Method to get the compareRK1 list.

get_compareRK2()[source]

Method to get the compareRK2 list.

get_compareRK3()[source]

Method to get the compareRK3 list.

get_compareRK4()[source]

Method to get the compareRK4 list.

get_compareRK5()[source]

Method to get the compareRK5 list.

get_compareRK6()[source]

Method to get the compareRK6 list.

get_max_values()[source]

Method to get the max_values list.

get_mean_values()[source]

Method to get the mean_values list.

get_min_values()[source]

Method to get the min_values list.

set_compareFRK5(compareFRK5)[source]

Method to set the element of compareFRK5 list.

set_compareFRK6(compareFRK6)[source]

Method to set the element of compareFRK6 list.

set_compareFRK7(compareFRK7)[source]

Method to set the element of compareFRK7 list.

set_compareFRK8(compareFRK8)[source]

Method to set the element of compareFRK8 list.

set_compareRK1(compareRK1)[source]

Method to set the element of compareRK1 list.

set_compareRK2(compareRK2)[source]

Method to set the element of compareRK2 list.

set_compareRK3(compareRK3)[source]

Method to set the element of compareRK3 list.

set_compareRK4(compareRK4)[source]

Method to set the element of compareRK4 list.

set_compareRK5(compareRK5)[source]

Method to set the element of compareRK5 list.

set_compareRK6(compareRK6)[source]

Method to set the element of compareRK6 list.

set_max_values(max_values)[source]

Method to set the element of max_values list.

set_mean_values(mean_values)[source]

Method to set the element of mean_values list.

set_min_values(min_values)[source]

Method to set the element of min_values list.

rk_comparison.core.data.input_data module

class rk_comparison.core.data.input_data.InputData[source]

Bases: object

Class to hold input data from user: beginning and end of time period, delta of the time intervals, number of time intervals, list of booleans signalizing which numerical methods will be used. Every attribute has set and get method.

get_dt()[source]

Gets the time delta.

get_intervals()[source]

Returns the number of time intervals

get_t_max()[source]

Gets the ending of time period.

get_t_min()[source]

Gets the beginning of time period.

get_truth_table()[source]

Gets the list of booleans signalizing which numerical methods will be used.

set_dt(dt)[source]

Sets the time delta.

set_intervals()[source]

Method counts time intervals based on input data.

set_t_max(t_max)[source]

Sets the ending of time period.

set_t_min(t_min)[source]

Sets the beginning of time period.

set_truth_table(truth_table)[source]

Sets the list of booleans signalizing which numerical methods will be used.

rk_comparison.core.data.output_data module

class rk_comparison.core.data.output_data.OutputData[source]

Bases: object

Class to hold output data: results of RK, FRK, analytical solution and time. Every variable has it’s own set and get method. Set methods are clearing the lists and and appending the initial data needed for RK and FRK to start calculations.

get_resultFRK5()[source]

Gets the FRK5 results.

get_resultFRK6()[source]

Gets the FRK6 results.

get_resultFRK7()[source]

Gets the FRK7 results.

get_resultFRK8()[source]

Gets the FRK8 results.

get_resultRK1()[source]

Gets the RK1 results.

get_resultRK2()[source]

Gets the RK2 results.

get_resultRK3()[source]

Gets the RK3 results.

get_resultRK4()[source]

Gets the RK4 results.

get_resultRK5()[source]

Gets the RK5 results.

get_resultRK6()[source]

Gets the RK6 results.

get_result_analytical()[source]

Gets the analytical result.

get_time()[source]

Gets the time scale.

set_resultFRK5(result0)[source]

Sets the start FRK5 results.

set_resultFRK6(result0)[source]

Sets the start FRK6 results.

set_resultFRK7(result0)[source]

Sets the start FRK7 results.

set_resultFRK8(result0)[source]

Sets the start FRK8 results.

set_resultRK1(result0)[source]

Sets the start RK1 results.

set_resultRK2(result0)[source]

Sets the start RK2 results.

set_resultRK3(result0)[source]

Sets the start RK3 results.

set_resultRK4(result0)[source]

Sets the start RK4 results.

set_resultRK5(result0)[source]

Sets the start RK5 results.

set_resultRK6(result0)[source]

Sets the start RK6 results.

set_result_analytical()[source]

Analytical solution doesn’t need initial data, it’s calculated from formula without the usage of numerical methods

set_results(result0, t_min)[source]

Method that calls all the set methods, preparing the program to make calculations. Arguments result0 and t_min are the initial data provided by user.

set_time(t_min)[source]

Sets the start of time scale.

set_time_final(time)[source]

Sets the time attribute.

Module contents