pymead.analysis.read_aero_data.export_mses_field_to_paraview_xml#
- export_mses_field_to_paraview_xml(analysis_dir: str, x_grid: List[ndarray], y_grid: List[ndarray], headers: List[str], field_array: ndarray) List[str][source]#
Writes MSES field data to the Paraview XML Structured Grid file type (
.vts). A separate file is created for each “zone,” the cells where the Euler equations are solved on each side of the displacement thickness streamlines. These files get stored in<analysis_dir>/Paraviewdata- Parameters:
analysis_dir (str) – Directory where the
ParaviewDatadirectory will be createdx_grid (List[np.ndarray]) – List of grid \(x\)-coordinate arrays (one for each zone). Stored in a “meshgrid”-like format
y_grid (List[np.ndarray]) – List of grid \(x\)-coordinate arrays (one for each zone). Stored in a “meshgrid”-like format
headers (List[str]) – List of variable names (“Cp”, “M”, etc.)
field_array (np.ndarray) – 3-D
numpy.ndarraywhere the first dimension represents a given flow variable, and the second and third dimensions represent the value of the flow variable at indicesiandj, respectively
- Returns:
Absolute file path to each of the generated
.vtsfiles- Return type: