|
Peano
|
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' |
Plot residual norm vs number of DG iterations for DG solver.
| parseDG.degree = input("Enter polynomial degree: ") |
Definition at line 41 of file parseDG.py.
| str parseDG.dir = '../../../../../PeanoData/' |
Definition at line 58 of file parseDG.py.
Definition at line 59 of file parseDG.py.
Definition at line 33 of file parseDG.py.
| parseDG.label |
Definition at line 44 of file parseDG.py.
| parseDG.lines = file.readlines() |
Definition at line 14 of file parseDG.py.
| parseDG.marker |
Definition at line 44 of file parseDG.py.
| parseDG.match = re.search(r'h_min=([\d.]+)', line) |
Definition at line 19 of file parseDG.py.
| parseDG.n_mesh = None |
Definition at line 17 of file parseDG.py.
| parseDG.next_line = lines[i + 1] |
Definition at line 31 of file parseDG.py.
| parseDG.norms = re.search(full_pattern, next_line) |
Definition at line 34 of file parseDG.py.
| str parseDG.pattern = r"([-+]?\d*\.?\d+(?:e[-+]?\d+)?)" |
Definition at line 32 of file parseDG.py.
| parseDG.r_2 |
Definition at line 36 of file parseDG.py.
| parseDG.r_h |
Definition at line 36 of file parseDG.py.
| parseDG.r_max |
Definition at line 36 of file parseDG.py.
| list parseDG.res_norm = [] |
Definition at line 10 of file parseDG.py.
| parseDG.res_norm_array = np.array(res_norm) |
Definition at line 39 of file parseDG.py.
| 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.