Multiple forcings for one velocity component #2134
-
Is there a recommended way to combine multiple forcings (specifically a It seems like I will probably need to re-write my sponge layer function to work with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
As you've guessed we don't have an interface for specifying more than one forcing right now, though I think it might be convenient for use cases like yours. As a temporary workaround before we have such a feature, you can embed a
where @pjrusello would you like to open an issue with a feature request for specifying multiple forcing functions and we can discuss further there? We might be able to handle this by having users specify forcings as a tuple, eg in a model constructor, forcing = (; u = (u_relaxation, u_sponge)), We could consider other API designs too. |
Beta Was this translation helpful? Give feedback.
As you've guessed we don't have an interface for specifying more than one forcing right now, though I think it might be convenient for use cases like yours.
As a temporary workaround before we have such a feature, you can embed a
Relaxation
object inside another forcing function and call it withwhere
relaxation::Relaxation
andf
is the field being relaxed (the velocity component in question in this case).@pjrusello would you like to open an issue with a feature request for specifying multiple forcing functions and we can discuss further there? We might be able to handle this by having users specify forcings as a tuple, eg in a model constructor,