Mercurial > repos > public > sbplib_julia
view src/BoundaryConditions/sat.jl @ 1601:fad18896d20a feature/boundary_conditions
REVIEW: Comment on operator toml
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 29 May 2024 23:28:33 +0200 |
parents | 37b05221beda |
children | 3e7438e2a033 |
line wrap: on
line source
""" sat_tensors(op, grid, bc::BoundaryCondition, params...) The tensor and boundary operator used to construct a simultaneous-approximation-term for imposing `bc` related to `op`. For `sat_op, L = sat_tensors(...)` then `SAT = sat_op*(L*u - g)` where `g` is the boundary data. """ function sat_tensors end # REVIEW: Rename `sat_op` to `penalty_tensor`? """ sat(op, grid, bc::BoundaryCondition, params...) Simultaneous-Approximation-Term for a general `bc` to `op`. Returns a function `SAT(u,g)` weakly imposing `bc` when added to `op*u`. `op` must implement the function `sat_tensors`. """ function sat(op, grid, bc::BoundaryCondition, params...) sat_op, L = sat_tensors(op, grid, bc, params...) return SAT(u, g) = sat_op*(L*u - g) end