### ===================================================================================================================
### A6 Analysis NLPO result handling
### ===================================================================================================================
# Copyright ©VIIA 2024
### ===================================================================================================================
### 1. Import modules
### ===================================================================================================================
# General imports
from __future__ import annotations
from typing import TYPE_CHECKING, Optional
from pathlib import Path
# References for functions and classes in the viiaPackage
if TYPE_CHECKING:
from viiapackage.viiaStatus import ViiaProject
from viiapackage.results.result_functions.viia_results_pushover import viia_results_pushover
### ===================================================================================================================
### 2. Function to handle results for A6 analysis
### ===================================================================================================================
[docs]def viia_results_a6(project: ViiaProject, out_file: Path, runtime: Optional[float] = None):
"""
Combination of functions to be performed on output of A6 non-linear pushover analysis fixed base.
Includes:
- Convergence graph.
Input:
- project (obj): Project object containing collections and of fem objects and project variables.
- analysis_nr (str): Number of the VIIA analysis. For example 'A1'.
- out_file (path): The DIANA out-file location and filename of the analysis requested as path.
Alternative (str): The DIANA out-file location and filename of the analysis requested as string.
- runtime (float): The time that the analysis ran, in [s]. This value is optional and only used to log and
stored in database. Default value is None.
Output:
- Result items of A6 analysis.
"""
viia_results_pushover(project, 'A6')
# Extracting data from the out-file to create the conversion graph
if out_file:
project.viia_convergence_graph(file=out_file, show=False)
else:
project.write_log("WARNING: No convergence graph is created because no out-file has been found.")
### ===================================================================================================================
### 3. End of script
### ===================================================================================================================