pyrc.visualization.vtk_parser#
- create_heat_flux_lines(resistors, time_steps: list, output_folder='output', step_interval=None)#
- write_pvd(pvd_entries: list, output_folder='output', name='00_simulation')#
- write_temperature_vtu(result_temperatures: ndarray, time_steps: list, points: ndarray, cells: ndarray, output_folder='output', step_interval: int = 1)#
- write_vtu_parallel(t_idx, name: str, time_steps: list, matrix, output_folder: str, format_layout: str, points: ndarray, cells: array, cell_type: str = 'hexahedron')#
Writes a single .vtu file for a specific time step. Is used in multiprocessing pool.starmap
- Parameters:
t_idx (int) – The index of the time step.
name (str) – The name of the parameter.
time_steps (list) – A list with all time steps.
matrix (np.ndarray) – A numpy matrix with the values. Shape: time_steps, nodes For one time step one row is used (not one column)!
output_folder (str) – The output folder.
format_layout (str) – A format to style the index of the temperature. Should be: “0{len(time_steps)}d”
- Returns:
The line to add to the pvd file that links to the created temperature file.
- Return type:
str