Comments (8)
Thank you. Works well now.
Another question: According to the documentation the step size is controlled and probably gets adjusted during the transient simulation. Is there an easy way to force a step size? I sometimes have the problem that an error "Step size too small" occurs, independently of the start step size.
from ahkab.
Hi @gehrer, can you gist the code that produces this error? I'm not an expert in ahkab internals, but as close as there is to a maintainer at this point. If you share your code, I'll try and take a look.
Good luck!
from ahkab.
Hi,
here is the link to the gist:
https://gist.github.com/gehrer/12c8228b245b21eeaa0a0071127c5e1e
from ahkab.
@gehrer thanks, I'll take a look ~tomorrow. Merry Christmas!
from ahkab.
@gehrer take a look at https://github.com/ahkab/ahkab/blob/master/ahkab/diode.py#L87, https://github.com/ahkab/ahkab/blob/master/ahkab/diode.py#L125
Looks like it's just part of the API that the above code missed.
from ahkab.
try https://gist.github.com/itdaniher/b595075f30c9db440b0409c9b16f835d
looks like nonlinear elements requires a different API than for linear, I tried to make changes as appropriate.
Look at the diode.py source, esp class diode
.
regards!
Ian
from ahkab.
wrt step size:
transient_analysis has the following parameter:
use_step_control: the LTE will be calculated and the step adjusted. default: True
pretty sure setting it to false will use a constant step size.
you can also set a smaller value for options.hmin, the smallest allowed step size.
Regards,
Ian
from ahkab.
Closing this issue as the primary question was addressed - feel free to open another issue if needed!
Regards,
Ian
from ahkab.
Related Issues (20)
- Issue with ankab HOT 5
- Tran example : 'op_solution' object has no attribute 'asmatrix' HOT 5
- voltage pulse source for a MOS inverter + questions HOT 4
- Zener Diode HOT 2
- Subcircuit call problem HOT 1
- RL circuit vs. LR circuit: different output HOT 5
- Plot circuit HOT 1
- Voltage-Controlled Switch Issue HOT 1
- Issue with a switch
- Compute on GPU using TensorFlow
- Verification RC cutoff frequency HOT 1
- error in AC and TRAN tutorial
- AttributeError: module 'pylab' has no attribute 'hold' HOT 3
- ImportError: No module named matplotlib.pyplot HOT 1
- Help : Finding current through a resistor
- Cant define diode HOT 1
- Help : Modeling a circuit with parallel components HOT 2
- Locale appears not set HOT 2
- How to use User definement device with non-linear property
- print_symbolic_results / print_symbolic_transfer_functions: sort key bug
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ahkab.