I have subcircuits of a solar cell (resistors and diodes) in LTSPICE. I want to connect the solar cells (sub-circuits) together. However, each solar cell has a different temperature. I can set the temperature of the program with .Temp
but how can I change the temperature of each sub-circuit separately.
\$\begingroup\$
\$\endgroup\$
Add a comment
|
1 Answer
\$\begingroup\$
\$\endgroup\$
4
There are a few ways.
You can add it to the actual model you are using as a final parameter or use the component dialog box:
To get this dialog for anything that has a .model statement, use CTRL + right click.
If you are adding the temperature command within the SPICE listing, it needs the format of "temp=xx"; no dot required. The listing you show has omitted the '='.
-
\$\begingroup\$ Dear Peter, thank you for your answer. I tried this method but it does not work (why?). I have uploaded the picture of the circuit and netlist in addition to the change you mentioned. Since I have diodes in my model, by changing the temperature, I expect to have reduction in my open-circuit voltage. However, the open-circuit voltage does not change. Is there any mistakes there? I add the code picture to the main question. Greets and thanks in advance \$\endgroup\$– HamedCommented Apr 18, 2016 at 12:16
-
\$\begingroup\$ The answer has been updated with the required syntax for embedding within a .subckt statement. \$\endgroup\$ Commented Apr 18, 2016 at 12:46
-
\$\begingroup\$ Dear Peter thanks for your answer. The .temp command is for the total circuit and the dialog that you see beside the commands is for the sub-circuit. I have written it without dot (.). \$\endgroup\$– HamedCommented Apr 18, 2016 at 13:19
-
\$\begingroup\$ Even without using .temp command, the results do not change. \$\endgroup\$– HamedCommented Apr 19, 2016 at 11:21