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

Allowing FVDrichletBCs to take state #29145

Closed
tanoret opened this issue Nov 26, 2024 · 0 comments · Fixed by #29146
Closed

Allowing FVDrichletBCs to take state #29145

tanoret opened this issue Nov 26, 2024 · 0 comments · Fixed by #29146
Assignees
Labels
C: Framework T: task An enhancement to the software.

Comments

@tanoret
Copy link
Contributor

tanoret commented Nov 26, 2024

Motivation

Currently Dirichlet BCs in the FV framework are hardcoded to use the current state. This is inconvenient if we want Dirichlet BCs to take a previous state of a functor.

Design

Modify the getDirichletBoundaryFaceValue function in MooseVariableFV to use the state provided to this function and extend the boundaryValue getter in Dirichlet BCs to take the state provided to this function. Also, remove the assert that ensures that state.state is 0

Impact

More flexibility when using FV Dirichlet BCs or developing new derived classes from FVDirichletBCs

@tanoret tanoret added the T: task An enhancement to the software. label Nov 26, 2024
tanoret added a commit to tanoret/moose that referenced this issue Nov 26, 2024
Co-authored-by: Peter German <31662443+grmnptr@users.noreply.github.com>
tanoret added a commit to tanoret/moose that referenced this issue Nov 26, 2024
…daholab#29145

Co-authored-by: Peter German <31662443+grmnptr@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: Framework T: task An enhancement to the software.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants