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.06.2012, 15:19 GMT-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.07.2012, 06:16 GMT-4                            
                        
                        
                                                    Hi
Thank you very much. 
Melvin                                                
                                                
                            Hi
Thank you very much. 
Melvin