dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #05176
operations on solution 'u'
Hi,
I'd like to use a subset of the solution vector to calculate other
quantities. For example, if I have solved for the displacement field on
a 2D mesh, how can a get at the displacement in the x direction on a
subset of the mesh. I was think along the lines of populating a
std::vector<real> which contains u[0] for a subset (possibly a
SubDomain) of the mesh. What I can't figure out is how to access the
actual values of u[0] inside of DOLFIN. Of course I can write the
solution to a file, but I am trying to avoid that post-processing step.
I have found lots of useful hooks for looking at the reference mesh, but
not for the solution (and I guess for Functions in general).
Thanks for any help.
-Jake
Follow ups