|
Peano
|
Functions | |
| parse_patch_file (file_path, solver_type) | |
| Transform data from Peano patch file into numpy array in the format [x_vertex, y_vertex, value]. | |
| reorder_array (array1, array2) | |
| Given array1 and array2 of the same format [x,y,val], rearrange array2 in accordance with the order of coordinates in array1. | |
| plot_field (data) | |
| Visualise the parsed field as an interactive scatter plot. | |
| plot_field_dg (data, H) | |
| Visualise the parsed field as an interactive scatter plot. | |
| construct_dg_function (data, H) | |
| Construct exact solution with the same structure as data. | |
| postProcess.construct_dg_function | ( | data, | |
| H | |||
| ) |
Construct exact solution with the same structure as data.
:arg data: parsed patch data in the form of a dictionary as output of parse_patch_file() :arg H: mesh size as list of cell sizes in each direction: [hx, hy]
Definition at line 187 of file postProcess.py.
| postProcess.parse_patch_file | ( | file_path, | |
| solver_type | |||
| ) |
Transform data from Peano patch file into numpy array in the format [x_vertex, y_vertex, value].
:arg file_path: path to Peano patch file :solver_type: "CG" or "DG"
Definition at line 3 of file postProcess.py.
| postProcess.plot_field | ( | data | ) |
Visualise the parsed field as an interactive scatter plot.
Definition at line 108 of file postProcess.py.
| postProcess.plot_field_dg | ( | data, | |
| H | |||
| ) |
Visualise the parsed field as an interactive scatter plot.
:arg data: parsed patch data in the form of a dictionary as output of parse_patch_file() :arg H: mesh size as list of cell sizes in each direction: [hx, hy]
Definition at line 131 of file postProcess.py.
| postProcess.reorder_array | ( | array1, | |
| array2 | |||
| ) |
Given array1 and array2 of the same format [x,y,val], rearrange array2 in accordance with the order of coordinates in array1.
Definition at line 88 of file postProcess.py.