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

Loudspeaker resistor value not generated in netlist (gnucap tested) #246

Closed
be1 opened this issue Oct 25, 2020 · 4 comments
Closed

Loudspeaker resistor value not generated in netlist (gnucap tested) #246

be1 opened this issue Oct 25, 2020 · 4 comments

Comments

@be1
Copy link
Contributor

be1 commented Oct 25, 2020

Steps to reproduce

  1. Configure oregano for GnuCAP
  2. Open the proof oregano file given in speaker.zip archive
  3. Go to menus and display netlist

Expected behaviour

R_L1 (speaker) line should be : R_L1 1 0 8 ohm

Actual behaviour

R_L1 line is R_L1 1 0 (missing 8 ohm)

Configuration

Ubuntu GNU/Linux 20.10:

PRETTY_NAME="Ubuntu 20.10"

Versions

Oregano 0.84.41
gnucap         1:0.36~20171003-1build2
no ngspice present
@drahnr
Copy link
Owner

drahnr commented Oct 30, 2020

@be1 thanks for reporting, unfortunately I won't have any capacity for oregano anymore these days ( see #161 ) but I'd be happy to guide you through the source if you want to tackle it yourself!

@be1
Copy link
Contributor Author

be1 commented Oct 30, 2020

@drahnr thanks for your reply. I'll see if I can fix the code, on this week-end.

@be1
Copy link
Contributor Author

be1 commented Oct 31, 2020

I think I found the bug in the xml libary. But this leads to another issue: the speaker model. Indeed, a speaker is in fact not a resistor, neither an inductor, neither the combination of the two. Because of the mechanical parts, It's more or less a combination of a R-L and a R-L-C networks, the first in series, and the second in parrallel. But even that model is wrong because the R-L part is not a good model. manufacturers use this as a starting point to design their crossover filters and adjust it after crossover application measures.

I suggest anyway to use R as the model for the speaker, because speaker manufacturer does not give the R-L/R-L-C specifications. Are you okay with that ? For people having a good knowledge of it, they can themselves create a compound of R-L / R-L-C if they want their own description of their loudspeaker.

@be1
Copy link
Contributor Author

be1 commented Oct 31, 2020

The generated netlist is now correct. See attachement oregano file.
speaker.zip

@drahnr drahnr closed this as completed in 5411dff Nov 1, 2020
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

No branches or pull requests

2 participants