Hi there,
I made a simulation of an electro-kinetic flow within a 2-phase medium, and after computing the currents I wanted to see how particles would behave within the geometry and the resulting fields. I all looked all-right, but what I really need, is a way to extract the particle properties, i.e. for individual particles I want to be able to plot the velocity and the position, as I need to compute the tortuosity.
I tried a great many combinations regarding 1D-plots of individual particles, all of which failed. As a matter of fact everything which one could select from the Charged Particle list failed to result in a plot (besides the global quantities, such as mass and charge, which are steady over the entire domain/time/etc).
I also tried pulling them into Matlab, which again resulted in an errors (of the same kind as the ones in the 1D-plot attempts).
Here is how I tried to extract the data:
q=mpheval(M,{'qx'},'dataset','dset2','complexfun','off','selection','sel1','t',t_list(1:2));
Error using com.comsol.model.impl.NumericalFeatureImpl/getData
Java exception occurred:
Exception:
com.comsol.nativejni.FlNativeException: Failed to evaluate expression
(rethrown as com.comsol.util.exceptions.FlException)
Messages:
Failed to evaluate expression
Undefined post expression
Failed to evaluate variable
- Variable: mod1.qx
- Geometry: 1
- Domain: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
Failed to evaluate expression
- Expression: real((999999999.99999988*mod1.qx))
Failed to evaluate expression
- Expression: real(9.999999999999999E8*mod1.qx)
Thanks,
Dan.
I made a simulation of an electro-kinetic flow within a 2-phase medium, and after computing the currents I wanted to see how particles would behave within the geometry and the resulting fields. I all looked all-right, but what I really need, is a way to extract the particle properties, i.e. for individual particles I want to be able to plot the velocity and the position, as I need to compute the tortuosity.
I tried a great many combinations regarding 1D-plots of individual particles, all of which failed. As a matter of fact everything which one could select from the Charged Particle list failed to result in a plot (besides the global quantities, such as mass and charge, which are steady over the entire domain/time/etc).
I also tried pulling them into Matlab, which again resulted in an errors (of the same kind as the ones in the 1D-plot attempts).
Here is how I tried to extract the data:
q=mpheval(M,{'qx'},'dataset','dset2','complexfun','off','selection','sel1','t',t_list(1:2));
Error using com.comsol.model.impl.NumericalFeatureImpl/getData
Java exception occurred:
Exception:
com.comsol.nativejni.FlNativeException: Failed to evaluate expression
(rethrown as com.comsol.util.exceptions.FlException)
Messages:
Failed to evaluate expression
Undefined post expression
Failed to evaluate variable
- Variable: mod1.qx
- Geometry: 1
- Domain: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
Failed to evaluate expression
- Expression: real((999999999.99999988*mod1.qx))
Failed to evaluate expression
- Expression: real(9.999999999999999E8*mod1.qx)
Thanks,
Dan.