Page 1 of 1

Extracting data in time-dependent problem

PostPosted: Tue Oct 31, 2017 9:56 am
by Ruben
Dear moderator,

I use FlexPDE to solve a time-dependent problem and I want to extract some quantity values at each time step.
Using Report I got separated files, each with data from a particular time-step. How can I report a whole history in one file to have a table with the quantity at a corresponding time?

Best regards,
Ruben

Re: Extracting data in time-dependent problem

PostPosted: Tue Oct 31, 2017 1:08 pm
by moderator
You can use a HISTORY plot to get the data at each time step. Use EXPORT or EXPORT FORMAT to save that data to a text file.
See example "Samples | Usage | Import-Export | Export_History.pde".

Re: Extracting data in time-dependent problem

PostPosted: Wed Nov 01, 2017 4:13 am
by Ruben
Thank you a lot, it helps =)

Best,
Ruben

Re: Extracting data in time-dependent problem

PostPosted: Sun May 20, 2018 9:47 pm
by CDLang1
Is there a way to only export a history at certain time increments?

A command like:

HISTORY (flow, temp) EXPORT FILE "myresults.txt" FORMAT "#t,#1,#2"

puts the values of time, flow & temp in a file called myresults.txt in the desired format. The output file includes a row for every time step, so getting the relatively few results I want in a concise table is tedious. Say I only want results at t=1, 2, ... end. Is there a way to do this?

Even with AUTOHIST=off, and requesting plots at increments of 1, I get the entire time history.

Thanks, Charlie

Re: Extracting data in time-dependent problem

PostPosted: Sun May 27, 2018 4:21 pm
by moderator
No, there is no mechanism for deleting data from a history report.
We assumed that since you paid for all this data, you would want to see it.