Thank you, Robert.
On Monday, August 27, 2012 12:55:49 AM UTC+4, Robert Cimrman wrote:
On 08/26/2012 12:32 PM, Alec Kalinin wrote:
> Hi Robert,
> Did you mean "linear_elastic_probes.html" instead of
html" example? I found the
> "linear_elastic_probes.html" very useful example for my purposes to probe a
> solution in the given (x, y, z) points. Also the documentation
> "src/sfepy/fem/probes.html" gives all necessary information to help me
> implement what I want to do. Thank you!
Sorry, I cut&pasted a wrong url, the correct one is . But you found
another one that solves the problem.
> But, despite this, could you tell me more about low-level way to evaluate a
> variable in the given (x, y, z) point?
It's exactly how the probes do that: the key function is
variable.evaluate_at() , where variable is an unknown or parameter
variable. It takes just one compulsory parameter - the coordinates of
points in which you wish to evaluate the variable. You can get the
variables of a problem by problem.get_variables(), where problem is the
second argument of the post_process_hook function.