Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Full width at half maximum plot

Please login with a confirmed email address before reporting spam

I am new to comsol and I am using 4.3. I would like to know how to mark the maximum value and half maximum along the y axis in a line graph. I would also like to draw the full width at half maximum. I would also want to extract the three and develop a table. I have attached the required file.Could anyone help me? Please!


2 Replies Last Post 12 juil. 2012, 06:16 UTC−4
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 26 juin 2012, 15:19 UTC−4
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 12 juil. 2012, 06:16 UTC−4
Hi

Thank you very much.

Melvin
Hi Thank you very much. Melvin

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.