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

Sc/converters coupling #1558

Merged
merged 146 commits into from
Jan 31, 2024
Merged

Sc/converters coupling #1558

merged 146 commits into from
Jan 31, 2024

Conversation

SimonCan
Copy link
Contributor

@SimonCan SimonCan commented Jul 3, 2023

Interface coupling through converter functions. This feature extends the already existing coupling functionality by allowing the user to write converter functions. Those convert values from one system to the other and vice versa. Those converted values are then used as Dirichlet boundary condition of the system. This makes it possible to couple systems that do not share variables, but offer the option of converting variables, like Vlasov and MHD.

Nota Bene:
Currently the coordinate values on the nodes can differ by machine precision when simulating the mesh and when splitting the mesh in multiple domains. This is an issue coming from the coordinate interpolation on the nodes. As a result, running a simulation in a single system and in two coupled domains may result in a difference of the order of the machine precision. While this is not an issue for most practical problems, it is best to keep this in mind when comparing test runs.

@codecov
Copy link

codecov bot commented Jul 3, 2023

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (4b07706) 92.75% compared to head (b490cbf) 79.54%.

Files Patch % Lines
...c/semidiscretization/semidiscretization_coupled.jl 92.86% 4 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1558       +/-   ##
===========================================
- Coverage   92.75%   79.54%   -13.21%     
===========================================
  Files         451      452        +1     
  Lines       35990    36004       +14     
===========================================
- Hits        33380    28636     -4744     
- Misses       2610     7368     +4758     
Flag Coverage Δ
unittests 79.54% <93.75%> (-13.21%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@SimonCan SimonCan requested a review from sloede July 6, 2023 14:20
@SimonCan SimonCan marked this pull request as ready for review July 13, 2023 08:10
@SimonCan SimonCan requested a review from ranocha July 17, 2023 11:55
Copy link
Member

@ranocha ranocha left a comment

Choose a reason for hiding this comment

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

Does this get some docs?

src/coupling_converters/coupling_converters.jl Outdated Show resolved Hide resolved
src/coupling_converters/coupling_converters.jl Outdated Show resolved Hide resolved
src/coupling_converters/coupling_converters_2d.jl Outdated Show resolved Hide resolved
src/semidiscretization/semidiscretization_coupled.jl Outdated Show resolved Hide resolved
test/test_structured_2d.jl Outdated Show resolved Hide resolved
src/semidiscretization/semidiscretization_coupled.jl Outdated Show resolved Hide resolved
docs/src/coupling.md Outdated Show resolved Hide resolved
src/coupling_converters/coupling_converters.jl Outdated Show resolved Hide resolved
src/coupling_converters/coupling_converters_2d.jl Outdated Show resolved Hide resolved
test/test_structured_2d.jl Outdated Show resolved Hide resolved
Copy link
Contributor Author

@SimonCan SimonCan left a comment

Choose a reason for hiding this comment

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

Reviewed requested changes

@sloede
Copy link
Member

sloede commented Jan 31, 2024

@ranocha @efaulhaber Would you like to review this again or are you ok with the responses to your previous reviews?

@efaulhaber
Copy link
Member

I guess I'm okay.

@ranocha
Copy link
Member

ranocha commented Jan 31, 2024

I don't know whether I chekced everything since that has been quite some time ago. We can merge this if you think it's fine, @sloede - there is no need for me to review it from my point of view if you're satisfied

@sloede sloede merged commit 0799029 into main Jan 31, 2024
35 of 36 checks passed
@sloede sloede deleted the sc/converters_coupling branch January 31, 2024 13:21
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.

5 participants