- Posts: 1
pySAM and SAM have different results in PV + BESS automatic dispatch
- Martin
- Topic Author
        Less
        More
        
            
    
        
            
        
                01 Jan 2023 13:50                #11790
        by Martin
    
    
 	
					
                                	
			
				    
            
            
            
            
            
                                
    
                                                
    
        pySAM and SAM have different results in PV + BESS automatic dispatch was created by Martin            
    
        Hello,
I was trying to export a SAM project of a PV plant with battery using the "Generate Code --> PYSAM JSON" option, and I realized that the same results are not obtained as in SAM (for example, in the total energy generated in year 1).
Reviewing I found that when using automatic dispatch in the battery the results obtained are different, but when using manual dispatch in SAM (and then export the code to pySAM) the same results are obtained.
I am attaching the pySAM file that I am using and the weather data file. I could not upload the SAM file because it is very large, but it can be downloaded from the following link: drive.google.com/file/d/1zh0gis26WC3k-yS6R1-Wxlj4fgQYrJX2/view?usp=sharing
Files being exported from SAM must be saved in a folder called "others" for the code to work, or change the path.
I look forward to your help or comments.
regards
Martin Ibarra
    I was trying to export a SAM project of a PV plant with battery using the "Generate Code --> PYSAM JSON" option, and I realized that the same results are not obtained as in SAM (for example, in the total energy generated in year 1).
Reviewing I found that when using automatic dispatch in the battery the results obtained are different, but when using manual dispatch in SAM (and then export the code to pySAM) the same results are obtained.
I am attaching the pySAM file that I am using and the weather data file. I could not upload the SAM file because it is very large, but it can be downloaded from the following link: drive.google.com/file/d/1zh0gis26WC3k-yS6R1-Wxlj4fgQYrJX2/view?usp=sharing
Files being exported from SAM must be saved in a folder called "others" for the code to work, or change the path.
I look forward to your help or comments.
regards
Martin Ibarra
Attachments:
            	      
												
            	
            	Please Log in or Create an account to join the conversation.
- Paul Gilman
        Less
        More
        
            
    
        - Posts: 5665
            
        
                20 Jan 2023 16:43                #11854
        by Paul Gilman
    
    
 	
					
                    	
            			
							    
            
            
            
            
            
                                
    
                                                
    
        Replied by Paul Gilman on topic pySAM and SAM have different results in PV + BESS automatic dispatch            
    
    Please Log in or Create an account to join the conversation.
        Moderators: Paul Gilman    
 
  
 















