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 | |
---|---|---|---|---|
Evaluation of grad(u) at a point x_ref for variational formulation | 2 | 25 | October 11, 2024 | |
Compute residual and jacobian with ufl.diff rather than ufl.derivative | 2 | 195 | February 2, 2024 | |
Small question about writing dot product in UFL | 1 | 530 | July 17, 2020 | |
Integrating vector fields | 7 | 3971 | February 27, 2019 | |
Error with UFL type inside a loop | 4 | 1596 | March 11, 2021 |