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

Correct update of solutions for multiphysics in matrix-free application #1294

Merged
merged 5 commits into from
Sep 26, 2024

Conversation

lpsaavedra
Copy link
Collaborator

@lpsaavedra lpsaavedra commented Sep 25, 2024

Description

The matrix free application was updating the results outside of the iterate loop. This works only if the other physics are solved before the fluid dynamics, but we have other physics that are solved right after the fluid dynamics and in that case, they need the most recent fluid information within the iterate loop.

Solution

In order to fix this, we have to update the solutions right after solving the problem for the fluid dynamics, i.e., within the iterate loop right after solve_non_linear_system is called. For this, a function had to be created in the parent class NavierStokesBase.

Testing

No test available at the moment, the behaviour of the matrix-free application with the other physics is still a work in progress.

Checklist (will be removed when merged)

See this page for more information about the pull request process.

Code related list:

  • All in-code documentation related to this PR is up to date (Doxygen format)
  • Lethe documentation is up to date
  • The branch is rebased onto master
  • Changelog (CHANGELOG.md) is up to date
  • Code is indented with indent-all and .prm files (examples and tests) with prm-indent

Pull request related list:

  • Labels are applied
  • There are at least 2 reviewers (or 1 if small feature) excluding the responsible for the merge
  • The PR description is cleaned and ready for merge

@blaisb blaisb merged commit fb2d6f0 into master Sep 26, 2024
11 checks passed
@blaisb blaisb deleted the fix_tracer_with_mf branch September 26, 2024 16:46
blaisb pushed a commit that referenced this pull request Sep 27, 2024
…on (#1294)

Description
The matrix free application was updating the results outside of the iterate loop. This works only if the other physics are solved before the fluid dynamics, but we have other physics that are solved right after the fluid dynamics and in that case, they need the most recent fluid information within the iterate loop.

Solution
In order to fix this, we have to update the solutions right after solving the problem for the fluid dynamics, i.e., within the iterate loop right after solve_non_linear_system is called. For this, a function had to be created in the parent class NavierStokesBase.

Testing
No test available at the moment, the behaviour of the matrix-free application with the other physics is still a work in progress.

Former-commit-id: fb2d6f0
blaisb pushed a commit that referenced this pull request Sep 30, 2024
…on (#1294)

Description
The matrix free application was updating the results outside of the iterate loop. This works only if the other physics are solved before the fluid dynamics, but we have other physics that are solved right after the fluid dynamics and in that case, they need the most recent fluid information within the iterate loop.

Solution
In order to fix this, we have to update the solutions right after solving the problem for the fluid dynamics, i.e., within the iterate loop right after solve_non_linear_system is called. For this, a function had to be created in the parent class NavierStokesBase.

Testing
No test available at the moment, the behaviour of the matrix-free application with the other physics is still a work in progress.

Former-commit-id: fb2d6f0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants