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 23.06.2011, 11:42 GMT-4 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 04.06.2015, 09:05 GMT-4