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

Extracting State Space Matrices from

$
0
0
Hi All,
I was using batteries and fuel cells module for my thesis project. I want to extract the state matrices.
For that I entered the following command to matlab CLI and i am getting the error below .I couldn't figure out the problem. I appriciate your help please. I am using comsol 4.3b with matlab livelink.

model = mphload('solid_state_li_battery.mph');
>> pdom1 = model.probe.create('pdom1', 'DomainPoint');
>> pdom1.model('mod1');
>> pdom1.setIndex('coords2','1.5e-6',0,0);
>> str = mphstate(model,'sol1','out',{'MA','MB','C','D'},'output','mod1.ppb1');
Error using mphstate (line 155)
Java exception occurred:
Exception:
com.comsol.nativejni.FlNativeException: Failed to evaluate expression
(rethrown as com.comsol.util.exceptions.FlException)
(rethrown as com.comsol.util.exceptions.FlException)
Messages:
The following feature has encountered a problem

The following feature has encountered a problem

Failed to evaluate variable
- Variable: timestep
- Geometry: 1
- Domain: 1

Failed to evaluate expression
- Expression:

Viewing all articles
Browse latest Browse all 26527

Trending Articles