# Solving linear system with sum of kronecker products

**URL:** <https://discourse.julialang.org/t/solving-linear-system-with-sum-of-kronecker-products/109253>\
**Category:** Numerics\
**Tags:** question, linearalgebra\
**Created:** [January 25, 2024, 1:11pm UTC](https://discourse.julialang.org/t/solving-linear-system-with-sum-of-kronecker-products/109253 "2024-01-25T13:11:52Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![photor](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/photor/32/14343_2.png) [@photor](https://discourse.julialang.org/u/photor)\
**Post date:** [February 18, 2024, 4:21am UTC](https://discourse.julialang.org/t/solving-linear-system-with-sum-of-kronecker-products/109253/21 "2024-02-18T04:21:48Z")

</div>

For 2D Poisson, I know how to deal with Dirichlet BCs, but could you provide simple explanation for how to deal with Neumann BCs with this tensor trick? Thank you.

---

<div class="post-metadata">

**Author:** ![LaurentPlagne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/laurentplagne/32/10103_2.png) [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Post date:** [February 18, 2024, 11:35am UTC](https://discourse.julialang.org/t/solving-linear-system-with-sum-of-kronecker-products/109253/22 "2024-02-18T11:35:39Z")

</div>

Partial Neumann BCs (only one side in each direction) are easy but I do not know how to cope with full Neumann and Tensor Trick (explaining why I use GMG in  
the fluid simulation example)…

Here is an example with partial Neumann (DDNN)

 ![toto](https://global.discourse-cdn.com/julialang/original/3X/a/5/a5c82d801762083f8b92726708d122fc27cebe83.jpeg)

I did update the repo to fix issuez with PrettyTable and Makie evolutions.

> **[GitHub - triscale-innov/LidJul.jl: GMG, Poisson solver and Lid cavity](https://github.com/triscale-innov/LidJul.jl)**
>
> GMG, Poisson solver and Lid cavity. Contribute to triscale-innov/LidJul.jl development by creating an account on GitHub.

[Previous page](https://discourse.julialang.org/t/solving-linear-system-with-sum-of-kronecker-products/109253.md?page=1)
