Implementation of heat conduction equation with robin and Neumann boundary conditions #1086
-
Hello everyone, I am working to solve the heat conduction equation with Robin and Neumann boundary conditions on different edges of the boundary. I am trying to modify the code given for example 19 to make it happen. I am not able to understand some parts of that code (lines 62 & 67). What does 'mass' represent on line 62? What is the function 'penalize' on line 67? Can someone direct me to any available documentation on these? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 17 replies
-
scikit-fem/skfem/models/poisson.py Line 18 in 68bd6fe
|
Beta Was this translation helpful? Give feedback.
mass
is the "mass" linear form which when assembled for a given basis gives the Gramian of that basis; hereM
. ThisM
is usually called the "mass matrix" in the finite element method; e.g. Ern & Guermond (2004, Theory and Practice of Finite Elements; §3.3.4). It invariably arises in transient or eigenvalue problems. Definition:scikit-fem/skfem/models/poisson.py
Line 18 in 68bd6fe
penalize
imposes the essential boundary condition, here zero, by dividing excursions by a very small number to produce a very big residual unless the value on the boundary is almost the desired value. It's an alternative toenforce
andcondense
. Penalization is discussed by E…