Mercurial > repos > public > sbplib_julia
comparison src/SbpOperators/boundary_conditions/sat.jl @ 2057:8a2a0d678d6f feature/lazy_tensors/pretty_printing
Merge default
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Tue, 10 Feb 2026 22:41:19 +0100 |
| parents | 77f192b05b1d |
| children |
comparison
equal
deleted
inserted
replaced
| 1110:c0bff9f6e0fb | 2057:8a2a0d678d6f |
|---|---|
| 1 """ | |
| 2 sat_tensors(op, grid, bc::BoundaryCondition; kwargs...) | |
| 3 | |
| 4 The penalty tensor and boundary operator used to construct a | |
| 5 simultaneous-approximation-term for imposing `bc` related to `op`. | |
| 6 | |
| 7 For `penalty_tensor, L = sat_tensors(...)` then `SAT(u,g) = | |
| 8 penalty_tensor*(L*u - g)` where `g` is the boundary data. | |
| 9 """ | |
| 10 function sat_tensors end | |
| 11 | |
| 12 | |
| 13 """ | |
| 14 sat(op, grid, bc::BoundaryCondition; kwargs...) | |
| 15 | |
| 16 Simultaneous-Approximation-Term for a general `bc` to `op`. Returns a function | |
| 17 `SAT(u,g)` weakly imposing `bc` when added to `op*u`. | |
| 18 | |
| 19 Internally `sat_tensors(op, grid, bc; ...)` is called to construct the | |
| 20 necessary parts for the SAT. | |
| 21 """ | |
| 22 function sat(op, grid, bc::BoundaryCondition; kwargs...) | |
| 23 penalty_tensor, L = sat_tensors(op, grid, bc; kwargs...) | |
| 24 return SAT(u, g) = penalty_tensor*(L*u - g) | |
| 25 end |
