You need to assemble the residual. Anything written with dot, grad, inner, div, dx etc are objects from the Unified form language (ufl). To obtain numerical values, such objects has to be assembled. To assemble a residual with boundary conditions, see for instance: Residual for Stokes equation not equal to zero - #3 by nate
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Difference in computed residuals
|
2 | 492 | May 9, 2020 | |
The correct way to calculate and plot the residual? | 1 | 904 | February 11, 2023 | |
Question about an issue with assemble() and project() for equations defined as UFL Forms | 2 | 63 | August 5, 2024 | |
Assemble only on the vertices | 2 | 429 | May 9, 2023 | |
Problem with assembling | 0 | 277 | April 25, 2021 |