Please login with a confirmed email address before reporting spam
Posted:
5 years ago
2019年7月9日 GMT-4 21:41
Updated:
5 years ago
2019年7月9日 GMT-4 21:41
I believe one should be able to do this with COMSOL with Matlab. Have you tried?
-------------------
ZHANG, Pu
School of Physics,
Huazhong University of Science and Technology
I believe one should be able to do this with COMSOL with Matlab. Have you tried?
Edgar J. Kaiser
Certified Consultant
Please login with a confirmed email address before reporting spam
Posted:
5 years ago
2019年7月10日 GMT-4 04:21
Updated:
5 years ago
2019年7月10日 GMT-4 04:21
Ares,
Check the with() and withsol() operators in the documentation.
Cheers
Edgar
-------------------
Edgar J. Kaiser
emPhys Physical Technology
www.emphys.com
Ares,
Check the with() and withsol() operators in the documentation.
Cheers
Edgar
Please login with a confirmed email address before reporting spam
Posted:
5 years ago
2019年7月10日 GMT-4 12:41
Updated:
5 years ago
2019年7月10日 GMT-4 12:41
I believe one should be able to do this with COMSOL with Matlab. Have you tried?
Thanks Zhang! Matlab can provide more freedom. I'll see whether my version can do it.
>I believe one should be able to do this with COMSOL with Matlab. Have you tried?
Thanks Zhang! Matlab can provide more freedom. I'll see whether my version can do it.
Please login with a confirmed email address before reporting spam
Posted:
5 years ago
2019年7月10日 GMT-4 13:07
Updated:
5 years ago
2019年7月10日 GMT-4 13:00
Ares,
Check the with() and withsol() operators in the documentation.
Cheers
Edgar
Thanks a lot, Edgar!
I've tried both. The problems are
(1) the variable I'd like to process is within the same data set (solution), seems I can't use these operators to distinguish.
(2) I also tried to use two different studies, each defines a different incident photon flux, then sweep voltage. I tried with() and withsol() operators, it seems can't handle a swept variable. I got constant, not a curve.
I am not very familiar with these operators, so probably I didn't use them right.
Regards,
Ares
>Ares,
>
>Check the with() and withsol() operators in the documentation.
>
>Cheers
>Edgar
Thanks a lot, Edgar!
I've tried both. The problems are
(1) the variable I'd like to process is within the same data set (solution), seems I can't use these operators to distinguish.
(2) I also tried to use two different studies, each defines a different incident photon flux, then sweep voltage. I tried with() and withsol() operators, it seems can't handle a swept variable. I got constant, not a curve.
I am not very familiar with these operators, so probably I didn't use them right.
Regards,
Ares
Edgar J. Kaiser
Certified Consultant
Please login with a confirmed email address before reporting spam
Posted:
5 years ago
2019年7月10日 GMT-4 15:54
Updated:
5 years ago
2019年7月10日 GMT-4 15:53
Well they are made for exactly such tasks as yours.
-------------------
Edgar J. Kaiser
emPhys Physical Technology
www.emphys.com
Well they are made for exactly such tasks as yours.
Please login with a confirmed email address before reporting spam
Posted:
5 years ago
2019年7月10日 GMT-4 17:49
Updated:
5 years ago
2019年7月10日 GMT-4 17:49
Well they are made for exactly such tasks as yours.
Hi Edgar,
I've got the withsol() operator work.
The problem now is, it seems it can only evaluate one data point each time. For example, I have swept two parameters, Q and Va, then I used the following expression:
withsol('sol7', abs(semi.JX), setind(Q,1), setval(Va, -0.5))
Then I get one JX value at Q=1 and Va=-0.5. If I don't assign the Va value, it returns the last Va.
I'd like to set one Q value, and then get JX versus all Va values. By using the "setind" and "setval" inside the "withsol()", I can only get one data point designated by (Q,1) and (Va, -0.5). I failed to find a way to define a range for Va. Can this be solved?
Many thanks for your patience and time!
Ares
>Well they are made for exactly such tasks as yours.
Hi Edgar,
I've got the withsol() operator work.
The problem now is, it seems it can only evaluate one data point each time. For example, I have swept two parameters, Q and Va, then I used the following expression:
withsol('sol7', abs(semi.JX), setind(Q,1), setval(Va, -0.5))
Then I get one JX value at Q=1 and Va=-0.5. If I don't assign the Va value, it returns the last Va.
I'd like to set one Q value, and then get JX versus all Va values. By using the "setind" and "setval" inside the "withsol()", I can only get one data point designated by (Q,1) and (Va, -0.5). I failed to find a way to define a range for Va. Can this be solved?
Many thanks for your patience and time!
Ares