Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add resistor's parameters tc1 and tc2 to ngspice #434

Merged
merged 1 commit into from
Jan 6, 2024

Conversation

Radvall
Copy link
Contributor

@Radvall Radvall commented Jan 5, 2024

I noticed that some people find it more convenient to change the parameters of passive components (resistor, capacitor, inductor) in the window 'Edit Component Properties', rather than using red components and specifying parameters in text.

I did some research on what parameters of passive blue components are supported to work with ngspice:

capacitor:

Parameter ngspice
capacitance in Farad (C)
initial voltage for transient simulation (V)

inductor:

Parameter ngspice
inductance in Henry (L)
initial current for transient simulation (I)

resistor:

Parameter ngspice
ohmic resistance in Ohms (R)
simulation temperature in degree Celsius (Temp)
first order temperature coefficient (Tc1)
second order temperature coefficient (Tc2)
temperature at which parameters were extracted (Tnom)

Inductor with Q

Parameter ngspice
Inductance (L)
Quality factor (Q)
Frequency at which Q is measured (f)
Q frequency profile (Mode)
simulation temperature in degree Celsius (Temp)

Capacitor with Q

Parameter ngspice
Capacitance (C)
Quality factor (Q)
Frequency at which Q is measured (f)
Q frequency profile (Mode)
simulation temperature in degree Celsius (Temp)

Thus since most of parameters for inductor and capacitor are supported, then they should also supported for the resistor, which is not true.

And although this has already been discussed in the #193 I decided to add parsing temperature parameters for resistor. Also I added a comment 'Qucsator only' in the parameter Description for parameters that are ignored by Ngspice.

Simulation results for blue and red resistors are shown bellow:

temp_res

@ra3xdh ra3xdh added this to the 24.1.0 milestone Jan 6, 2024
@ra3xdh
Copy link
Owner

ra3xdh commented Jan 6, 2024

Thanks for the contribution! Merged.

@ra3xdh ra3xdh merged commit ef5cb8e into ra3xdh:current Jan 6, 2024
2 checks passed
@Radvall Radvall deleted the add_temp_parameters branch January 6, 2024 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants