Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Python based post-processing tool #46

Closed
kpramng opened this issue Nov 2, 2022 · 3 comments
Closed

Python based post-processing tool #46

kpramng opened this issue Nov 2, 2022 · 3 comments
Labels
question Further information is requested

Comments

@kpramng
Copy link

kpramng commented Nov 2, 2022

Hi @ebranlard ,

Are there any Python based tools to do:

  • Fatigue DEL calculation from a simulations from cut in to cut out for the lifetime as well as for a timeseries
  • Markov's, LDD etc. calculation
  • Extreme loads postprocessing

Best regards,
Karthik

@ebranlard
Copy link
Collaborator

Hi @kpramng

I've recently reorganized the repository a little bit, and added some fatigue calculation tools.
You can find an example for the calculation of equivalent load here.

It's using the file fatigue.py, which was slightly adapted from the wind energy toolbox (wetb) of DTU. You'll find some Markov matrix calculation in this script.

The function equivalent_load in fatigue.py is a wrapper function, which can use either the wetb version, or fatpack. If you want to use method=fatpack, you'll need to pip install fatpack. Both methods return similar results when the number of bins is 1, for a sinusoidal signal. For other inputs, you'll obtain different results. I don't have an explanation as to why, apart from likely differerent rainflow counting algorithms.

The WEIS repository has tools to compute DEL and postprocessing extreme loads from many OpenFAST simulations, but you'll have to ask on their repository for the usage. The python-toolbox is intended for simple analyses. Feel free to contribute if you find that some features needs to be added here.

I hope that helps,
Cheers

@kpramng
Copy link
Author

kpramng commented Nov 8, 2022

Hi @ebranlard

Many thanks for sharing. I tried https://github.com/OpenFAST/python-toolbox/blob/dev/pyFAST/postpro/examples/Example_EquivalentLoad.py

It worked for the .outb files I pointed to, is there a version that can read the .out file also.

Best regards,
Karthik

@ebranlard
Copy link
Collaborator

Hi @kpramng

The example script actually works for both .outb and .out files, FASTOutputFile can read both.

Emmanuel

@ebranlard ebranlard added the question Further information is requested label Nov 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants