Please login with a confirmed email address before reporting spam
And another reply from Support about the access to previous solution in the parametric solver:
Date 03-01-2010:
Dear Peter,
For a transient (or parametric) analysis it is still not possible to
access the previous solution in the current calculation.
However the upcoming version, COMSOL 4.0 will have a new operator that
will make possible for the solver to access the value of a variable at a
previous calculation.
Currently with version 3.5a, it is a rather complicated task to proceed.
Using MATLAB is indeed a solution as MATLAB can use persistent variable
type. The persistent variable are kind of global variable that remain their
value until you reassign them a new value.
You would then need to create a MATLAB function that will store as a
persistent variable the current solution (that can be then used for the
next time step).
The main problem is that COMSOL assemble and solve the problem using
block. This means that the same function can be called several time at the
same time step... and so the persistent variable would be rewritten even
though you are still remaining at the same time step.
This is definitely not an easy task and I would rather recommend you to
wait for 4.0 to be released (end of march/april as expected plan)
Best regards,
______________________________________
Remi Magnard
COMSOL AB
Tegnérg. 23
111 40 Stockholm
Sweden
Tel : +46 8 412 9500
Fax : +46 8 412 9510
www.comsol.com
And another reply from Support about the access to previous solution in the parametric solver:
Date 03-01-2010:
Dear Peter,
For a transient (or parametric) analysis it is still not possible to
access the previous solution in the current calculation.
However the upcoming version, COMSOL 4.0 will have a new operator that
will make possible for the solver to access the value of a variable at a
previous calculation.
Currently with version 3.5a, it is a rather complicated task to proceed.
Using MATLAB is indeed a solution as MATLAB can use persistent variable
type. The persistent variable are kind of global variable that remain their
value until you reassign them a new value.
You would then need to create a MATLAB function that will store as a
persistent variable the current solution (that can be then used for the
next time step).
The main problem is that COMSOL assemble and solve the problem using
block. This means that the same function can be called several time at the
same time step... and so the persistent variable would be rewritten even
though you are still remaining at the same time step.
This is definitely not an easy task and I would rather recommend you to
wait for 4.0 to be released (end of march/april as expected plan)
Best regards,
______________________________________
Remi Magnard
COMSOL AB
Tegnérg. 23
111 40 Stockholm
Sweden
Tel : +46 8 412 9500
Fax : +46 8 412 9510
www.comsol.com