Mixed Boundary Conditions #4606
Answered
by
glwagner
SamDeAbreu
asked this question in
Computational science!
-
Hi there! I was wondering if it is possible to impose two different kinds of boundary conditions on one boundary. For instance, at Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
glwagner
Jun 17, 2025
Replies: 1 comment
-
This isn't possible, but it's always possible to compute the flux associated with a function discrete_flux_bc(i, j, grid, clock, fields, parameters)
# compute gradient and diffusivity
non_zero_flux = - diffusivity * gradient
return ifelse(condition_satisified, non_zero_flux, zero(grid))
end |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
SamDeAbreu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This isn't possible, but it's always possible to compute the flux associated with a
ValueBoundaryCondition
, so this is the method that should be used, eg: