You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there! Thanks for the amazing work that you been doing! Im using Gridap to try to solve the stationary Einstein equations in RG.
For now, i found this problem and i don't really understand it, and less how to solve it.
My toy problem is $$\Delta u= f_1$$ in a circle $\Omega$ with the boundary condition $$\partial_{\theta} ^2 u = f_2$$ in $\partial \Omega$.
Using one exact solution $u= y^2 -x^2$ with $f_1 =0$ and $f_2 = 4(x^2 -y ^2)$.
So the first thing that i do was solve the boundary condition problem, in the Boundary FESpace.
and i got the solution with an absolute error $\sim e^{-12}$. The problem is when i tryied to mix the two problems. The weak formulation for the complete problem is $$\int_{\Omega}( \nabla v \cdot \nabla u) - \int_{\partial \Omega} ((\hat{r} \cdot \nabla u) v)+ \int_{\partial \Omega}(- (\hat{\theta} \cdot \nabla w )(\hat{\theta} \cdot \nabla t) - w r (\hat{r} \cdot \nabla t) ) + \int_{\partial \Omega} (v(u-t)) = \int_{\Omega} (-f_1 v) +\int_{\partial \Omega} (w f_2)$$ $t$ is the solution of the equation in the boundary and $w$ its test function, $u$ is the solution in the circle and $v$ its test function. The first two terms on the left is the weak formulation for the laplacian equation, the third terms is the weak formulation of my boundary condition, and the las term is the weak Dirichlet contion that means $u|_{\partial \Omega} = t$. On the rigth we have the sources.
I dont understand the error, and how to fix it. I tryied to solve the laplacian equation with weak boundari condition with the $ U_{\Omega}$ and $V_{\Omega}$ in this way, and it works with an absolute error of $e^{-10}$
a_Ts(u,v)= ∫( ∇(u) ⋅ ∇(v) )*dΩ -∫( v * (n ⋅ ∇(u)) )*dΓ +∫(u*v)*dΓ
b_Ts(v)=∫(- v * fuente )*dΩ +∫( v * exact )*dΓ
So the problems separately works fine. But when i tried to solve it together, that error comes out.
I provide here the toy code with the mesh in case that you want to reproduce the error MWE_Issue.zip
I would appreciate that someone gives me an idea of what is going on, or what is the problem. Thanks!!!
The text was updated successfully, but these errors were encountered:
@DaniStauber That seems a display error, related to the fact that the MultiFieldFESpace has two different triangulations. In that situation, get_triangulation is obviously not defined.
In any case, that is a display error. The variable should be just fine and everything is working. You can put a semicolon at the end of the statement if it bothers you.
Hi there! Thanks for the amazing work that you been doing! Im using Gridap to try to solve the stationary Einstein equations in RG.$$\Delta u= f_1$$ in a circle $\Omega$ with the boundary condition
$$\partial_{\theta} ^2 u = f_2$$ in $\partial \Omega$ .$u= y^2 -x^2$ with $f_1 =0$ and $f_2 = 4(x^2 -y ^2)$ .
For now, i found this problem and i don't really understand it, and less how to solve it.
My toy problem is
Using one exact solution
So the first thing that i do was solve the boundary condition problem, in the Boundary FESpace.
and i got the solution with an absolute error$\sim e^{-12}$ . The problem is when i tryied to mix the two problems. The weak formulation for the complete problem is $$\int_{\Omega}( \nabla v \cdot \nabla u) - \int_{\partial \Omega} ((\hat{r} \cdot \nabla u) v)+ \int_{\partial \Omega}(- (\hat{\theta} \cdot \nabla w )(\hat{\theta} \cdot \nabla t) - w r (\hat{r} \cdot \nabla t) ) + \int_{\partial \Omega} (v(u-t)) = \int_{\Omega} (-f_1 v) +\int_{\partial \Omega} (w f_2)$$
$t$ is the solution of the equation in the boundary and $w$ its test function, $u$ is the solution in the circle and $v$ its test function. The first two terms on the left is the weak formulation for the laplacian equation, the third terms is the weak formulation of my boundary condition, and the las term is the weak Dirichlet contion that means $u|_{\partial \Omega} = t$ . On the rigth we have the sources.
On the code, i gave my FESpaces
And i got this error.
I dont understand the error, and how to fix it. I tryied to solve the laplacian equation with weak boundari condition with the $ U_{\Omega}$ and$V_{\Omega}$ in this way, and it works with an absolute error of $e^{-10}$
So the problems separately works fine. But when i tried to solve it together, that error comes out.
I provide here the toy code with the mesh in case that you want to reproduce the error
MWE_Issue.zip
I would appreciate that someone gives me an idea of what is going on, or what is the problem. Thanks!!!
The text was updated successfully, but these errors were encountered: