As I previously said, nice app. Here is some food for thought to the designers. Not working in Sim mode obviously. Assuming that you make some Custom Circuits, how do you define some models for them? Say you want to include the following file: *-----------------------------------------------------------------------
*
* *
*
*
*
*
*
*
* *----------------------------------------------------------------------- .SUBCKT 6BQ5 A S G K *
* Eat at 0 VALUE={0.636*ATAN(V(A,K)/15)} Egs gs 0 VALUE={LIMIT(V(S,K)/19+V(G,K)+V(A,K)/1400,0,1E6)} Egs2 gs2 0 VALUE={PWRS(V(gs),1.5)} Ecath cc 0 VALUE={V(gs2)*V(at)} *
* Ga A K VALUE={3.2E-3*V(cc)} *
* Escrn sc 0 VALUE={V(gs2)*(1.1-V(at))} Gs S K VALUE={2.0E-3V(sc)LIMIT(V(S,K),0,10)/10} *
* Gg G K VALUE={PWR(LIMIT(V(G,K)+1,0,1E6),1.5)*50E-6} *
* Cg1 G K 10.8p Cak A K 6.5p Cg1a G A 0.5p .ENDS *=============================== Any constructive idea would be welcomed! Tubester |
by tubester
February 29, 2012 |
I've posted an example for a work-around using subcircuit-like schematics : https://www.circuitlab.com/circuit/ry7f7v/diff_pair/. But you have to then build the subcircuit on the schematic page AS A SCHEMATIC. This still won't quite work for your tube sub circuits as you need the equivalent to a SPICE "B" sources (dependent sources controlled by equations). Your code illustrates how PSPICE handles this in a unique and very non-standard way, as a special case of E, G elements, but Circuit lab just needs a similar construct and we could model arbitrary circuit elements. (PSPICE was based on ancient SPICE2 sources, and their equivolent solution was different than that chosen for SPICE3 and its descendants) |
by CarlSawtell
March 02, 2012 |
Here are the images that I previously reffered to. Cheers, Tubester |
by tubester
March 05, 2012 |
Please sign in or create an account to comment.
CircuitLab is an in-browser schematic capture and circuit simulation software tool to help you rapidly design and analyze analog and digital electronics systems.