User question - Integrate, then plot over time?

From one of my users:

Basic question, but I have an electric field line-out over which I would like to integrate (to get voltage between the two points) and then I would like to plot this over time to obtain the potential between the two points as a function of time. How can I do this?

Alan,

Add a Line Source, place the end points as desired, and set the Resolution property to something reasonable. Then, resample the data from the dataset to the Resample with Data Set filter. Set the “Source Data Arrays” to the dataset and the “Destination Mesh” to the line source.

Next, add an Integrate Variables filter to the Resample with Data Set. To that, add a Plot Data Over Time filter. That should do it.

Oh, of course. I missed the resample with dataset filter. Thanks.