How does the function "evaluate_vector_field()" for example work?
24 views
Skip to first unread message
Abbas
unread,
Mar 23, 2023, 3:54:19 PM3/23/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to deal.II User Group
Hello,
Not exactly an FEM or dealii question but here goes.
I am not interested in knowing how the function "evaluate_vector_field" works per se, but I want to know how I can figure it out for myself from looking at the source code.
The function "evaluate_vector_field" is a good example. It is not exactly documented how it works. I grep searched the include and the source files for the function but I can't find the hard code that does the work.
I can ask "How does data post-processor calculate the gradients at the cell vertices?" but I want try figure out things like that on my own before coming here.
So, where is the hard code associated with the function "evaluate_vector_field()". I can't find it.
Thanks of course, Abbas
Wolfgang Bangerth
unread,
Mar 23, 2023, 7:56:33 PM3/23/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dea...@googlegroups.com
The function is abstract virtual, so it is not implemented in the
library. You need to implement in user code when you use it, as shown in
the various examples in the documentation, for example here:
In the end, if you are interested in learning the internal structure of
deal.II, it is often useful to start reading the code via an IDE. IDEs
are able to parse the entirety of the project and can jump to the place
where a function is defined that you call from a user project; you don't
have to know where that function is.