Peano
Loading...
Searching...
No Matches
parseDG Namespace Reference

Plot residual norm vs number of DG iterations for DG solver. More...

Variables

list res_norm = []
 
 lines = file.readlines()
 
 n_mesh = None
 
 match = re.search(r'h_min=([\d.]+)', line)
 
 next_line = lines[i + 1]
 
str pattern = r"([-+]?\d*\.?\d+(?:e[-+]?\d+)?)"
 
str full_pattern = rf"\|r\|\_max={pattern},\s*\|r\|\_2={pattern},\s*\|r\|\_h={pattern}"
 
 norms = re.search(full_pattern, next_line)
 
 r_max
 
 r_2
 
 r_h
 
 res_norm_array = np.array(res_norm)
 
 degree = input("Enter polynomial degree: ")
 
 label
 
 marker
 
 res_norm_stable = np.load(f"../../../../../PeanoData/res_norm_dg_mesh_{n_mesh}_p_{degree}_STABLE.npy")
 Compare to the stable version output ###.
 
str dir = '../../../../../PeanoData/'
 
str file_name = f'res_norm_dg_mesh_{n_mesh}_p_{degree}.npy'
 

Detailed Description

Plot residual norm vs number of DG iterations for DG solver.

Variable Documentation

◆ degree

parseDG.degree = input("Enter polynomial degree: ")

Definition at line 41 of file parseDG.py.

◆ dir

str parseDG.dir = '../../../../../PeanoData/'

Definition at line 58 of file parseDG.py.

◆ file_name

str parseDG.file_name = f'res_norm_dg_mesh_{n_mesh}_p_{degree}.npy'

Definition at line 59 of file parseDG.py.

◆ full_pattern

str parseDG.full_pattern = rf"\|r\|\_max={pattern},\s*\|r\|\_2={pattern},\s*\|r\|\_h={pattern}"

Definition at line 33 of file parseDG.py.

◆ label

parseDG.label

Definition at line 44 of file parseDG.py.

◆ lines

parseDG.lines = file.readlines()

Definition at line 14 of file parseDG.py.

◆ marker

parseDG.marker

Definition at line 44 of file parseDG.py.

◆ match

parseDG.match = re.search(r'h_min=([\d.]+)', line)

Definition at line 19 of file parseDG.py.

◆ n_mesh

parseDG.n_mesh = None

Definition at line 17 of file parseDG.py.

◆ next_line

parseDG.next_line = lines[i + 1]

Definition at line 31 of file parseDG.py.

◆ norms

parseDG.norms = re.search(full_pattern, next_line)

Definition at line 34 of file parseDG.py.

◆ pattern

str parseDG.pattern = r"([-+]?\d*\.?\d+(?:e[-+]?\d+)?)"

Definition at line 32 of file parseDG.py.

◆ r_2

parseDG.r_2

Definition at line 36 of file parseDG.py.

◆ r_h

parseDG.r_h

Definition at line 36 of file parseDG.py.

◆ r_max

parseDG.r_max

Definition at line 36 of file parseDG.py.

◆ res_norm

list parseDG.res_norm = []

Definition at line 10 of file parseDG.py.

◆ res_norm_array

parseDG.res_norm_array = np.array(res_norm)

Definition at line 39 of file parseDG.py.

◆ res_norm_stable

parseDG.res_norm_stable = np.load(f"../../../../../PeanoData/res_norm_dg_mesh_{n_mesh}_p_{degree}_STABLE.npy")

Compare to the stable version output ###.

Definition at line 51 of file parseDG.py.