Lars Gregersen
                                                                                                                                                    COMSOL Employee
                                                         
                            
                                                                                                                                                
                         
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                9 years ago                            
                            
                                2016年6月23日 GMT+8 17:25                            
                        
                        
                                                    Hi John
Please send your model to support where someone will have a look.
I received an error when I tried to compact my Comsol file
Syntax error in expression
- Expression: SpaceCharge(root.x[[um]],root.y[[um]])
- Subexpression: [[um]],root
- Position: 19
I cannot understand where the error is coming from. SpaceCharge is an interpolation function.
--
Lars Gregersen
Comsol Denmark                                                
                            Hi John
Please send your model to support where someone will have a look.
[QUOTE]
I received an error when I tried to compact my Comsol file
Syntax error in expression
- Expression: SpaceCharge(root.x[[um]],root.y[[um]])
- Subexpression: [[um]],root
- Position: 19
I cannot understand where the error is coming from. SpaceCharge is an interpolation function.
[/QUOTE]
--
Lars Gregersen
Comsol Denmark                        
                                                
                                                                                                            
                                             
                                            
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                9 years ago                            
                            
                                2016年6月23日 GMT+8 21:54                            
                        
                        
                                                    I have attached the model.                                                
                                                
                            I have attached the model.                        
                                                
                        
                                                
                                                                                                            
                                             
                        
                        
                            
                                                                                        
                                Daniel Smith
                                                                                                                                                    COMSOL Employee
                                                         
                            
                                                                                                                                                
                         
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                9 years ago                            
                            
                                2016年6月23日 GMT+8 22:45                            
                        
                        
                                                    Hi John, the problem seems to be with the disabled "2DPlot Group 1" feature under Results. In the "Surface 1" plot, the expression is set to SpaceCharge(root.x[[um]],root.y[[um]]). COMSOL can't interpret the double square brackets when compacting history. To fix the problem, simply replace the expression with SpaceCharge(root.x[um],root.y[um]). You should be able to compact history after making this change.
Dan                                                
                                                
                            Hi John, the problem seems to be with the disabled "2DPlot Group 1" feature under Results. In the "Surface 1" plot, the expression is set to SpaceCharge(root.x[[um]],root.y[[um]]). COMSOL can't interpret the double square brackets when compacting history. To fix the problem, simply replace the expression with SpaceCharge(root.x[um],root.y[um]). You should be able to compact history after making this change.
Dan