Modified Nodal Analysis - Mensajes
mna_stamps.sm (405,83 KiB) descargado 1685 vez(es).
Best regards.
Alvaro.
Awesome work! I'm excited to start using this. I see a lot of potential uses. I did have a question regarding your algorithm. In the attached segment, what is the purpose of repeating the for-loop inside the if/else condition on the right? I get the purpose of the for-loop to select the correct Stamp prefix, but do not see the benefit of added if/else on right side.

Thanks,
alyles
WroteThis a solver for electrical circuits with the MNA method, here implemented as "stamps" for each linear circuit element. That's meaning that it's modular: can be extended adding more circuit elements stamps. To do: add nullors, diodes, transistors and describe how to handle subciruits.
mna_stamps.sm (405,83 KiB) descargado 1685 vez(es).
Best regards.
Alvaro.
Nice work! and thanks for the use of one of my very old posts!!
WroteAlvaro,
Awesome work! I'm excited to start using this. I see a lot of potential uses. I did have a question regarding your algorithm. In the attached segment, what is the purpose of repeating the for-loop inside the if/else condition on the right? I get the purpose of the for-loop to select the correct Stamp prefix, but do not see the benefit of added if/else on right side.
Thanks,
alyles
Hi alyles. Thanks for your words. As you say, the first loop it's for choose the correct Stamp with the first circuit element letter. The if ensure that if the string is largest than one, then can take a substring largest, but there are a bug there: must to be substr(str#, 1, 2), for make avaible the use of two letters too as stamp identifier.
Best regards.
Alvaro.
opamp integrator.sm (316,26 KiB) descargado 1626 vez(es).
opamp integrator.pdf (464,25 KiB) descargado 1066 vez(es).
Best regards.
Alvaro.
mna_RLC_freq_domain.pdf (308,9 KiB) descargado 944 vez(es).
mna_RLC_freq_domain.sm (187,22 KiB) descargado 1642 vez(es).
Best regards.
Alvaro.
I was planning to convert the attached (copy of) MathCad worksheet, but it seemed difficult for me. Would some of the routines, or stamps work in place of the solve block?
I welcome your review and look forward to your reply.
Sincerely,
NormRLC step response - MC.pdf (695,17 KiB) descargado 1015 vez(es).
RLC Norma.sm (194,82 KiB) descargado 1517 vez(es).
RLC Norma.pdf (175,12 KiB) descargado 969 vez(es).
Best regards.
Alvaro.
WroteI was planning to convert the attached (copy of) MathCad worksheet, but it seemed difficult for me.
If you can setup in form of DE [Differential Equation]
It will surely have a Laplace solution easy to extract.
The "Thanks" icon presented an error.
Norm
WroteThe "Thanks" icon presented an error.
This is a long lasting/reported bug.
It will surely have a Laplace solution easy to extract.
Thanks Jean, I'll try that as well... if I do it correctly.
Norm
WroteIfyou can setup in form of DE [Differential Equation]
It will surely have a Laplace solution easy to extract.
Thanks Jean, I'll try that as well... if I do it correctly.
The technical approach is simply write the Laplace algebra
of the circuit ... maple, bingo/done.
Literature call it H(s) ... I call it L(s).
You can find some examples browsing the web.
Those operational [symbol triangle] supplier
should give the L(s). Here is an old example.
Jean
Maths Laplace Circuit Algebra.sm (38,29 KiB) descargado 1540 vez(es).
The MNA worksheet throws an error when I updated to version 0.99(build: 7610). It worked fine before then.
Here's the sheet:
RLC Norma.sm (194,94 KiB) descargado 1549 vez(es).
The error:
Error.pdf (8,16 KiB) descargado 849 vez(es).
I welcome your review and recommendation(s) to repair the issue.
Stay safe and take care.
Sincerely,
Norm

That make almost all other calculus ok. But there are also a bug in SMath when when you invert matrices with units. For some reason, you must to change A#^-1 by maple(invert(A#)) for calculate the voltage in the first calculus with units (in this case for the current SMath can invert the matrix)

Now there are only one last red in a plot, but can't remember why is it.
RLC Norma.pdf (146,53 KiB) descargado 963 vez(es).
RLC Norma.sm (194,95 KiB) descargado 1578 vez(es).
Finally, in the meantime I improve the Peaks function
MPeaks.sm (16,49 KiB) descargado 1540 vez(es).
Best regards.
Alvaro.
Sincerely,
Norm
- Nuevos mensajes
- Sin mensajes nuevos
