sim:program=electrical-pulse

7 views
Skip to first unread message

Vinod Naik Bhukya

unread,
Apr 17, 2026, 5:06:58 AM (13 days ago) Apr 17
to Vampire Users
Hi all,

I kindly request the community to throw some light on the usage of electrical-pulse. I understand that we need to use the following commands

sim:program=electrical-pulse
sim:electrical-pulse-time= 0.5 ns
sim:electrical-pulse-rise-time= 0.05 ns
sim:electrical-pulse-fall-time=0.05 ns

Are these commands specific to a particular module or can we use these to any module?

Vinod Naik Bhukya

unread,
Apr 17, 2026, 6:05:03 AM (13 days ago) Apr 17
to Vampire Users
sim:temperature=300
sim:equilibration-temperature=300
sim:time-step=1.0e-16
sim:time-steps-increment=1
sim:loop-time-steps=1
sim:equilibration-time-steps=100000
sim:total-time-steps=1000000

sim:electrical-pulse-time= 0.05 ns
sim:electrical-pulse-rise-time=0 ns
sim:electrical-pulse-fall-time=0 ns
sim:program=electrical-pulse
sim:integrator=llg-heun

output:real-time
output:fractional-electric-field-strength

Here I am running the simulation for 0.1 ns and with electrical pulse time to be 0.05 ns. But when i plotted time vs electric field strength, the pulse is not going to zero at 0.05 ns, it is ON till the end of the simulation. Electric field vs time.png
Vinod Naik Bhukya 在 2026年4月17日 星期五下午5:06:58 [UTC+8] 的信中寫道:

gabo...@gmail.com

unread,
Apr 17, 2026, 1:01:23 PM (13 days ago) Apr 17
to Vampire Users
I checked out the develop branch and gave it a try.  I see the falling edge when I plot it:

username@computername:~$ git clone https://github.com/richard-evans/vampire.git
...
username@computername:~/vampire$ git checkout develop
username@computername:~/vampire$ make
...
username@computername:~/vampire$ cd ../test
username@computername:~/test$ ls -ls
total 12
4 -rw-r--r-- 1 username username  821 Apr 17 02:37 Co.mat
4 -rw-r--r-- 1 username username 1622 Apr 17 09:20 input
4 -rw-r--r-- 1 username username   73 Apr 17 09:11 plotPulse.gnu
username@computername:~/test$ vampire-serial
                                                _          
                                               (_)        
                    __   ____ _ _ __ ___  _ __  _ _ __ ___
                    \ \ / / _` | '_ ` _ \| '_ \| | '__/ _ \
                     \ V / (_| | | | | | | |_) | | | |  __/
                      \_/ \__,_|_| |_| |_| .__/|_|_|  \___|
                                         | |              
                                         |_|              

                      Version 7.0.0 Apr 17 2026 10:41:02

             Git commit: c3e38ec6134e8bb9342f1b2c4cd8406a7820ad49
...
Simulation ended gracefully.
username@computername:~/test$ gnuplot --persist plotPulse.gnu
electrical_pulse.png

Kind Regards,
Gavin
VAMPIRE user
Co.mat
input
plotPulse.gnu

Vinod Naik Bhukya

unread,
Apr 17, 2026, 10:58:56 PM (13 days ago) Apr 17
to Vampire Users
sorry my mistake to not write ns properly in my code. Thank you.

gabo...@gmail.com 在 2026年4月18日 星期六凌晨1:01:23 [UTC+8] 的信中寫道:
Reply all
Reply to author
Forward
0 new messages