Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Analytical solutions for simple cases #279

Open
cmichelenstrofer opened this issue Oct 11, 2023 · 1 comment
Open

Feature request: Analytical solutions for simple cases #279

cmichelenstrofer opened this issue Oct 11, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@cmichelenstrofer
Copy link
Member

We often compare to the analytical linear solutions. We should write a function maybe in utils that does this genearlly instead of writting the same code over and over for each specific case.

  • This could also be used as initial guess for the state x for non-linear cases.
  • We could also include the solution for saturated PI, see this comment.
@cmichelenstrofer
Copy link
Member Author

Comment by @rebeccamccabe:

For a better initial guess, instead of using the unsaturated amplitude Fp, the fundamental of the saturated waveform will have an amplitude of alpha * Fmax / Fp, where alpha is a value ranging from 1 (no saturation) to 4/pi (full saturation, the fundamental of a square wave):
image
(from the Franklin-Powell-Emami Control textbook section on describing functions)

To go even further (unclear this is actually necessary) I've also derived the math for the higher harmonics too, which I think should be exact for a linear problem.
image
which is derived here https://github.com/symbiotic-engineering/MDOcean/blob/rgm-force-saturation/dev/describing_fcn_error.mlx

Originally posted by @rebeccamccabe in #269 (comment)

@cmichelenstrofer cmichelenstrofer added the enhancement New feature or request label Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant