Panel Efficiency Variation With Temperature : Results


[insert_php]
$message=””;
echo $message;
if((isset($_POST[‘panel_efficiency’]))&&(isset($_POST[‘temperature’]))) {

if((!empty($_POST[‘panel_efficiency’]))&&($_POST[‘temperature’])) {
$servername = ‘localhost’;
$username = ‘solarman_cal’;
$password = ‘mv)f848R4h~&’;
$dbname = ‘solarman_tools’;
// Create connection

$conn = mysql_connect($servername, $username, $password) or die(“Unable to connect to MySQL”);
mysql_select_db($dbname, $conn );

$I1 = $_POST[“panel_efficiency”];
$I2 = $_POST[“temperature”];
$I3 = $I2 + 20;
$ip = $_SERVER[‘REMOTE_ADDR’];
$date= date(‘Y-m-d’);

$sql = “INSERT INTO `efficiency_temp` (`panel_efficiency`, `temperature`, `date`, `ip`) VALUES (‘$I1′,’$I2′,’$date’, ‘$ip’)”;
if (mysql_query($sql) === TRUE) {

} else {
echo “Error: ” .mysql_error() . “
“;
}
mysql_close($conn);

$answer=($I1-((($I3-25)*0.45*$I1)/100));
echo “

Inputs

Panel efficiency at STC (25 oC):

$I1 %

Usual temperature in your region :

$I2 oC

Results

Panel efficiency at given temperature ($I2 oC): $answer %

Assumptions
  • Calculation assumes a temperature coefficient of -0.45%/oC. Please check the manufacturer’s datasheet for actual thermal coefficient.
  • Panel temperature developed will be usually 20 oC above ambient temperature.

Looking to own customized calculators?

Talk to ramya@solarmango.com

“;

}
else{

echo “

To view results, please fill all the fields correctly

“;
}
}
[/insert_php]