Generating a zip-compressed archive with the results at simulation run-time and using the command-line tool to extract the contents of that archive
To run the model, from a command line run:
run-extract.cmd
The contents of run-extract.cmd are:
REM Run the solver with the *PZIP card to natively export .panzip results pan2 -s 24_extract_thermal > 24_extract_thermal.out pan2 -s 24_extract_mechanical > 24_extract_mechanical.out REM Extract thermal and mechanical results panzip x 24_extract_thermal.panzip panzip x 24_extract_mechanical.panzip REM Extracted results are here. Import case files in Local sim dir unzip
This automatically goes through the process of executing the thermal and mechanical simulation results, then immediately extracting those results to the unzip directory. The end of the process shown in the terminal is:
Mesh file = ./24_extract_mechanical/results/24_extract_mechanical_24.geo Variable file = ./24_extract_mechanical/results/24_extract_mechanical00_48.dis.ens Variable file = ./24_extract_mechanical/results/24_extract_mechanical00_48.tmp.ens Variable file = ./24_extract_mechanical/results/24_extract_mechanical00_48.typ.ens Variable file = ./24_extract_mechanical/results/24_extract_mechanical00_48.rct.ens Variable file = ./24_extract_mechanical/results/24_extract_mechanical00_48.rcd.ens Finished writing VTK file unzip/24_extract_mechanical/results/24_extract_mechanical00_48.vtk Mesh file = ./24_extract mechanical/results/24_extract_mechanical 25.geo Variable file = ./24_extract_mechanical/results/24_extract_mechanical00_49.dis.ens Variable file = ./24_extract_mechanical/results/24_extract_mechanical00_49.tmp.ens Variable file = ./24_extract_mechanical/results/24_extract_mechanical00_49.typ.ens Variable file = ./24_extract_mechanical/results/24_extract_mechanical00_49.rct.ens Variable file = ./24_extract_mechanical/results/24_extract_mechanical00_49.rcd.ens Finished writing VTK file unzip/24_extract_mechanical/results/24_extract_mechanical00_49.vtk Finished extracting results to "unzip" directory Zip file size = 2,025,701 bytes (4.51 %) Case file size = 44,961,711 bytes VTK file size = 62,159,924 bytes CPU wall for processing = 00:00:18.72 CPU wall = 00:00:20.02 Finished panzip
Actual CPU times will differ from system to system.
Navigating to the unzip directory and querying the contents shows the extracted files:
G:\Local_Simulation_example_Files_2024.0\24>dir unzip Volume in drive G is Scratch Volume Serial Number is 8E8D-410B Directory of G:\Local_Simulation_example_Files_2024.0\24\unzip 02/06/2023 01:56 PM <DIR> . 02/06/2023 01:56 PM <DIR> .. 02/06/2023 01:56 PM <DIR> 24_extract_mechanical 02/06/2023 01:56 PM 2,614 24_extract_mechanical.case 02/06/2023 01:56 PM 1,306 24_extract_mechanical.simresult 02/06/2023 01:56 PM 35,178 24_extract_mechanical.simsignal 02/06/2023 01:56 PM <DIR> 24_extract_mechanical_f 02/06/2023 01:56 PM 527 24_extract_mechanical_f.case 02/06/2023 01:56 PM <DIR> 24_extract_mechanical_mesh_geom 02/06/2023 01:56 PM 430 24_extract_mechanical_mesh_geom.case 02/06/2023 01:56 PM <DIR> 24_extract_thermal 02/06/2023 01:56 PM 589 24_extract_thermal.case 02/06/2023 01:56 PM 826 24_extract_thermal.simresult 02/06/2023 01:56 PM 11,546 24_extract_thermal.simsignal 02/06/2023 01:56 PM <DIR> 24_extract_thermal_c 02/06/2023 01:56 PM 1,676 24_extract_thermal_c.case 02/06/2023 01:56 PM <DIR> 24_extract_thermal_mesh_geom 02/06/2023 01:56 PM 425 24_extract_thermal_mesh_geom.case 02/06/2023 01:56 PM <DIR> results 10 File(s) 55,117 bytes 9 Dir(s) 1,183,059,968 bytes free