Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 428

Cannot extract data from two datasets properly

$
0
0
I'm using COMSOl 4.4 LiveLink with Matlab (R2012b).

I've run a time-dependent simulation with two studies, where I've implemented a stop condition for the first time-dependent study, and then used the solution from the first study as the initial condition for the second study.

The problem I'm having is that the first solution contains 44 time points, while the second solution contains 197 time points. When I load the model into Matlab and try to use mphglobal, for instance, to extract data from the second data set, it only gives me the first 44 time points' worth of data. Am I missing something?

When I access the solution information of the model using mphsolutioninfo(model), it shows me that the two datasets have the proper size (see below):

>> info.sol3

ans =

dataset: {'dset3' 'dset4'}
study: 'std2'
sequencetype: 'SolverSequence'
values: {[1x197 double]}
parameters: {'t'}
mapheaders: {'t' 'Inner' 'Outer'}
map: [197x3 double]

>> info.sol1

ans =

dataset: 'dset1'
study: 'std1'
sequencetype: 'SolverSequence'
values: {[1x44 double]}
parameters: {'t'}
mapheaders: {'t' 'Inner' 'Outer'}
map: [44x3 double]

Any suggestions?

Thanks

Dave

Viewing all articles
Browse latest Browse all 428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>