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
 
 args = parser.parse_args()
 
 previous = None
 
 time_stamp
 
 cells
 
 max_error
 
 rms_error
 
list orders = ["", ""]
 
 ratio = cells / previous[0]
 

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 45 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 32 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 38 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 90 of file compute-errors.py.

◆ cells

compute-errors.cells

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

◆ DOMAIN_OFFSET

float compute-errors.DOMAIN_OFFSET = -0.1

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

◆ DOMAIN_WIDTH

float compute-errors.DOMAIN_WIDTH = 0.2

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

◆ help

compute-errors.help

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

◆ max_error

compute-errors.max_error

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

◆ nargs

compute-errors.nargs

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

◆ orders

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

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

◆ parser

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

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

◆ previous

tuple compute-errors.previous = None

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

◆ ratio

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

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

◆ rms_error

compute-errors.rms_error

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

◆ time_stamp

compute-errors.time_stamp

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

◆ VELOCITY

float compute-errors.VELOCITY = 1.0

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