Author Topic: LTspice24 - importing the A_Bordodynov's lib and examples  (Read 10354 times)

0 Members and 1 Guest are viewing this topic.

Offline iMoTopic starter

  • Super Contributor
  • ***
  • Posts: 5661
  • Country: gw
LTspice24 - importing the A_Bordodynov's lib and examples
« on: February 27, 2024, 09:07:43 am »
I've tried this and it seems it works (do it at your own risk, do backup your libraries and data before).
1. download the AB library, close the LTspice24
2. go to C:\Users\JohnSmith\AppData\Local\LTspice where you find the "lib" folder
3. delete the "lib" folder and replace it with the downloaded "lib" folder
4. fire up the LTSpice24, and do update the components with "Tools->Update components" (it returns the original components)
5. restart LTspice24 (!), you should see the ZZZ folder with AB's components as well as all original stuff when adding a component..

Adding the AB's "Examples": simply copy the examples from AB library into the "examples" folder (the same path as in 2).
You have to rename AB's "Educational" to say "EducationalAB" before copying.
« Last Edit: February 27, 2024, 09:18:53 am by iMo »
Readers discretion is advised..
 
The following users thanked this post: mc172, schmitt trigger

Offline RoGeorge

  • Super Contributor
  • ***
  • Posts: 7160
  • Country: ro
Re: LTspice24 - importing the A_Bordodynov's lib and examples
« Reply #1 on: February 27, 2024, 09:31:51 am »
I usually copy external libs in the same directory with the .asc file, so everything is self contain.  Sometimes I only copy the needed component model + symbol, they are all plain text.  This also solves the problem of same component name with more than one model.  For local libs, the filename has to be added in the schematic as a SPICE directive:  .include somemodel.lib.  This also informs what models are not from the default libs, which is good to know.

Keeping all the needed files together with the .asc makes it easier to zip the entire project then share it with everything that is needed to run, plus I don't risk to break older projects after an OS reinstall.  Otherwise you'll have to keep a list with what extra libs were installed, and from where.

I don't mind the duplicated libs or models across many projects, they are very small, usually less than 1MB for entire libs, or less than 1kB for individual models or symbols.
 
The following users thanked this post: nez

Offline andrewsh

  • Newbie
  • Posts: 5
  • Country: hk
Re: LTspice24 - importing the A_Bordodynov's lib and examples
« Reply #2 on: March 24, 2024, 02:43:49 pm »
Hi! Can I know how to find my pole capacitor and zero resistor by AC open-loop. The stability : AC open-loop Bode plot has at least 45 degrees of phase margin at both 1% and 100% of the assigned Maximum Load Current.

I don't know how to get C3, C4 and R4.  :palm:

Thank you so much!

 |O |O |O |O |O |O
 

Offline schmitt trigger

  • Super Contributor
  • ***
  • Posts: 2495
  • Country: mx
Re: LTspice24 - importing the A_Bordodynov's lib and examples
« Reply #3 on: March 24, 2024, 03:20:36 pm »
Subscribing to thread, thanks for posting.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 20630
  • Country: gb
  • 0999
Re: LTspice24 - importing the A_Bordodynov's lib and examples
« Reply #4 on: December 26, 2024, 01:14:18 pm »
If your want to post your .asc files here, or any other forum, then I wouldn't recommend replacing the existing LIB directory.

If you want to add new models, not found in the default install, then I suggest putting them in a new folder. Then you know the part you've used isn't included in the default install and can include the symbol and model in a zip file.

Posting .asc files here, with no models and symbols, is pointless. I find it very frustrating.

I prefer to paste any models into the .asc file, rather than zip, which some people might be hesitant about opening.
 

Offline iMoTopic starter

  • Super Contributor
  • ***
  • Posts: 5661
  • Country: gw
Re: LTspice24 - importing the A_Bordodynov's lib and examples
« Reply #5 on: December 26, 2024, 01:31:28 pm »
If your want to post your .asc files here, or any other forum, then I wouldn't recommend replacing the existing LIB directory.

If you want to add new models, not found in the default install, then I suggest putting them in a new folder. Then you know the part you've used isn't included in the default install and can include the symbol and model in a zip file.

Posting .asc files here, with no models and symbols, is pointless. I find it very frustrating.

I prefer to paste any models into the .asc file, rather than zip, which some people might be hesitant about opening.

There is none LIB directory replaced.
Read the guide..
Readers discretion is advised..
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 20630
  • Country: gb
  • 0999
Re: LTspice24 - importing the A_Bordodynov's lib and examples
« Reply #6 on: December 26, 2024, 02:03:16 pm »
If your want to post your .asc files here, or any other forum, then I wouldn't recommend replacing the existing LIB directory.

If you want to add new models, not found in the default install, then I suggest putting them in a new folder. Then you know the part you've used isn't included in the default install and can include the symbol and model in a zip file.

Posting .asc files here, with no models and symbols, is pointless. I find it very frustrating.

I prefer to paste any models into the .asc file, rather than zip, which some people might be hesitant about opening.

There is none LIB directory replaced.
Read the guide..
I did. #3 says "delete the "lib" folder and replace it with the downloaded "lib" folder". If you do that, then the parts in your installation will be replaced with the ones you've just downloaded.
 

Offline iMoTopic starter

  • Super Contributor
  • ***
  • Posts: 5661
  • Country: gw
Re: LTspice24 - importing the A_Bordodynov's lib and examples
« Reply #7 on: December 26, 2024, 02:16:24 pm »
Yep, but the point 4 says the LTspice will install all its original libs back (the original LTspice's libs) over the new AB lib.
So you will find there the new AB lib and all original LTspice libs in the point 5.

The "original" means the libs which LTspice will download in the point 4 (it downloads and installs complete libs setup properly again, as it does in the original vanilla install, with new component updates as well, if any).

Look into the directories there and you will see the simple "copy paste" of the new AB lib into the existing original lib structures would not be an easy exercise.

The user stuff is stored in

C:\users\<username>\Documents\LTspice

afaik..

PS: the new LTspice's component "updates" will not mess up the added AB lib..

« Last Edit: December 26, 2024, 02:47:11 pm by iMo »
Readers discretion is advised..
 

Offline iMoTopic starter

  • Super Contributor
  • ***
  • Posts: 5661
  • Country: gw
Re: LTspice24 - importing the A_Bordodynov's lib and examples
« Reply #8 on: January 05, 2025, 11:30:09 am »
Here is my above text with some minor edits to be more explicit after some discussions:

Quote
I've tried this and it seems it works (do it at your own risk, do backup your libraries and data before).
1. download the AB's [aka A_Bordodynov] library "lib" and unzip it, close the LTspice24
2. go to C:\Users\JohnSmith\AppData\Local\LTspice where you find the original "lib" folder
3. delete the original "lib" folder and replace it with the downloaded AB's "lib" folder
4. fire up the LTSpice24, and do the update of the components with "Tools->Update components" (it restores all the original LTspice's components properly inside the "lib" structures)
5. restart the LTspice24 (!), you should see the ZZZ folder there with all the AB's subdirectories and components, as well as all the original LTspice stuff when adding a component..

Adding the AB's "examples" library: simply copy the content of the "examples" folder from AB's "examples" zip library into the existing original "examples" folder in the same path as in the point 2 above.
You have to rename the AB's "Educational" folder (which sits inside the AB's "examples") to say "EducationalAB" before copying.
« Last Edit: January 05, 2025, 11:34:49 am by iMo »
Readers discretion is advised..
 

Offline mikerj

  • Super Contributor
  • ***
  • Posts: 3424
  • Country: gb
Re: LTspice24 - importing the A_Bordodynov's lib and examples
« Reply #9 on: January 05, 2025, 01:34:16 pm »
I don't mind the duplicated libs or models across many projects, they are very small, usually less than 1MB for entire libs, or less than 1kB for individual models or symbols.

This can get very messy when you end up with multiple versions of the same spice model.  I only do this if I need to share it with other people, or if comparing different versions of spice models.
 

Offline RoGeorge

  • Super Contributor
  • ***
  • Posts: 7160
  • Country: ro
Re: LTspice24 - importing the A_Bordodynov's lib and examples
« Reply #10 on: January 05, 2025, 02:17:52 pm »
Who cares what model was used in some other project, or if that model is unique or not?  The risk to not have that model at all some years later (deleted because of LTspice upgrades), or the risk of a silently upgraded model such that the "improved" one will now give different results in former saved projects would be a nightmare to maintain across the years.

Disk space is cheap, and the backup does deduplication anyway.

What matters is to have self-contained projects, and reproducible results when returning to a project from years ago.

Offline mikerj

  • Super Contributor
  • ***
  • Posts: 3424
  • Country: gb
Re: LTspice24 - importing the A_Bordodynov's lib and examples
« Reply #11 on: January 06, 2025, 12:10:29 pm »
Who cares what model was used in some other project, or if that model is unique or not?

Anyone concerned about repeatability would care.  When start a new design using a part you have dozens of copies Spice models for, which one do you choose?  Or do you download yet another copy?
 

Offline mc172

  • Frequent Contributor
  • **
  • Posts: 490
  • Country: gb
Re: LTspice24 - importing the A_Bordodynov's lib and examples
« Reply #12 on: January 06, 2025, 01:36:32 pm »
Subscribing, thanks!
 

Offline RoGeorge

  • Super Contributor
  • ***
  • Posts: 7160
  • Country: ro
Re: LTspice24 - importing the A_Bordodynov's lib and examples
« Reply #13 on: January 06, 2025, 01:41:45 pm »
When start a new design using a part you have dozens of copies Spice models for, which one do you choose?  Or do you download yet another copy?

It depends, but I sense the questions are rhetorical, so won't go into details.  I have a local repository from where I usually checkout the models into new projects.  I prefer to keep a local model copy with the project.  Also it happens sometimes to modify existing models, or to build my own models, and so on.

Each uses own way of organizing files.  To me, the most important is for project to be self-contained, and to be able to open them later.

I prefer the models to stay together with the project, because I have projects that sometimes span over many years.

For example, some SPICE project I have are in PSpice, from when LTspice was not yet a thing.  I might still have a few SPICE projects that are even older, from the era of PDP-11, when there was no GUI, no IBM-PC, no Windows and no Internet.  The schematic was typed as a network of nodes, and the simulation results were plotted with 'x' and 'o' letters on tractor-feed continuous paper, on a printer that was hammering the letter like a typewriter, fun times.  :)

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 20630
  • Country: gb
  • 0999
Re: LTspice24 - importing the A_Bordodynov's lib and examples
« Reply #14 on: January 06, 2025, 06:47:13 pm »
Models vary from supplier to supplier. Some are more accurate/honest than others. This is also true with user made models. There are also models optimised to accurately simulate certain device characteristics: noise, distortion, phase margin/stability, transient response etc.

If you want to keep using the same model for a certain project, then either put the .sub/.mod in the same directory or paste it into the schematic, by using the SPICE Directive (.) command, as I've done in the example below.

Attached is an example showing the difference between an ideal amplifier and NS' and TI's LM358 model. I don't believe for a minute TI's LM358 has a greater phase shift/crossover distortion and lower GBWP than NS'. TI's model is just more accurate than NS'. The fact it's a much larger file size, shows they've gone to more effort.
« Last Edit: January 06, 2025, 06:58:54 pm by Zero999 »
 

Offline iMoTopic starter

  • Super Contributor
  • ***
  • Posts: 5661
  • Country: gw
Re: LTspice24 - importing the A_Bordodynov's lib and examples
« Reply #15 on: January 06, 2025, 07:02:15 pm »
The AB's lib is interesting mostly because of the megatons of various models people (like me) have never ever seen or thought about (and have no idea how to model it in Spice) as well as there is zillion of examples people may study for years.

Sure, people with deep expertise may consider AB's lib as a bloated "something" they do not need, and they would prefer the specific part models they consider appropriate and up to date..

PS: afaik AB is present at the LTspice's groups.io, so he advises people from time to time on his lib. There at groups.io you may find also a repository of many various models people contributing there, btw.

https://groups.io/g/LTspice

« Last Edit: January 06, 2025, 07:08:35 pm by iMo »
Readers discretion is advised..
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf