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:
                            
                                7 years ago                            
                            
                                19 juil. 2018, 11:41 UTC−4                            
                        
                        
                                                    Hi
I believe its possible, but you must distinguish correctly what kind of variable: 
* global scalar, or global time dependent, or
* a field depending on (x,y,z) or even (x,y,z,t).
For the first one if you define it under the Global or Component Local "Definition" node based on a study case it can be called up from a different Component by using the full name "root.var1.MyVar" or "comp1.var2.MyVar" provided the first solution exist and is solved.
If it's a field depending on (x,y,z) you have the issue that you must also map the comp1.(x,y,z) to the appropriate comp2.(x.y.z) to get a match for the spatial variables, this might be done with the component "Couplings and Coupling Operators" (note also the issue with the potential use of the nojac() operator).
And for a time series you must ensure that your "t" time variable is defined correctly between the two studies, or use some of the operators such as the "at()" , "with()" ,  "witsol()" .
Some of these operators might only be used for postprocessing. Check the doc, there are many ways but also some issues here.
Be careful though, if you have only ONE component "comp1." and different studies therein "std1 , std2 ..." , your local defined variables "comp1.var2.MyVar" will be recalculated "per study" and you are not linking the studies.
God luck
Ivar
    -------------------
    Have fun COMSOLing,
Sincerely,  
Ivar                                                
 
                                                
                            Hi 
I believe its possible, but you must distinguish correctly what kind of variable: 
* global scalar, or global time dependent, or
* a field depending on (x,y,z) or even (x,y,z,t). 
For the first one if you define it under the Global or Component Local "Definition" node based on a study case it can be called up from a different Component by using the full name "root.var1.MyVar" or "comp1.var2.MyVar" provided the first solution exist and is solved.
If it's a field depending on (x,y,z) you have the issue that you must also map the comp1.(x,y,z) to the appropriate comp2.(x.y.z) to get a match for the spatial variables, this might be done with the component "Couplings and Coupling Operators" (note also the issue with the potential use of the nojac() operator).
And for a time series you must ensure that your "t" time variable is defined correctly between the two studies, or use some of the operators such as the "at()" , "with()" ,  "witsol()" .
Some of these operators might only be used for postprocessing. Check the doc, there are many ways but also some issues here.
Be careful though, if you have only ONE component "comp1." and different studies therein "std1 , std2 ..." , your local defined variables "comp1.var2.MyVar" will be recalculated "per study" and you are not linking the studies.
God luck
Ivar                        
                                                
                                                                                                            
                                             
                        
                        
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                7 years ago                            
                            
                                19 juil. 2018, 21:34 UTC−4                            
                        
                        
                                                    Hi Ivar,
Thank you, this helped a lot.
Best, Henry
                                                 
                                                
                            Hi Ivar,
Thank you, this helped a lot.
Best, Henry