Peano
Loading...
Searching...
No Matches
compute-errors Namespace Reference

Functions

 exact_density (x, t)
 snap (offset, size)
 Snap a patch's offset and size onto the regular mesh over the domain.
 errors (run_directory)
 Return (time stamp, grid cells per axis, max error, rms error) of the last snapshot of a run.

Variables

float DOMAIN_OFFSET = -0.1
float DOMAIN_WIDTH = 0.2
float VELOCITY = 1.0
 parser = argparse.ArgumentParser(description=__doc__.strip().split("\n")[0])
 nargs
 help
 type
 default
 args = parser.parse_args()
 previous = None
 time_stamp
 cells
 max_error
 rms_error
list orders = ["", ""]
 ratio = cells / previous[0]
list last_order = "" else math.nan

Function Documentation

◆ errors()

compute-errors.errors ( run_directory)

Return (time stamp, grid cells per axis, max error, rms error) of the last snapshot of a run.

Definition at line 46 of file compute-errors.py.

References exact_density(), and snap().

Here is the call graph for this function:

◆ exact_density()

compute-errors.exact_density ( x,
t )

Definition at line 33 of file compute-errors.py.

Referenced by errors().

Here is the caller graph for this function:

◆ snap()

compute-errors.snap ( offset,
size )

Snap a patch's offset and size onto the regular mesh over the domain.

Definition at line 39 of file compute-errors.py.

Referenced by errors().

Here is the caller graph for this function:

Variable Documentation

◆ args

compute-errors.args = parser.parse_args()

Definition at line 97 of file compute-errors.py.

◆ cells

compute-errors.cells

Definition at line 104 of file compute-errors.py.

◆ default

compute-errors.default

Definition at line 94 of file compute-errors.py.

◆ DOMAIN_OFFSET

float compute-errors.DOMAIN_OFFSET = -0.1

Definition at line 28 of file compute-errors.py.

◆ DOMAIN_WIDTH

float compute-errors.DOMAIN_WIDTH = 0.2

Definition at line 29 of file compute-errors.py.

◆ help

compute-errors.help

Definition at line 89 of file compute-errors.py.

◆ last_order

list compute-errors.last_order = "" else math.nan

Definition at line 116 of file compute-errors.py.

◆ max_error

compute-errors.max_error

Definition at line 104 of file compute-errors.py.

◆ nargs

compute-errors.nargs

Definition at line 89 of file compute-errors.py.

◆ orders

list compute-errors.orders = ["", ""]

Definition at line 105 of file compute-errors.py.

◆ parser

compute-errors.parser = argparse.ArgumentParser(description=__doc__.strip().split("\n")[0])

Definition at line 87 of file compute-errors.py.

◆ previous

tuple compute-errors.previous = None

Definition at line 102 of file compute-errors.py.

◆ ratio

compute-errors.ratio = cells / previous[0]

Definition at line 107 of file compute-errors.py.

◆ rms_error

compute-errors.rms_error

Definition at line 104 of file compute-errors.py.

◆ time_stamp

compute-errors.time_stamp

Definition at line 104 of file compute-errors.py.

◆ type

compute-errors.type

Definition at line 93 of file compute-errors.py.

◆ VELOCITY

float compute-errors.VELOCITY = 1.0

Definition at line 30 of file compute-errors.py.