idea-statica / ideastatica-public

MIT License
24 stars 9 forks source link

[FEATURE] Support for fatigue calculation using Python `ideastatica_connection_api` #725

Open knutankv opened 6 days ago

knutankv commented 6 days ago

When running api_client.calculation.calculate with a ConCalculationParameter defined using analysis_type='fatigues', the following error emerges:

  Reason: Bad Request
  HTTP response headers: HTTPHeaderDict({'Content-Length': '52', 'Content-Type': 'application/json; charset=utf-8', 'Date': 'Wed, 27 Nov 2024 09:15:55 GMT', 'Server': 'Kestrel'})
  HTTP response body: "Request failed Fatigues analysis is not supported."

Running the same code with a ConCalculationParameter defined using analysis_type='stress_Strain' works fine. Are all analysis types described in the API reference for ConAnalysisTypeEnum supported?

Are the calculation of 'stress_Strain' and 'fatigues' analysis types called identically, i.e., like this?

  con_calc_par = ConCalculationParameter(connection_ids=[connection_id], 
                                                                  analysis_type='fatigues')

  summary = client.calculation.calculate(project_id, con_calculation_parameter=con_calc_par )

If fatigue calculations (and result extraction) are not supported yet, this feature would be much appreciated!

nathanlukeIDEA commented 1 day ago

Hi @knutankv, we are looking into this. We believe you should beable to run the fatigue analysis, so there is just a small misalignment currently. I will get back to you when we have an answer.