Closed RomanLF closed 1 year ago
Hi Roman. I am glad to hear you are still finding this package useful.
I am a bit confused by your notation here. $D_j$ is a spatially dependent diffusion coefficient, right? It is possible to create a weight matrix for what you want. You would need to expand your equation using the product rule, and pass the spatially dependent coefficients (either $D_i$ or $\partial_i D_i$) into weight_matrix
with the coeffs
argument. It may be helpful to look at examples here https://rbf.readthedocs.io/en/latest/fd.html where I use the coeffs
argument to apply free boundary conditions.
Hello Trever,
Thank for your answer and your very instructive example. i forgot to answer here but thank you a lot.
Roman
Hello Mister Hines,
I am still working with RBF-FD thanks to your package. I read on the issues posted here how to compute a pressure field given some velocities. In this pressure Poisson equation, the right handside was computed with the use of weight matrices :
My question is the following :
$$ \mathbf{W} = \partial_j (Dj \partial{j}) $$
For example in dimension 3, building $W : (n{interior}, n)$ a weight matrix build on some interior nodes (not affected by boundary conditions), with $n{interior}$ number of interior points and $n$ the total number of points, so that,
$$ W u = \partial_x (D_x \partial_x u) + \partial_y (D_y \partial_y u) + \partial_z (D_z \partial_z u) $$
With $D_x$, $D_y$, $Dz$ of dimensions $(n{interior},1)$ each, and $u$ a scalar variable of dimension $(n,1)$ defined on whole domain.
In this example I cannot use the method showed in the example to compute the RHS because I don't have access to variable $u$ to make the writings work with dimensions of matrices.
Do you have any hint about how to build an anisotropic diffusion operator in that case ?
Kind regards, Roman