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

multi-rate time integration using sundials #58

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

prkkumar
Copy link
Collaborator

@prkkumar prkkumar commented Oct 3, 2024

This PR adds multi-rate time integration support using SUNDIALS library.

Code compiles, runs, and gives correct answers using both single rate and multi rate options.

I have added two input files which I used to test :

  1. inputs_mfim_sundials for single rate method
  2. inputs_mfim_sundials_mri for multi-rate method

Result at same physical time using the two input files are shown below:
Using single rate method
image

Using multi-rate method
image

I am able to use a 5x larger time step with MRI [will check if I can increase it even more].

Overall simulation time to reach same physical time of 4e-10 s:
single rate: 1861.619992 seconds
multi rate : 415.7616465 seconds

So, MRI is roughly 4.5 x faster than single rate for the above test.

@ajnonaka
Copy link
Collaborator

ajnonaka commented Oct 3, 2024

The improvement factor is great!

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.

2 participants