KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
Classes | Functions | Variables
normed_exact_hinsberg_test Namespace Reference

Classes

class  ProblemParameters
 
class  HinsbergPointsSetGivenNorm
 

Functions

def bisection (f, a, b, tol)
 
def CalculateErrors (points_set, pp)
 
def ExactErrorTail (points_set, m_index, lower_limit)
 
def K (points_set, m_index, t, pp)
 
def GetMaxTime (max_a, min_b, m, pp)
 
def PerformQuadratureOfObjectiveFunctionSecondTerm (points_set, m_index, a, b)
 
def ObjectiveFunction (points_set, m_index, pp)
 
def Average (vector_container, current_values, k_calc, pp)
 

Variables

 pp = ProblemParameters()
 
 n_samples
 
 t_w_min
 
 n_doublings
 
 error_norm_type
 
 initial_number_of_periods
 
list phases = [i / pp.n_samples * 2 * math.pi for i in range(pp.n_samples)]
 
list t_ws = [pp.t_w_min * 10 ** k for k in range(pp.n_doublings)]
 
list exponential_numbers_t_norm = [0]
 
list exponential_numbers_abs_norm = [0]
 
list exponential_numbers_hinsberg_norm = [0]
 
list norm_of_errors_t_norm = [[]] * len(t_ws)
 
list norm_of_errors_abs_norm = [[]] * len(t_ws)
 
list norm_of_errors_hinsberg_norm = [[]] * len(t_ws)
 
list norm_of_bounds_t_norm = [[]] * len(t_ws)
 
list norm_of_bounds_abs_norm = [[]] * len(t_ws)
 
list norm_of_bounds_hinsberg_norm = [[]] * len(t_ws)
 
 rate_of_change
 
int k_sample = 0
 
 end_time
 
 initial_time
 
int k_calc = 1
 
 k_max = len(t_ws)
 
 t_w
 
 end_time_minus_tw
 
 t_norm_set = HinsbergPointsSetGivenNorm('t_norm')
 
 abs_norm_set = HinsbergPointsSetGivenNorm('abs_norm')
 
 hinsberg_set = HinsbergPointsSetGivenNorm('hinsberg_norm')
 
 exponential_indices
 
 exponential_numbers
 
 size_factor = k_max
 
tuple line_width = (size_factor * k_calc / k_max) ** 1.2
 
int small_marker_size = 4 + 2 * (size_factor * k_calc / k_max) ** 1.2
 
int big_marker_size = 4 + 3 * (size_factor * k_calc / k_max) ** 1.2
 
float maker_width = 0.75 * (size_factor * k_calc / k_max) ** 1.2
 
 markersize
 
 linewidth
 
 color
 
 marker
 
 label
 
 mew
 
 linestyle
 
 fontsize
 
 labelpad
 
 axis
 
 which
 
 labelsize
 
 loc
 
 prop
 
 frameon
 
 ax = plt.gca()
 
 pad
 
 format
 
 dpi
 

Function Documentation

◆ Average()

def normed_exact_hinsberg_test.Average (   vector_container,
  current_values,
  k_calc,
  pp 
)

◆ bisection()

def normed_exact_hinsberg_test.bisection (   f,
  a,
  b,
  tol 
)

◆ CalculateErrors()

def normed_exact_hinsberg_test.CalculateErrors (   points_set,
  pp 
)

◆ ExactErrorTail()

def normed_exact_hinsberg_test.ExactErrorTail (   points_set,
  m_index,
  lower_limit 
)

◆ GetMaxTime()

def normed_exact_hinsberg_test.GetMaxTime (   max_a,
  min_b,
  m,
  pp 
)

◆ K()

def normed_exact_hinsberg_test.K (   points_set,
  m_index,
  t,
  pp 
)

◆ ObjectiveFunction()

def normed_exact_hinsberg_test.ObjectiveFunction (   points_set,
  m_index,
  pp 
)

◆ PerformQuadratureOfObjectiveFunctionSecondTerm()

def normed_exact_hinsberg_test.PerformQuadratureOfObjectiveFunctionSecondTerm (   points_set,
  m_index,
  a,
  b 
)

Variable Documentation

◆ abs_norm_set

normed_exact_hinsberg_test.abs_norm_set = HinsbergPointsSetGivenNorm('abs_norm')

◆ ax

normed_exact_hinsberg_test.ax = plt.gca()

◆ axis

normed_exact_hinsberg_test.axis

◆ big_marker_size

normed_exact_hinsberg_test.big_marker_size = 4 + 3 * (size_factor * k_calc / k_max) ** 1.2

◆ color

normed_exact_hinsberg_test.color

◆ dpi

normed_exact_hinsberg_test.dpi

◆ end_time

normed_exact_hinsberg_test.end_time

◆ end_time_minus_tw

normed_exact_hinsberg_test.end_time_minus_tw

◆ error_norm_type

normed_exact_hinsberg_test.error_norm_type

◆ exponential_indices

normed_exact_hinsberg_test.exponential_indices

◆ exponential_numbers

normed_exact_hinsberg_test.exponential_numbers

◆ exponential_numbers_abs_norm

normed_exact_hinsberg_test.exponential_numbers_abs_norm = [0]

◆ exponential_numbers_hinsberg_norm

normed_exact_hinsberg_test.exponential_numbers_hinsberg_norm = [0]

◆ exponential_numbers_t_norm

normed_exact_hinsberg_test.exponential_numbers_t_norm = [0]

◆ fontsize

normed_exact_hinsberg_test.fontsize

◆ format

normed_exact_hinsberg_test.format

◆ frameon

normed_exact_hinsberg_test.frameon

◆ hinsberg_set

normed_exact_hinsberg_test.hinsberg_set = HinsbergPointsSetGivenNorm('hinsberg_norm')

◆ initial_number_of_periods

normed_exact_hinsberg_test.initial_number_of_periods

◆ initial_time

normed_exact_hinsberg_test.initial_time

◆ k_calc

int normed_exact_hinsberg_test.k_calc = 1

◆ k_max

normed_exact_hinsberg_test.k_max = len(t_ws)

◆ k_sample

int normed_exact_hinsberg_test.k_sample = 0

◆ label

normed_exact_hinsberg_test.label

◆ labelpad

normed_exact_hinsberg_test.labelpad

◆ labelsize

normed_exact_hinsberg_test.labelsize

◆ line_width

normed_exact_hinsberg_test.line_width = (size_factor * k_calc / k_max) ** 1.2

◆ linestyle

normed_exact_hinsberg_test.linestyle

◆ linewidth

normed_exact_hinsberg_test.linewidth

◆ loc

normed_exact_hinsberg_test.loc

◆ maker_width

normed_exact_hinsberg_test.maker_width = 0.75 * (size_factor * k_calc / k_max) ** 1.2

◆ marker

normed_exact_hinsberg_test.marker

◆ markersize

normed_exact_hinsberg_test.markersize

◆ mew

normed_exact_hinsberg_test.mew

◆ n_doublings

normed_exact_hinsberg_test.n_doublings

◆ n_samples

normed_exact_hinsberg_test.n_samples

◆ norm_of_bounds_abs_norm

list normed_exact_hinsberg_test.norm_of_bounds_abs_norm = [[]] * len(t_ws)

◆ norm_of_bounds_hinsberg_norm

list normed_exact_hinsberg_test.norm_of_bounds_hinsberg_norm = [[]] * len(t_ws)

◆ norm_of_bounds_t_norm

list normed_exact_hinsberg_test.norm_of_bounds_t_norm = [[]] * len(t_ws)

◆ norm_of_errors_abs_norm

list normed_exact_hinsberg_test.norm_of_errors_abs_norm = [[]] * len(t_ws)

◆ norm_of_errors_hinsberg_norm

list normed_exact_hinsberg_test.norm_of_errors_hinsberg_norm = [[]] * len(t_ws)

◆ norm_of_errors_t_norm

list normed_exact_hinsberg_test.norm_of_errors_t_norm = [[]] * len(t_ws)

◆ pad

normed_exact_hinsberg_test.pad

◆ phases

list normed_exact_hinsberg_test.phases = [i / pp.n_samples * 2 * math.pi for i in range(pp.n_samples)]

◆ pp

normed_exact_hinsberg_test.pp = ProblemParameters()

◆ prop

normed_exact_hinsberg_test.prop

◆ rate_of_change

normed_exact_hinsberg_test.rate_of_change

◆ size_factor

normed_exact_hinsberg_test.size_factor = k_max

◆ small_marker_size

normed_exact_hinsberg_test.small_marker_size = 4 + 2 * (size_factor * k_calc / k_max) ** 1.2

◆ t_norm_set

normed_exact_hinsberg_test.t_norm_set = HinsbergPointsSetGivenNorm('t_norm')

◆ t_w

normed_exact_hinsberg_test.t_w

◆ t_w_min

normed_exact_hinsberg_test.t_w_min

◆ t_ws

list normed_exact_hinsberg_test.t_ws = [pp.t_w_min * 10 ** k for k in range(pp.n_doublings)]

◆ which

normed_exact_hinsberg_test.which