My problem requires me to perform a transformation on the solved values of a dolfin::Function at certain coordinates in the domain.
Some examples are available for Python, namely the answer by MiroK
I would like to perform similarly in C++.
I have extracted the coordinates from the mesh by
auto co_ordinates = mesh->coordinates();
and the Generic vector from Function as
auto E_vec = E->vector();
There are two methods namely get_local() and set_local() respectively which could facilitate me in modifying the values. But I am not really sure about the input parameters to that function.
Any alternate methods to achieve this is also highly appreciated.