Skip to content
Discussion options

You must be logged in to vote

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:

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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SamDeAbreu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants