### How to save a Solution Function in Fenics

215

views

0

Hello everyone,

I solved the time dependent 1D linear heat equation with a moving point source over a round bar in FEnics. In the script, if I input the coordinates of a specific point within the domain as arguments to the solution function u, say u(x_coord,y_coord,z_coord), it will return the interpolated temperature value to me.

But if there a way to save the solution function u? later on, I need to rotate the point source track along the long axis of the round bar by a certain degree. So right now, my thought is I can rotate the round bar geometry instead of the point source track by that many degree, then I can get the coordinates of nodes after rotation. Input the coordinates_rotation into the original u field as arguments, I can get the temperature.

I tried with TimeSeries, but was only able to store the u.vector() at different time steps. I haven't found a way to link it to the coordinates of nodes

Any help would be appreciated!

I solved the time dependent 1D linear heat equation with a moving point source over a round bar in FEnics. In the script, if I input the coordinates of a specific point within the domain as arguments to the solution function u, say u(x_coord,y_coord,z_coord), it will return the interpolated temperature value to me.

But if there a way to save the solution function u? later on, I need to rotate the point source track along the long axis of the round bar by a certain degree. So right now, my thought is I can rotate the round bar geometry instead of the point source track by that many degree, then I can get the coordinates of nodes after rotation. Input the coordinates_rotation into the original u field as arguments, I can get the temperature.

I tried with TimeSeries, but was only able to store the u.vector() at different time steps. I haven't found a way to link it to the coordinates of nodes

Any help would be appreciated!

Community: FEniCS Project

### 1 Answer

3

Please login to add an answer/comment or follow this question.