-
Can you please provide a simple example for interpolation of FEM solution (e.q. in the case of example 1) . All of the examples except example 13 end with the export of the solution to vtk file. But sometimes you need to work with the solution in Julia script. It would be very helpful, as getting through the code is a quite difficult task ... Tomas |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hi @radlicka !
|
Beta Was this translation helpful? Give feedback.
-
Hi @radlicka, You can take a look at this interpolation tutorial - soon available in Gridap tutorials -, which deals with how to interpolate FE functions in arbitrary points (Need at least Gridap v.0.16.4). |
Beta Was this translation helpful? Give feedback.
-
@radlicka you can evaluate the solution Important performance warning If you want to evaluate
cache = return_cache(uh,x1)
evaluate!(cache,uh,x1)
evaluate!(cache,uh,x2)
...
evaluate!(cache,uh,xN)
|
Beta Was this translation helpful? Give feedback.
@radlicka you can evaluate the solution
uh
at a given arbitraryx::Point
object,uh(x)
.Important performance warning
If you want to evaluate
uh
at several pointsx1
,... ,xN
, you have 2 options to perform this operation efficiently:points= [ x1,... ,xN]
, and then evaluateuh(points)