Post-Processing from External HDF5 Files

Users can now attach an external .H5 file to a scenario. This improves the user workflow in the following ways:

  1. To have more control over the amount of data the user has to maintain and to minimize the size of the Apex database.
  2. Users will have an optional Attach behavior where they can read the results directly from the H5 file, minimizing the size of the Apex project database and not duplicating data on the user storage devices.
  3. The Attach behavior is a well-established pattern for allowing users to access existing results for post-processing.

Attach Nastran Results

Users will have an optional Attach behavior where they can read the results directly from the h5 file, minimizing the size of the Apex project database and not duplicating data on the user storage devices.

 

 

 

 

 

 

 

 

 

Note: If a user attaches an h5 file to a scenario that is already associated with another h5 file, a warning pop-up window will appear.

Follow these instructions to attach Nastran results:

  1. Select an h5 file to attach.
  2. Run the validation processes to see if the results match with the Apex model.
  3. If the validation is successful, generate the ICM and then extract the data from the h5 file to establish the results quantities in the Apex database. This involves creating the Apex results quantities and establishing the link relationship between the h5 results data and the results quantities in Apex.
  4. Note down the h5 file details, including the file's time stamp (We require this information to verify whether the h5 file has been altered in the future).
  5. Enable the Post Process button.

Validate the HDF5 before attach

When a user tries to import or associate a Nastran HDF5 results file with an existing Apex Scenario, Apex validates the imported file by performing the following validation checks:

  • Validate the HDF5 type
  • Validate the HDF5 file

Note: 

  • When the FEM entity IDs in the model and the results match, Apex will be able to successfully map the data.
  • If LB/C does not match, then the user can sync the model according to the hdf5 and then match, or cancel the processing.

Read h5 MetaData and Organize

The user must note the following considerations before enter post-processing.

When FEM entity IDs in both the model and the h5 results match and all verification processes are successfully passed, the h5 file will be initiated for reading. Additionally, when a user attaches an h5 result file, the links and associated meta-data must be created and maintained.

  1. Enable the post processing button for the scenario once the FEM entity IDs in both the model and the h5 results match and all verification processes are successfully passed.
  2. Apex reads the h5 file to generate the links and associated meta-data to initialize the post-processing windows.           
  • Read the H5 file further and identify all the result quantities supported by Apex in the H5 files. Next, create the corresponding result quantities in Apex POST according to the organizational structure of Apex and establish the link relationship between the results data in H5 and the result quantities in Apex POST.
  • When the user enters POST, the MDP in the POST will be updated according to the h5 file. Additionally, the bottom panel which contains information about the result's location/quantities will be updated. Note: The top and the middle panel works normally as before.
  • The floating results panel initializes based on the information from the h5 file, including data about the results quantities and their derivation.

The processing of reading the h5 file and organizing the results quantities in the new method is nearly identical to what we currently do with the "import" process. The key difference is that we won't duplicate the results data into the Apex DB; instead, we will only retain the results links and their associations. When we require access to the results data, we will utilize these links and associations to directly access the relevant results data.

Enter Post-processing

When the user initiates the post-processing action, Apex retrieves the necessary data directly from the .H5 file to display the specified plot, whether it's the default plot or a previously saved one. 

Post-Processing steps:

  1. The user initiates the "Post Process" action for a specific scenario.
  2. The system reads the associated .h5 file and extracts information from it, such as the file's timestamp. It then compares this extracted information with the recorded data.
  3. If the extracted information, such as the timestamp, matches the recorded data, the system proceeds with the Post Process operation. If there is no match, an error message is displayed, and the operation is blocked.
  4. If the system cannot locate the specified .h5 file, it displays an error message and blocks the operation.

Upon successful entry into the post-processing phase, the following actions will occur:

  1. All supported results quantities and their associated meta-data should have already been identified during the h5 file attachment process and will be used to initialize the POST processing windows:

    1.1. The Model Display Panel (MDP) will be initialized, particularly focusing on configuring the bottom panel in MDP according to the h5 file's results quantities.

    1.2. The floating results panel will be initialized, displaying the results quantities and their corresponding derivations as specified in the h5 file.

  2. Links between the Apex results quantities and the results data should have already been established, allowing for the direct extraction of results data from the h5 file. This data will be used for:

    2.1. Generating the default deformation and fringe plots.

    2.2. Enabling users to modify plot configurations and execute custom plots, including fringe plots, vector plots, and tables, based on the linked h5 data.

Extract Data for Defined Plot from .H5 file

Users can generate any of the supported plots for all available results and utilize all post-processing features on the associated results by directly accessing the necessary data from the linked H5 file.

  1. During the attach process, Apex validates the meta-data and the results quantities according to the information in the h5 file.
  2. Links between the results data in external h5 file and the Apex results quantities will be established.
  3. When the user configures a plot operation, Apex will execute the plot task. This process is similar to importing results, with the key distinction being that we no longer rely on the existing results data in the Apex DB (EOM), as there is no longer any results data stored there. Instead, we retrieve the necessary data directly from the attached H5 file.
  4. All the post-processing features will continue to function normally as before. This includes:
    1. Extraction of results data directly from the H5 file for fringe plots, vector plots, and deformed shape plots.
    2. Extraction of results data directly from the H5 file for 0D results probes and 1D results probes.
    3. Extraction of results data directly from the H5 file for results tables, such as the Modes table and the Effective Mass Fraction table.

Create Default or Persisted Plot

When the user attaches an h5 results file to a scenario and enters post-processing, the default or Persisted Plot will be created automatically. The default MDP behaviors in POST do not change including the behavior of scenarios in the top panel and the behavior of the Models in the middle panel. For the bottom panel, it shows the results quantities and locations according to the h5 file. By default, the deformed shape will be shown in the 3D view port. The deformed shape results data directly accessed from the attached external h5 file. If this is not the initial post entry, the Persisted Plot behaviors will activate and generate plots with the current results. The only difference is that these plots will be generated directly from the data stored in the external h5 file, without the need to duplicate the data into the Apex DB. If the user change the plot configuration, such as switching from displacement to stress as the desired results quantities, the plots will be promptly updated. These updates will utilize the results data from the attached external h5 file.

Exiting Post Processing

To exit the post-processing mode, the user can simply click the "Exiting Post Processing" button. Note that the hdf5 file will not be detached from the scenario, the result quantities and results quantities organization will be still in Apex DB. Additionally, the user can modify, rename, or delete the hdf5 file after exiting the post-processing mode.

Save DB then Open the DB

When the user saves the DB, the attached link and association between the h5 file and the scenario will be saved. When the user opens the DB, the scenario status will be the same as the status before closing the DB. Users can enter the Post Process and can directly access the hdf5 file.

Delete, move, rename after attached

The associated HDF5 file can be deleted, moved, and renamed by the user. After the user saves the database and exits Apex, the hdf5 file that is attached to a scenario will be released and will not be used by Apex.

Modify the attached hdf5

The associated hdf5 file can be modified after the user saves the database and exits Apex.

When the user reopens the Apex DB and try to enter Post-processing mode:

If it is detected that the attached h5 file has been modified, such as a change in the timestamp, an error message will be displayed in the status bar to guide the user. The recommended action will be to detach and then re-attach the file. This approach enhances robustness, as there will be no need to update the results quantities.

User de-attach

The user can detach the h5 file from a scenario from the context menu. After detaching the h5 file from the scenario, the user can initiate the scenario cleanup which includes deleting the ICM, deleting all previously created results quantities and organization in Apex, and deleting the link relationship between the h5 and Apex DB. The user can disable the Post Process button after the cleanup process is complete.