Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Better understanding of the test() function
Posted Jun 23, 2011, 11:42 a.m. EDT Computational Fluid Dynamics (CFD) 3 Replies
Please login with a confirmed email address before reporting spam
To get the weak form of a boundary condition, one has to multiply it with a 'test-function' and integrate over the given boundary. While COMSOL does the integrating, the contents of the integral are displayed in the 'weak constraint' or 'weak contribution' section in the equation view of the corresponding node.
While the test function, mathematically, is definded as a more-or-less often differentiable hat-function on a given region, it is displayed in most COMSOL models as something like this
rest_of_equation*(test(uTx) + test(u) + test(vty))
or similar. And there ends my comprehension, because even in boundary conditions where no velocity is existent, these test functions still include spatial derivatives of the velocity field or the velocity field itself.
Can anyone explain to me, why there are velocity terms used in the test functions?
Best regards,
Christian Kelb
While the test function, mathematically, is definded as a more-or-less often differentiable hat-function on a given region, it is displayed in most COMSOL models as something like this
rest_of_equation*(test(uTx) + test(u) + test(vty))
or similar. And there ends my comprehension, because even in boundary conditions where no velocity is existent, these test functions still include spatial derivatives of the velocity field or the velocity field itself.
Can anyone explain to me, why there are velocity terms used in the test functions?
Best regards,
Christian Kelb
3 Replies Last Post Jun 4, 2015, 9:05 a.m. EDT