- Posts: 7
About turbine selection usign LK code
- Ivan
- Topic Author
        Less
        More
        
            
    
        
            
        
                24 Aug 2022 11:08                #11382
        by Ivan
    
    
 	
					
                                	
			
				    
            
            
            
            
            
                                
    
                                                
    
        About turbine selection usign LK code was created by Ivan            
    
        Hi,
I am trying my own parametric simulations usign LK code.
I am wokring with two turbines: 'Mitsubishi MWT 1000' and 'Vestas 164 8mW' and simulating a wind farm of 16 MW.
I have a problem when my LK code is trying to set turbine selection: set('wind_turbine_selection', nameturbine);
Always it displays a error message box (see picture attached).
It means that Vestas turbine is not used and Mitsubishi turbine is still active.
¿How can I fix it?
My code:
set('desired_farm_size',16000);
MyTurbine[0]='Mitsubishi MWT 1000.;
MyTurbine[1]='Vestas 164 8mW';
...
set('wind_turbine_selection',MyTurbine[0]);
...
set('wind_turbine_selection',MyTurbine[1]); // **(Error message here)**
    
    I am trying my own parametric simulations usign LK code.
I am wokring with two turbines: 'Mitsubishi MWT 1000' and 'Vestas 164 8mW' and simulating a wind farm of 16 MW.
I have a problem when my LK code is trying to set turbine selection: set('wind_turbine_selection', nameturbine);
Always it displays a error message box (see picture attached).
It means that Vestas turbine is not used and Mitsubishi turbine is still active.
¿How can I fix it?
My code:
set('desired_farm_size',16000);
MyTurbine[0]='Mitsubishi MWT 1000.;
MyTurbine[1]='Vestas 164 8mW';
...
set('wind_turbine_selection',MyTurbine[0]);
...
set('wind_turbine_selection',MyTurbine[1]); // **(Error message here)**
Attachments:
            	      
												
            	
            	Please Log in or Create an account to join the conversation.
- Paul Gilman
        Less
        More
        
            
    
        - Posts: 5665
            
        
                24 Aug 2022 12:40         -  24 Aug 2022 12:40        #11384
        by Paul Gilman
    
    
    
            
            
            
            
                                
    
                                                
    
        Replied by Paul Gilman on topic About turbine selection usign LK code            
    
        Hi Ivan,
Some of the turbine names in the library have a space after the name. For the Vestas turbine in your list, try using:
We will fix this for the Fall 2022 release: github.com/NREL/SAM/issues/1138
Best regards,
Paul.
    Some of the turbine names in the library have a space after the name. For the Vestas turbine in your list, try using:
Code:
MyTurbine[1]='Vestas 164 8mW '; //space between 'W' and end quote
We will fix this for the Fall 2022 release: github.com/NREL/SAM/issues/1138
Best regards,
Paul.
        Last edit: 24 Aug 2022 12:40  by Paul Gilman.            
            Please Log in or Create an account to join the conversation.
        Moderators: Paul Gilman    
 
  
 















