Boundary Conditions with Heat Equation #2412
-
Hello! Recently I've been working on the heat equation (which is linear and easy) to learn how to use Firedrake. I'm not an expert on finite elements, so I appreciate your patience. If you like the text, you may use it as an example to put in the documentation, as you like. I was inspired by the code Mixed formulation for the Poisson equation to make both codes below (I'm using colab.research.google.com): A more detailed description is shown within each file. I will put only essential information. If you have any question, please ask me. The simulation is mainly to find the temperature field
I did not like this alternative because a boundary condition is in the variational form and I would like to apply it using
I thought that I could have a system of equations such that every boundary condition could be a Dirichlet condition of its respective variable. In the bottom part of the code, there is a section Old equations where I found an expression with the integral over both boundaries, but it doesn't work either. The main point is about the boundary conditions. Why did it not work in the second case? PS1: In the Mixed formulation for the Poisson equation, there is a
I appreciate your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
If I copy/paste your code and run locally, it runs fine:
Maybe you forgot to run some cells after some changes? |
Beta Was this translation helpful? Give feedback.
If I copy/paste your code and run locally, it runs fine: