Ivar KJELBERG
COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
Jun 26, 2012, 3:19 p.m. EDT
Hi
interesting question, I'm not sure if it's that easy in COMSOL, certainly possible via Matlab or Java.
Within COMSOL you have the min() & max() operators for any variable (check the doc, they accept also a second argument, you need to search a bit deeper but its descirbed in the help)
For fields: min(V,x) returns the "x" coordinate of the minimum of the V(x,y,z,t) field, this work for the space coordinates, but I have never really tried for the time coordinate "t".
Now if you have defined a varibale my_var(t) and the max(my_var,t) returns the value for t, and defined
my_var_max = max(my_var(t)),
then you can define a
my_temp_var = my_var(t)*(my_var(t)< my_var_max / 2)
and search the max below and above the t_at_my_var_max.
There must be an easier way ;) but I cannot really identify it like, that within COMSOL
--
Good luck
Ivar
Hi
interesting question, I'm not sure if it's that easy in COMSOL, certainly possible via Matlab or Java.
Within COMSOL you have the min() & max() operators for any variable (check the doc, they accept also a second argument, you need to search a bit deeper but its descirbed in the help)
For fields: min(V,x) returns the "x" coordinate of the minimum of the V(x,y,z,t) field, this work for the space coordinates, but I have never really tried for the time coordinate "t".
Now if you have defined a varibale my_var(t) and the max(my_var,t) returns the value for t, and defined
my_var_max = max(my_var(t)),
then you can define a
my_temp_var = my_var(t)*(my_var(t)< my_var_max / 2)
and search the max below and above the t_at_my_var_max.
There must be an easier way ;) but I cannot really identify it like, that within COMSOL
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
Jul 12, 2012, 6:16 a.m. EDT
Hi
Thank you very much.
Melvin
Hi
Thank you very much.
Melvin