Re: Multiple instances of "C:U2:spark"
eetech00, That is pretty much all correct -- but I want to clarify what you wrote at the end.? I want to make sure that it is not taken out of context. The first line of a SPICE netlist file is
By
Andy I
·
#147146
·
|
Re: Multiple instances of "C:U2:spark"
On Mon, Jul 3, 2023 at 11:05 AM, Andy I wrote: > > I think that the colors (and to some degree the file formatting) that > LTspice uses in its Netlist Editor do not distinguish between a full >
By
eetech00
·
#147145
·
|
Re: Scaling a lithium ion battery schematic
Some suggestions: C4 N001 batt1 1000p Rpar=0.1?? <-Rpar replaces resistor C5 N002 N001 10u Rpar=0.1????? <-Rpar replaces resistor C6 vsoc1 0 6480 Rpar=10k???????? <-Rpar replaces
By
eetech00
·
#147144
·
|
Re: Multiple instances of "C:U2:spark"
I think that the colors (and to some degree the file formatting) that LTspice uses in its Netlist Editor do not distinguish between a full (top-level) SPICE Netlist, and something you're creating to
By
Andy I
·
#147143
·
|
Re: Limitation of line length for B-source equations?
ADI responded here: https://ez.analog.com/design-tools-and-calculators/ltspice/f/q-a/571284/unexpected-line-length-limit-for-b-source/498078 . I don't think the answer works, but it triggered a nice
By
mhx@...
·
#147142
·
|
Re: Scaling a lithium ion battery schematic
Well, caveat: it took at least 5 minutes, ¡°Expanding PWL file¡±, before starting the simulation! Sent: Monday, July 03, 2023 9:36 AM To: [email protected] Subject: EXTERNAL: Re: [LTspice] Scaling a
By
Bell, Dave
·
#147140
·
|
Re: Scaling a lithium ion battery schematic
Uploaded an amended schematic </g/LTspice/files/Temp/Li_Ion_Master_24V_ATC.zip> with a crude fix to clamp SOC between 0 and 1. -- Regards, Tony
By
Tony Casey
·
#147138
·
|
Re: Scaling a lithium ion battery schematic
Great suggestion! -- Regards, Tony
By
Tony Casey
·
#147137
·
|
Re: Scaling a lithium ion battery schematic
Sorry for a little confusion! I resaved the PWL file as a .csv so it could be edited in Excel. Your definition would be: PWL repeat forever (file=Test_PWL_2mod.txt) endrepeat Dave Sent: Monday, July
By
Bell, Dave
·
#147136
·
|
Re: Scaling a lithium ion battery schematic
I fixed the 24V battery SOC table and amended the analysis duration to stop just after SOC reaches zero. The schematic has logical fault in it, so SOC is allowed to go outside the range 0 to 1, which
By
Tony Casey
·
#147135
·
|
Re: Scaling a lithium ion battery schematic
One suggestion I would make, aside from any corrections others may have: Your 38,000 second long PWL file can be reduced to the first 13 lines. The rest of the file is 18999 repeats of the same
By
Bell, Dave
·
#147134
·
|
Re: Scaling a lithium ion battery schematic
On 03/07/2023 16:56, apotorski@... wrote: > I have been given the task of scaling down a 50V lithium ion battery to 24V. I think I have successfully uploaded both schematics and the PWL file in
By
Tony Casey
·
#147132
·
|
Scaling a lithium ion battery schematic
I have been given the task of scaling down a 50V lithium ion battery to 24V. I think I have successfully uploaded both schematics and the PWL file in a zip file. The 50V schematic seems to work fine,
By
apotorski@...
·
#147130
·
|
Re: Multiple instances of "C:U2:spark"
I uploaded a new file labeled Paschens-spark_gap. It's a work in progress. And thank you for your help Tony.
By
Richard Andrews
·
#147128
·
|
Re: Multiple instances of "C:U2:spark"
I mean: it always places a comment on the first line (the sub-schematic name) -- Regards, Tony
By
Tony Casey
·
#147127
·
|
Re: Multiple instances of "C:U2:spark"
It's interesting that LTspice text editor still tries to nudge you to have a line above the .subckt definition. The syntax highlighting colour is always green (comment) for the first line, even if
By
Tony Casey
·
#147126
·
|
Re: Multiple instances of "C:U2:spark"
Tony wrote, "It is also normal to begin a .subckt definition with a comment, starting with "*". Originally, SPICE assumed the first line was always a comment, but I'm not sure how strictly that is
By
Andy I
·
#147125
·
|
Re: Multiple instances of "C:U2:spark"
Richard, For some reason, you don't seem to like following advice.? Where is your schematic (.asc) file where this error happened?? Where is the symbol (.asy) file?? I really don't care that
By
Andy I
·
#147124
·
|
Re: Multiple instances of "C:U2:spark"
This is what you uploaded: .subckt sparkgap p n * Parameters * d: Gap distance in meters * aa: Gap area in sqr meters * p: Gas pressure in Pascals * Model constants ?.param A = 5.19e-11 ?.param B =
By
Tony Casey
·
#147123
·
|
Re: Multiple instances of "C:U2:spark"
Yes, I looked at all the spark gap models and none were satisfactory to my needs.
By
Richard Andrews
·
#147122
·
|