viktor.external.axisvm
AxisVMAnalysis
- class viktor.external.axisvm.AxisVMAnalysis(model, *, return_results=True, return_model=False, report_template=None)
Bases:
ExternalProgramPerform an analysis using AxisVM on a third-party worker. To start an analysis call the method
execute(), with an appropriate timeout (in seconds).To retrieve the results call the method
get_results(), afterexecute(). The model file can be retrieved by callingget_model_file()and the result by callingget_result_file().Usage:
axisvm_analysis = AxisVMAnalysis(model, return_results=True, return_model=True) axisvm_analysis.execute(timeout=10) results = axisvm_analysis.get_results() model_file = axisvm_analysis.get_model_file() result_file = axisvm_analysis.get_result_file()Exceptions which can be raised during calculation:
ExecutionError: generic error. Error message provides more information
- Parameters:
- get_model_file(*, as_file=False)
Retrieve the model file (only if return_model = True).
execute()must be called first.- Parameters:
as_file (
bool) – Return as BytesIO (default) or FileNew in v13.5.0- Return type:
BytesIO|File|None
- get_result_file(*, as_file=False)
Retrieve the result file (only if return_results = True).
execute()must be called first.- Parameters:
as_file (
bool) – Return as BytesIO (default) or FileNew in v13.5.0- Return type:
BytesIO|File|None
- get_results()
Retrieve the results (only if return_results = True).
execute()must be called first.The format of the returned dictionary is:
{ 'Forces': <dict>, 'Displacements': <dict>, 'Sections': <dict> }- Return type:
dict