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
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, 1e-2, 1e-3]
 
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
 
list tw_max = max_t_w_abs_norm[0]
 
 color
 
 ms
 
 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 = 'non_dimensional_tw_for_x_percent_error.pdf'
 
 lgnd = plt.legend(loc = 'center left', prop={'size':22},frameon=False, bbox_to_anchor=(1.1, 0.5, 0.5, 0.5))
 
 format
 
 dpi
 

Function Documentation

◆ bisect()

def t_win_vs_m_fixed_error.bisect (   func,
  low,
  high 
)

◆ CalculateApproxTailContribution()

def t_win_vs_m_fixed_error.CalculateApproxTailContribution (   points_set,
  m_index,
  lower_limit 
)

◆ CalculateError()

def t_win_vs_m_fixed_error.CalculateError (   t_w)

◆ CalculateErrors()

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

◆ CalculateTws()

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

◆ ExactErrorTail()

def t_win_vs_m_fixed_error.ExactErrorTail (   points_set,
  m_index,
  lower_limit 
)

◆ K()

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

◆ ObjectiveFunction()

def t_win_vs_m_fixed_error.ObjectiveFunction (   points_set,
  m_index,
  pp 
)

◆ PerformQuadratureOfObjectiveFunctionSecondTerm()

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

◆ regula_falsi()

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

◆ samesign()

def t_win_vs_m_fixed_error.samesign (   a,
  b 
)

◆ sign()

def t_win_vs_m_fixed_error.sign (   x)

Variable Documentation

◆ abs_norm_set

t_win_vs_m_fixed_error.abs_norm_set = HinsbergPointsSetGivenNorm('abs_norm')

◆ ax

t_win_vs_m_fixed_error.ax = plt.gca()

◆ axis

t_win_vs_m_fixed_error.axis

◆ base_t_w

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

◆ color

t_win_vs_m_fixed_error.color

◆ dpi

t_win_vs_m_fixed_error.dpi

◆ end_time

t_win_vs_m_fixed_error.end_time

◆ figsize

t_win_vs_m_fixed_error.figsize

◆ figure

t_win_vs_m_fixed_error.figure = plt.gcf()

◆ file_name

t_win_vs_m_fixed_error.file_name = 'non_dimensional_tw_for_x_percent_error.pdf'

◆ fontsize

t_win_vs_m_fixed_error.fontsize

◆ format

t_win_vs_m_fixed_error.format

◆ hinsberg_set

t_win_vs_m_fixed_error.hinsberg_set = HinsbergPointsSetGivenNorm('hinsberg_norm')

◆ initial_time

t_win_vs_m_fixed_error.initial_time

◆ label

t_win_vs_m_fixed_error.label

◆ labelsize

t_win_vs_m_fixed_error.labelsize

◆ lgnd

t_win_vs_m_fixed_error.lgnd = plt.legend(loc = 'center left', prop={'size':22},frameon=False, bbox_to_anchor=(1.1, 0.5, 0.5, 0.5))

◆ linewidth

t_win_vs_m_fixed_error.linewidth

◆ max_t_w_abs_norm

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

◆ max_t_w_hinsberg

list t_win_vs_m_fixed_error.max_t_w_hinsberg = [10 ** 3]

◆ max_t_w_t_norm

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

◆ max_t_w_t_norms

list t_win_vs_m_fixed_error.max_t_w_t_norms = []

◆ mew

t_win_vs_m_fixed_error.mew

◆ ms

t_win_vs_m_fixed_error.ms

◆ pad

t_win_vs_m_fixed_error.pad

◆ percentage

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

◆ pp

t_win_vs_m_fixed_error.pp = ProblemParameters()

◆ ref_errors

list t_win_vs_m_fixed_error.ref_errors = [1e-1, 1e-2, 1e-3]

◆ t_norm_set

t_win_vs_m_fixed_error.t_norm_set = HinsbergPointsSetGivenNorm('t_norm')

◆ tw_max

list t_win_vs_m_fixed_error.tw_max = max_t_w_abs_norm[0]