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
all_t_win_vs_m_fixed_error Namespace Reference

Classes

class  ProblemParameters
 
class  HinsbergPointsSetGivenNorm
 

Functions

def CalculateErrors (points_set, pp, samples=10)
 
def CalculateError (t_w)
 
def CalculateApproxTailContribution (points_set, m_index, lower_limit)
 
def ExactErrorTail (points_set, m_index, lower_limit)
 
def K (points_set, m_index, t, pp)
 
def PerformQuadratureOfObjectiveFunctionSecondTerm (points_set, m_index, a, b)
 
def ObjectiveFunction (points_set, m_index, pp)
 
def sign (x)
 
def samesign (a, b)
 
def bisect (func, low, high)
 
def regula_falsi (func, a, b, max_steps=100, tolerance=1e-8)
 
def CalculateTws (m, max_t_w, points_set, ref_error, n_samples=40)
 

Variables

 pp = ProblemParameters()
 
 end_time
 
 initial_time
 
list ref_errors = [1e-1, 5e-2, 1e-2, 5e-3, 1e-3, 5e-4, 1e-4]
 
list max_t_w_t_norms = []
 
list max_t_w_t_norm = [10 ** 3] * 11
 
list max_t_w_abs_norm = [10 ** 3] * 11
 
list max_t_w_hinsberg = [10 ** 3]
 
 t_norm_set = HinsbergPointsSetGivenNorm('t_norm')
 
 abs_norm_set = HinsbergPointsSetGivenNorm('abs_norm')
 
 hinsberg_set = HinsbergPointsSetGivenNorm('hinsberg_norm')
 
 figsize
 
float tw_max = 1.0
 
 color
 
 ms
 
 i_plot
 
 linewidth
 
 label
 
 mew
 
 fontsize
 
string percentage = '%g' % (100 * ref_error)
 
 ax = plt.gca()
 
 axis
 
 pad
 
 labelsize
 
 figure = plt.gcf()
 
string base_t_w = '%.2f' % tw_max
 
string file_name = 'all_tw_for_x_percent_error.pdf'
 
 format
 
 dpi
 

Function Documentation

◆ bisect()

def all_t_win_vs_m_fixed_error.bisect (   func,
  low,
  high 
)

◆ CalculateApproxTailContribution()

def all_t_win_vs_m_fixed_error.CalculateApproxTailContribution (   points_set,
  m_index,
  lower_limit 
)

◆ CalculateError()

def all_t_win_vs_m_fixed_error.CalculateError (   t_w)

◆ CalculateErrors()

def all_t_win_vs_m_fixed_error.CalculateErrors (   points_set,
  pp,
  samples = 10 
)

◆ CalculateTws()

def all_t_win_vs_m_fixed_error.CalculateTws (   m,
  max_t_w,
  points_set,
  ref_error,
  n_samples = 40 
)

◆ ExactErrorTail()

def all_t_win_vs_m_fixed_error.ExactErrorTail (   points_set,
  m_index,
  lower_limit 
)

◆ K()

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

◆ ObjectiveFunction()

def all_t_win_vs_m_fixed_error.ObjectiveFunction (   points_set,
  m_index,
  pp 
)

◆ PerformQuadratureOfObjectiveFunctionSecondTerm()

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

◆ regula_falsi()

def all_t_win_vs_m_fixed_error.regula_falsi (   func,
  a,
  b,
  max_steps = 100,
  tolerance = 1e-8 
)

◆ samesign()

def all_t_win_vs_m_fixed_error.samesign (   a,
  b 
)

◆ sign()

def all_t_win_vs_m_fixed_error.sign (   x)

Variable Documentation

◆ abs_norm_set

all_t_win_vs_m_fixed_error.abs_norm_set = HinsbergPointsSetGivenNorm('abs_norm')

◆ ax

all_t_win_vs_m_fixed_error.ax = plt.gca()

◆ axis

all_t_win_vs_m_fixed_error.axis

◆ base_t_w

string all_t_win_vs_m_fixed_error.base_t_w = '%.2f' % tw_max

◆ color

all_t_win_vs_m_fixed_error.color

◆ dpi

all_t_win_vs_m_fixed_error.dpi

◆ end_time

all_t_win_vs_m_fixed_error.end_time

◆ figsize

all_t_win_vs_m_fixed_error.figsize

◆ figure

all_t_win_vs_m_fixed_error.figure = plt.gcf()

◆ file_name

all_t_win_vs_m_fixed_error.file_name = 'all_tw_for_x_percent_error.pdf'

◆ fontsize

all_t_win_vs_m_fixed_error.fontsize

◆ format

all_t_win_vs_m_fixed_error.format

◆ hinsberg_set

all_t_win_vs_m_fixed_error.hinsberg_set = HinsbergPointsSetGivenNorm('hinsberg_norm')

◆ i_plot

all_t_win_vs_m_fixed_error.i_plot

◆ initial_time

all_t_win_vs_m_fixed_error.initial_time

◆ label

all_t_win_vs_m_fixed_error.label

◆ labelsize

all_t_win_vs_m_fixed_error.labelsize

◆ linewidth

all_t_win_vs_m_fixed_error.linewidth

◆ max_t_w_abs_norm

list all_t_win_vs_m_fixed_error.max_t_w_abs_norm = [10 ** 3] * 11

◆ max_t_w_hinsberg

list all_t_win_vs_m_fixed_error.max_t_w_hinsberg = [10 ** 3]

◆ max_t_w_t_norm

list all_t_win_vs_m_fixed_error.max_t_w_t_norm = [10 ** 3] * 11

◆ max_t_w_t_norms

list all_t_win_vs_m_fixed_error.max_t_w_t_norms = []

◆ mew

all_t_win_vs_m_fixed_error.mew

◆ ms

all_t_win_vs_m_fixed_error.ms

◆ pad

all_t_win_vs_m_fixed_error.pad

◆ percentage

string all_t_win_vs_m_fixed_error.percentage = '%g' % (100 * ref_error)

◆ pp

all_t_win_vs_m_fixed_error.pp = ProblemParameters()

◆ ref_errors

list all_t_win_vs_m_fixed_error.ref_errors = [1e-1, 5e-2, 1e-2, 5e-3, 1e-3, 5e-4, 1e-4]

◆ t_norm_set

all_t_win_vs_m_fixed_error.t_norm_set = HinsbergPointsSetGivenNorm('t_norm')

◆ tw_max

float all_t_win_vs_m_fixed_error.tw_max = 1.0