-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.html
72 lines (57 loc) · 4 KB
/
README.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html>
<body>
<h1 id="photovoltaic-solar-cell-two-diode-model">Photovoltaic Solar Cell Two-Diode Model</h1>
<p>Code written by:<br />Prof. Sidi HAMADY<br />
Université de Lorraine, France<br />
<p>See Copyright Notice in COPYRIGHT</p>
<h2 id="presentation-and-requirements">Presentation and Requirements</h2>
<p>Photovoltaic-Model calculates the current-voltage characteristic of a solar cell using the two-diode model, with a possibility to fit an experimental characteristic to get short-circuit current, diodes parameters (reverse saturation current and ideality factor), series and parallel resistances.</p>
<p><img src="pvmodel.png" alt="Photovoltaic Two-Diode Model"></p>
<p>To install Photovoltaic-Model:<br />just download it:<br />
from github: <a href="https://github.com/sidihamady/Photovoltaic-Model">https://github.com/sidihamady/Photovoltaic-Model</a><br />
or from my website: <a href="http://www.hamady.org/photovoltaics/PhotovoltaicModel.zip">http://www.hamady.org/photovoltaics/PhotovoltaicModel.zip</a><br />
unzip and use.</p>
<p>The distribution mainly includes: </p>
<p>Two main Python files: </p>
<ul>
<li><a href="PhotovoltaicModelCore.py">PhotovoltaicModelCore.py</a> implementing the program core functionality in the module classes, with a simple and easy-to-use graphical user interface. </li>
<li><a href="PhotovoltaicModel.py">PhotovoltaicModel.py</a> implementing the program interface. </li>
</ul>
<p>It is not necessary to know the Python language to use the program.</p>
<p>The basic requirements are found in any Linux distribution (and easily installed for Windows):</p>
<ul>
<li>Python version 2.7.x or later</li>
<li>numpy version 1.5 or later</li>
<li>scipy version 0.13.1 or later</li>
<li>matplotlib version 1.3.x or later</li>
<li>tkinter 8.5 or later</li>
<li>setuptools</li>
</ul>
<p>PS: for Windows, you can download a complete Python distribution from <a href="https://www.anaconda.com/distribution/">https://www.anaconda.com/distribution/</a></p>
or the vanilla Python (<a href="https://www.python.org/downloads/windows/">https://www.python.org/downloads/windows/</a>) and install all required modules:
<p>python -m pip install -U matplotlib numpy scipy setuptools</p>
<h2 id="howto">HowTo</h2>
<p>Start <a href="PhotovoltaicModel.py">PhotovoltaicModel.py</a> interface: </p>
<p>from the command line prompt:<br />under Linux:</p>
<pre><code><span class="hljs-keyword">cd</span> /path/<span class="hljs-keyword">to</span>/PhotovoltaicModel/
<span class="hljs-keyword">python</span> -<span class="hljs-keyword">u</span> PhotovoltaicModel.<span class="hljs-keyword">py</span>
</code></pre><p>under Windows (in the command prompt):</p>
<pre><code><span class="hljs-keyword">cd</span> C:\path\<span class="hljs-keyword">to</span>\PhotovoltaicModel\
<span class="hljs-keyword">python</span>.<span class="hljs-keyword">exe</span> -<span class="hljs-keyword">u</span> PhotovoltaicModel.<span class="hljs-keyword">py</span>
</code></pre><p>You have to add python to your PATH. </p>
<p>You can also execute <a href="PhotovoltaicModel.py">PhotovoltaicModel.py</a> by double clicking on it (depending on the operating system settings), or from within your editor, if possible.</p>
<p>In the graphical interface, change the parameters you want and press 'Calculate'.</p>
<p><img src="screenshot.png" alt="Photovoltaic Two-Diode Model"></p>
<p>To fit experimental current-voltage characteristic, load the file and press 'Fit'.<br />
The file format consists of two columns (voltage in V and current in A) separated by tabulation:<br />
0.00 -20.035e-3<br />
0.05 -20.035e-3<br />
...<br />
0.55 -1.5e-8
<br />The first two lines and lines beginning with a hash are ignored.
<br />Of course, the fitting algorithm converges faster if provided with good initial guess for the parameters.
<br />You can restart fitting as many times as necessary to reach the desired accuracy.</p>
</body>
</html>