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                            
                            
                                14.03.2011, 08:03 GMT-4                            
                        
                        
                                                    Hi
In the definition node you define an "operator" that applies to something you define elsewhere. In the definition you only specify entities where it applies and integration information (this is different from v3.5 now its a two step operation, and you first define an operator then afterwards the variable(s) even several with the same operator)
In your case you need to define a global (or model or entity local) variable E = intop1(spf.U^2) or whatever you want in there.
Note: in 2D-axi you might want to add the 2*pi*r to integrate over the volume, all depends on what you want to do, or you want to multiply by the entity density, in which case DO IT INSIDE THE INTEGRATION () because your density is not really uniquely define outside an entity scope, as it might change from entity to entity
The result is a scalar, for a transient analysis or a parametric sweep it becomes a vector, you need to select "at()" which time you want the output via the general time/parameter selection tab in the results window
--
Good luck
Ivar                                                
                                                
                            Hi
In the definition node you define an "operator" that applies to something you define elsewhere. In the definition you only specify entities where it applies and integration information (this is different from v3.5 now its a two step operation, and you first define an operator then afterwards the variable(s) even several with the same operator)
In your case you need to define a global (or model or entity local) variable E = intop1(spf.U^2) or whatever you want in there.
Note: in 2D-axi you might want to add the 2*pi*r to integrate over the volume, all depends on what you want to do, or you want to multiply by the entity density, in which case DO IT INSIDE THE INTEGRATION () because your density is not really uniquely define outside an entity scope, as it might change from entity to entity
The result is a scalar, for a transient analysis or a parametric sweep it becomes a vector, you need to select "at()" which time you want the output via the general time/parameter selection tab in the results window
--
Good luck
Ivar                        
                                                
                                                                                                            
                                             
                    
                    
                        
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                14.03.2011, 08:20 GMT-4                            
                        
                        
                                                    Many thanks. All clear now.
Leon                                                
                                                
                            Many thanks. All clear now.
Leon                        
                                                
                                                                                                            
                                             
                    
                    
                        
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                28.03.2012, 05:40 GMT-4                            
                        
                        
                                                    Hi.
I have a somewhat related problem:
on a whole 3D (x, y, z) domain, I want to define a value f(x)=integral over y and z of k(x,y,z)
With k beeing my turbulent cinetic energy.
How can I do this?                                                
                                                
                            Hi.
I have a somewhat related problem:
on a whole 3D (x, y, z) domain, I want to define a value f(x)=integral over y and z of k(x,y,z)
With k beeing my turbulent cinetic energy.
How can I do this?                        
                                                
                                                                                                            
                                             
                    
                    
                        
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                03.01.2013, 04:04 GMT-5                            
                        
                        
                                                    Hello,
I am using one integration coupling variable in my problem that couples General form PDE with solid mechanics module.  When I select "Integration" as the method for this coupling variable, the problem hits the maximum memory (around 20GB) and ends the solution with an "out of memory" error.  However, when I select "Summation over nodes" as the method, the solution works with around 1.5GB memory.  Do you have any explanation for this difference?                                                
                                                
                            Hello,
I am using one integration coupling variable in my problem that couples General form PDE with solid mechanics module.  When I select "Integration" as the method for this coupling variable, the problem hits the maximum memory (around 20GB) and ends the solution with an "out of memory" error.  However, when I select "Summation over nodes" as the method, the solution works with around 1.5GB memory.  Do you have any explanation for this difference?                        
                                                
                                                                                                            
                                             
                    
                    
                        
                            
                                                                                        
                                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                            
                            
                                03.01.2013, 05:28 GMT-5                            
                        
                        
                                                    Hi
that can also depend on what expression you use in your variable based on the integration you defined. 
Normally COMSOL takes care itself to use the "right one" but if you mix a "summation" internal variable and an "integration" one, COMSOL might get fooled
--
Good luck
Ivar                                                
                                                
                            Hi
that can also depend on what expression you use in your variable based on the integration you defined. 
Normally COMSOL takes care itself to use the "right one" but if you mix a "summation" internal variable and an "integration" one, COMSOL might get fooled
--
Good luck
Ivar                        
                                                
                                                                                                            
                                             
                    
                    
                        
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                03.01.2013, 05:57 GMT-5                            
                        
                        
                                                    hello,
The expressions are the same.  I only changed the method.  The method "summation over nodes" worked well while the method "integration" crashed.  
Thank you,
Onur S. Aslan                                                
                                                
                            hello,
The expressions are the same.  I only changed the method.  The method "summation over nodes" worked well while the method "integration" crashed.  
Thank you,
Onur S. Aslan                        
                                                
                                                                                                            
                                             
                    
                    
    
                        
                            
                                                                                        
                                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                            
                            
                                03.01.2013, 06:05 GMT-5                            
                        
                        
                                                    Hi
Indeed but what are you expressions ? 
as some of the internal COMSOL variables require "summation over nodes" (mainly reaction forces variables), other use the interpolated "integration" way, and if you mix both type of variables in an expression I'm not what COMSOL tries out ;)
check the doc for the given variables
And check also the units, summation and integration dos not have the same effect here
sometimes it could be also a frame issue, but normally the default settings are OK
--
Good luck
Ivar                                                
                                                
                            Hi
Indeed but what are you expressions ? 
as some of the internal COMSOL variables require "summation over nodes" (mainly reaction forces variables), other use the interpolated "integration" way, and if you mix both type of variables in an expression I'm not what COMSOL tries out ;)
check the doc for the given variables
And check also the units, summation and integration dos not have the same effect here
sometimes it could be also a frame issue, but normally the default settings are OK
--
Good luck
Ivar