coldlogix / jsim

The Berkeley JSIM superconducting spice simulator
10 stars 2 forks source link

how to run jsim #1

Open boone891214 opened 6 years ago

boone891214 commented 6 years ago

Thank you for your work. I have a very "noob" question to ask, after I follow the commands I got a folder in my home directory. But how do I execute jsim in terminal? What should I do after I follows your command?

Hassan313 commented 6 years ago

I have the same question.

jonathan-stark commented 5 years ago

Well... darn. Seems github formatted that a little unfortunately. Let's try again.

Sorry for not seeing these questions and responding earlier; I need to get in to the habit of checking the comments it seems. Perhaps a simple example would be useful.

The documentation is sparse, but here: https://github.com/coldlogix/jsim/blob/master/vendor/jsim/manual.pdf

You need a spice file... This is not a particularly useful circuit, but hopefully gives you a feel for what the format looks like and how to get going.


cat << EOF > simple.js
* Simple JSIM Spice Example

.model jj1 jj(rtype=1,cct=1,icon=10m,vg=2.8m,delv=0.08m,icrit=100u,r0=30,rn=1.6,cap=30f)

L1 0 1 15p
B1 1 0 jj1
L2 0 2 10p
K1 L1 L2 .1
Iwave 0 2 SIN(0 2m 10G 25p 0)

.PRINT DEVI L1
.PRINT DEVI L2

.OPTIONS NUMDGT=5
.tran 0.5ps 3001ps 0ps 0.5ps

.end
EOF

Then run jsim or jsim_n with the input file:

jsim_n simple.js

You should get 3 columns in this example; the time and the current values for L1 and L2.

Hope this helps.

Hassan313 commented 5 years ago

Dear Jonathan,

I hope you are doing well.

No worries.

Thank you so much for the explanation.

Best Regards Hassan

On Thu, Dec 13, 2018 at 6:10 PM jonathan-stark notifications@github.com wrote:

Sorry for not seeing these questions and responding earlier; I need to get in to the habit of checking the comments it seems. Perhaps a simple example would be useful.

The documentation is sparse, but here: https://github.com/coldlogix/jsim/blob/master/vendor/jsim/manual.pdf https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_coldlogix_jsim_blob_master_vendor_jsim_manual.pdf&d=DwMFaQ&c=clK7kQUTWtAVEOVIgvi0NU5BOUHhpN0H8p7CSfnc_gI&r=vOGkj05vFm6y8hJ1JNztGA&m=etpwtGxqZ8Nv86-NAQAbYODHcyYSz6kLJFQn9O5yNEM&s=GWZhU7-P7M1jvVheknagVhT371OKvq0A_Rat5qvc1DA&e=

You need a spice file... This is not a particularly useful circuit, but hopefully gives you a feel for what the format looks like and how to get going.

cat << EOF > simple.js

  • Simple JSIM Spice Example

.model jj1 jj(rtype=1,cct=1,icon=10m,vg=2.8m,delv=0.08m,icrit=100u,r0=30,rn=1.6,cap=30f)

L1 0 1 15p B1 1 0 jj1 L2 0 2 10p K1 L1 L2 .1 Iwave 0 2 SIN(0 2m 10G 25p 0)

.PRINT DEVI L1 .PRINT DEVI L2

.OPTIONS NUMDGT=5 .tran 0.5ps 3001ps 0ps 0.5ps

.end EOF

Then run jsim or jsim_n with the input file:

jsim_n simple.js

You should get 3 columns in this example; the time and the current values for L1 and L2.

Hope this helps.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_coldlogix_jsim_issues_1-23issuecomment-2D447188726&d=DwMFaQ&c=clK7kQUTWtAVEOVIgvi0NU5BOUHhpN0H8p7CSfnc_gI&r=vOGkj05vFm6y8hJ1JNztGA&m=etpwtGxqZ8Nv86-NAQAbYODHcyYSz6kLJFQn9O5yNEM&s=mBkGDz_ZVOn1-sv8hSYoumTWHBg_5ImNnGCR0C3YTCQ&e=, or mute the thread https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AQolktG65X-5FMdkgW-2DDDI9Vk3HO1SBSDrks5u4wiigaJpZM4UxWwb&d=DwMFaQ&c=clK7kQUTWtAVEOVIgvi0NU5BOUHhpN0H8p7CSfnc_gI&r=vOGkj05vFm6y8hJ1JNztGA&m=etpwtGxqZ8Nv86-NAQAbYODHcyYSz6kLJFQn9O5yNEM&s=odmYu7PjXJufuVHoR2RfQi0wDBR4DsZNLZdrQ1VwN0s&e= .

-- Hassan Afzali-Kusha System Power Optimization and Regulation Technology (SPORT) Lab Ming Hsieh Department of Electrical Engineering University of Southern California