[TRNSYS-users] Potential Bugs with Type94a
Jeremy Osborne
jeremy.osborne at solem-consulting.com
Sun Apr 27 18:33:08 PDT 2014
HI Amir,
Yes, recompiling FORTRAN can seem daunting.
Some googling FORTRAN compilers will find some free version however I have not had much luck. There is the Intel Visual FORTRAN compiler however this is not free, though there is a few trial. There are good instructions for this in the Programmers Guide in the User Manual, see section 7.5.
https://software.intel.com/en-us/fortran-compilers
You can also program your own type from scratch and implement with a separate Dynamic Link Library (DLL) file using another programming language if you have access to that compiler. Do you have access to a C/C++ compiler? There may be a steep learning curve for this process through.
Best regards,
Jeremy
SOLEM Consulting Pty Ltd
Jeremy Osborne | Project Engineer BE
525 Harris St | SYDNEY NSW 2007| Australia
P: +61 2 8006 7355
M: +61 421 914 516
E: <mailto:jeremy.osborne at solem-consulting.com> jeremy.osborne at solem-consulting.com
W: <http://www.solem-consulting.com/> www.solem-consulting.com
Follow our useful updates: linkedin.com/company/solem-consulting <http://www.linkedin.com/company/solem-consulting>
Please consider the environment before printing this email
PLEASE NOTE
The information contained in this e-mail may be confidential or privileged. Any unauthorised use or disclosure is prohibited. If you have received this e-mail in error, please delete it immediately and notify the sender by return email. Thank you. To the extent permitted by law, Solem Consulting does not represent, warrant and/or guarantee the integrity of this communication has been maintained nor the communication is free of error, virus, interception or interference.
From: Amir Nashed [mailto:nashed.amir at gmail.com]
Sent: Saturday, 26 April 2014 4:08 PM
To: Jeremy Osborne
Cc: TRNSYS users mailing list at the Solar Energy Lab, UW-Madison
Subject: Re: [TRNSYS-users] Potential Bugs with Type94a
Hello Jeremy
Thank you for your reply.
That would be great. Just let me know at what time exactly we can meet.
I was actually trying to do that but it seems much more difficult than i expected as what i know about compiling FORTRAN scripts is the same as what i know about quantum physics i.e. almots nothing.
If you have time can you send me simple steps explaining how to compile the FORTRAN script after modifying it? And are you aware of a free FORTRAN compiler for windows 7?
I have actually tried to avoid type 194 as it is very complicated and it needs some parameters that are not easy to get. But i will have a look.
Thank you
Regards,
Amir
On Sat, Apr 26, 2014 at 10:03 AM, Jeremy Osborne <jeremy.osborne at solem-consulting.com <mailto:jeremy.osborne at solem-consulting.com> > wrote:
Hi Amir,
To follow up on David’s email. I will be out on your campus next week (likely Friday) for a training session. Potentially go through it is in person.
Interim solutions: Do you have a FORTRAN compiler? The developers are investigating a fix however I have found that being able edit the FORTRAN behind the type to make them suit your needs is very useful. You could update the FORTRAN and recompile yourself. See the programmers guide user manual. We could run through this next week if you’re not familiar.
Otherwise, have you looked at TYPE 194? Does this have the same errors?
Cheers,
Jeremy
SOLEM Consulting Pty Ltd
Jeremy Osborne | Project Engineer BE
525 Harris St | SYDNEY NSW 2007| Australia
P: +61 2 8006 7355 <tel:%2B61%202%208006%207355>
M: +61 421 914 516 <tel:%2B61%20421%20914%20516>
E: <mailto:jeremy.osborne at solem-consulting.com> jeremy.osborne at solem-consulting.com
W: <http://www.solem-consulting.com/> www.solem-consulting.com
Follow our useful updates: linkedin.com/company/solem-consulting <http://www.linkedin.com/company/solem-consulting>
Please consider the environment before printing this email
PLEASE NOTE
The information contained in this e-mail may be confidential or privileged. Any unauthorised use or disclosure is prohibited. If you have received this e-mail in error, please delete it immediately and notify the sender by return email. Thank you. To the extent permitted by law, Solem Consulting does not represent, warrant and/or guarantee the integrity of this communication has been maintained nor the communication is free of error, virus, interception or interference.
From: David BRADLEY [mailto:d.bradley at tess-inc.com <mailto:d.bradley at tess-inc.com> ]
Sent: Saturday, 26 April 2014 12:19 AM
To: TRNSYS users mailing list at the Solar Energy Lab, UW-Madison; nashed.amir at gmail.com <mailto:nashed.amir at gmail.com>
Subject: Re: [TRNSYS-users] Potential Bugs with Type94a
Amir,
Thank you for the detailed email. We are looking into Type94 and will let you know what we discover.
Best,
David
On 4/25/2014 00:12, Amir Nashed wrote:
Hello
I previously sent 2 emails regarding potential bugs in Type94a (PV 4 parameters model) and i can conclude the following:
1- The equation used to calculate the IAM has a wrong sign in the third term (should be -6.26E-6 rather than +6.26E-6) (this error actually in some cases made the IAM to be larger than 1 which is incorrect as far as I know)
2- The last term in the equation used to calculate the IAM in the manual is 1.4272E-8 while in the code is 1.472E-8
3- Different equations than those indicated in the manual are used to calculate the effective angle of sky diffuse and ground diffuse radiation
4- The variable SUNGND (surface ground diffuse radiation) is not calculated anywhere in the code and it is not one of the inputs
5- The reference efficiency EFFREF does not account for the module surface area so I believe it should equal: Vm*Im/SUNR*Area instead of Vm*Im/SUNR
6- Equation 5.2.5-21 used to calculate the cell temperature in the manual (page 74) I believe is incorrect [It should be UL*(Tc-Ta)=TAU_Alpha*Gt*(1-Eff/TAU_Alpha) thus Tc=Ta+ TAU_Alpha*Gt*(1-Eff/TAU_Alpha)/UL ] (The equation is however applied correctly in Type94 code script)
7- Finally, I found out why Type94a overestimates the IAM losses (when the option is activated). This is because the SUN variable, (Effective global tilted irradiance) is calculated after multiplying each irradiance component IAM multiplier (i.e. TADIR, TAGND, TADIFF) by TAMAX (TAU-ALPHA at normal incidence), which i believe is incorrect as the IL at reference conditions already includes the effect of TAU-ALPHA at normal incidence. This error is however corrected when the IAM mode is disabled where the SUN variable is not multiplied by TAMAX
could someone confirm the aforementioned bugs?
Thank you
Regards,
Amir
_______________________________________________
TRNSYS-users mailing list
TRNSYS-users at cae.wisc.edu <mailto:TRNSYS-users at cae.wisc.edu>
https://mailman.cae.wisc.edu/listinfo/trnsys-users
--
***************************
David BRADLEY
Principal
Thermal Energy Systems Specialists, LLC
22 North Carroll Street - suite 370
Madison, WI 53703 USA
P:+1.608.274.2577 <tel:%2B1.608.274.2577>
F:+1.608.278.1475 <tel:%2B1.608.278.1475>
d.bradley at tess-inc.com <mailto:d.bradley at tess-inc.com>
http://www.tess-inc.com
http://www.trnsys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20140428/5973b74b/attachment-0004.htm>
More information about the TRNSYS-users
mailing list