Apps
All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Modules Pages
error_estimation.lua File Reference

Functions

function dirichletBnd2d (x, y, t)
 
function dirichletBnd3d (x, y, z, t)
 
function source2d (x, y, t)
 
function source3d (x, y, z, t)
 

Variables

parameterNumber dim = 2
 
parameterString grid = "Examples/grids/laplace_sample_grid_"
 
parameterNumber maxLvl = 15
 
parameterNumber refTol = 5e
 

Function Documentation

◆ dirichletBnd2d()

function dirichletBnd2d ( ,
y  ,
t   
)

location: /home/runner/work/docs/docs/ug4/apps/Examples / error_estimation.lua :64-67

function dirichletBnd2d(x, y, t)
local r = math.sqrt(x*x + y*y)
return true, 1.0 / (1.0 + math.exp(-200*(r-0.8)))
function y
Definition channel.lua:79
function t
Definition channel.lua:79
function *Umax *y end
Definition channel.lua:87
function dirichletBnd2d(x, y, t)

◆ dirichletBnd3d()

function dirichletBnd3d ( ,
y  ,
,
t   
)

location: /home/runner/work/docs/docs/ug4/apps/Examples / error_estimation.lua :75-78

function dirichletBnd3d(x, y, z, t)
local r = math.sqrt(x*x + y*y + z*z)
return true, 1.0 / (1.0 + math.exp(-200*(r-0.8)))
function dirichletBnd3d(x, y, z, t)

◆ source2d()

function source2d ( ,
y  ,
t   
)

location: /home/runner/work/docs/docs/ug4/apps/Examples / error_estimation.lua :58-63

function source2d(x, y, t)
local r = math.sqrt(x*x + y*y)
if r < 1e-9 then return 0.0 end
return -200*(1.0 + math.exp(-200*r+160) - 200*r + 200*math.exp(-200*r+160)*r)
math.exp(-200*r+160) * math.pow(1.0 + math.exp(-200*r+160),-3) / r
function source2d(x, y, t)

◆ source3d()

function source3d ( ,
y  ,
,
t   
)

location: /home/runner/work/docs/docs/ug4/apps/Examples / error_estimation.lua :69-74

function source3d(x, y, z, t)
local r = math.sqrt(x*x + y*y + z*z)
if r < 1e-9 then return 0.0 end
return -400*(1.0 + math.exp(-200*r+160) - 100*r + 100*math.exp(-200*r+160)*r)
math.exp(-200*r+160) * math.pow(1.0 + math.exp(-200*r+160),-3) / r
function source3d(x, y, z, t)

Variable Documentation

◆ dim

parameterNumber dim = 2

◆ grid

parameterString grid = "Examples/grids/laplace_sample_grid_"

◆ maxLvl

parameterNumber maxLvl = 15

◆ refTol

parameterNumber refTol = 5e