FEM: CCX naming of buckling resultfile

Fixes the naming of the resultfile. Instead of displaying 'Time', it displays "BucklingFactor".
This commit is contained in:
Tobias Vaara
2021-06-19 05:59:09 -07:00
committed by Bernd Hahnebach
parent 991817a47d
commit 4ef2769402
2 changed files with 16 additions and 6 deletions

View File

@@ -69,7 +69,8 @@ def insert(
def importFrd(
filename,
analysis=None,
result_name_prefix=""
result_name_prefix="",
result_analysis_type=""
):
import ObjectsFem
from . import importToolsFem
@@ -111,10 +112,19 @@ def importFrd(
.format(result_name_prefix, eigenmode_number)
)
elif number_of_increments > 1:
results_name = (
"{}Time{}_Results"
.format(result_name_prefix, step_time)
)
if result_analysis_type == "buckling":
results_name = (
"{}BucklingFactor{}_Results"
.format(result_name_prefix, step_time)
)
else:
results_name = (
"{}Time{}_Results"
.format(result_name_prefix, step_time)
)
else:
results_name = (
"{}Results"

View File

@@ -784,7 +784,7 @@ class FemToolsCcx(QtCore.QRunnable, QtCore.QObject):
import feminout.importCcxFrdResults as importCcxFrdResults
frd_result_file = os.path.splitext(self.inp_file_name)[0] + ".frd"
if os.path.isfile(frd_result_file):
importCcxFrdResults.importFrd(frd_result_file, self.analysis, "CCX_")
importCcxFrdResults.importFrd(frd_result_file, self.analysis, "CCX_", self.solver.AnalysisType)
for m in self.analysis.Group:
if m.isDerivedFrom("Fem::FemResultObject"):
self.results_present = True