Skip to content

Add python variant of resonant circuit#498

Merged
BenjaminRodenberg merged 22 commits into
precice:developfrom
BenjaminRodenberg:add-lc-circuit-python
Aug 30, 2024
Merged

Add python variant of resonant circuit#498
BenjaminRodenberg merged 22 commits into
precice:developfrom
BenjaminRodenberg:add-lc-circuit-python

Conversation

@BenjaminRodenberg

Copy link
Copy Markdown
Contributor

Add a python version of the tutorial provided via #480. Uses a black-box time stepper with time interpolation and substeps for high accuracy.

Planning to merge #480 first.

@BenjaminRodenberg BenjaminRodenberg self-assigned this Mar 22, 2024
@BenjaminRodenberg BenjaminRodenberg changed the base branch from master to develop March 25, 2024 12:40
@BenjaminRodenberg

Copy link
Copy Markdown
Contributor Author

It's to some degree an open question where we want to go from here: I added adaptive time stepping and use time interpolation in this PR. This is similar to what I did in #500. From my perspective the resonant circuit is even a bit simpler and might help to illustrate advanced time stepping techniques quite well.

@MakisH

MakisH commented Jun 27, 2024

Copy link
Copy Markdown
Member

I ported the fix for the markdownlint CI check. This is now only failing for autopep8.

@BenjaminRodenberg BenjaminRodenberg marked this pull request as ready for review August 29, 2024 09:05

@BenjaminRodenberg BenjaminRodenberg left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's still missing here: We need a requirement.txt and update this case to use venv (see #547). Either I or @NiklasVin will take care of this.

@BenjaminRodenberg BenjaminRodenberg changed the title WIP: Add python version of resonant circuit Add python version of resonant circuit Aug 29, 2024
Comment thread resonant-circuit/README.md Outdated
@MakisH MakisH changed the title Add python version of resonant circuit Add python variant of resonant circuit Aug 29, 2024
Comment thread resonant-circuit/README.md Outdated
@BenjaminRodenberg BenjaminRodenberg removed their assignment Aug 29, 2024
@BenjaminRodenberg

Copy link
Copy Markdown
Contributor Author

I did a quick round of checks for the newly added requirements.txt and modified ./run.sh script and everything works. Thanks for adding @NiklasVin !

@NiklasVin

Copy link
Copy Markdown
Collaborator

@MakisH Everything should be fine now. Could you please review this PR again?

@MakisH MakisH left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can run the tutorial (but don't know what results to check if I only run Python-Python).

The files looks very clean and ready to merge.

Comment thread resonant-circuit/README.md Outdated
Comment thread resonant-circuit/README.md Outdated
@BenjaminRodenberg BenjaminRodenberg self-assigned this Aug 30, 2024
@BenjaminRodenberg BenjaminRodenberg merged commit b80509a into precice:develop Aug 30, 2024
@BenjaminRodenberg BenjaminRodenberg deleted the add-lc-circuit-python branch August 30, 2024 14:17
mike-tree-corvid pushed a commit to mike-tree-corvid/tutorials that referenced this pull request Jun 12, 2026
* Add python version of resonator.
* Add of python case in README.md
* Add requirement.txt and modify run file to use venv

---------
Co-authored-by: NiklasV <139122850+NiklasVin@users.noreply.github.com>
Co-authored-by: Gerasimos Chourdakis <chourdak@in.tum.de>
Co-authored-by: Niklas <niklas.vinnitchenko@tum.de>
Co-authored-by: Benjamin Rodenberg <benjamin.rodenberg@cit.tum.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants