LLG simulation

494 views
Skip to first unread message

Александр Худов

unread,
Nov 10, 2023, 8:28:59 AM11/10/23
to Vampire Users
Hello everybody! Is there any examples how to use the sim:program = electrical-pulse? May be somebody has already run the code contains that command. It would be great if you give me part of your input file. Thank you! 

gabo...@gmail.com

unread,
Nov 10, 2023, 9:50:22 AM11/10/23
to Vampire Users
I'm not aware of any examples for that.

Though, I do recall needing the development branch for that [1].

The VAMPIRE 6.0 manual [2] has some usage information under sim:program = electrical-pulse on page 49.

The spin-transport:applied-voltage is mentioned under voltage-controlled-magnetic-anisotropy-coefficient on page 68 of [2].  I believe that in the input file controlled the applied-voltage for the trapezium shaped electrical pulse.  I think the spin-transport:applied-voltage code was in the spintransport/interface.cpp [3].

Hopefully that helps a little and good luck with your calculations.


Gavin
VAMPIRE user

Александр Худов

unread,
Nov 10, 2023, 10:13:18 AM11/10/23
to Vampire Users
Thank you for your answer, Gavin! I have already switched to the develop branch, there is file electrical_pulse.cpp is placed. But, unfortunately, the problem is still unresolved. My problem is a same like in [1] -- Vampire returns an error because it tries to do an undefined command (see picture below).

пятница, 10 ноября 2023 г. в 17:50:22 UTC+3, gabo...@gmail.com:
problem.jpg

gabo...@gmail.com

unread,
Nov 10, 2023, 10:36:29 AM11/10/23
to Vampire Users
What VAMPIRE version does it show when you use:

vampire-serial -v

gabo...@gmail.com

unread,
Nov 10, 2023, 11:10:54 AM11/10/23
to Vampire Users
As seen in the attach "develop_branch.png", today the develop branch is currently at version c2ed4c7 at:


Your error message seems strange in that it looks like electrical-pulse is missing in the list of modules.  See below how I have electrical-pulse in the error list when I have a similar error message when using version c2ed4c7 of the development branch compared to what you sent.

username@computername:~$ cd ~
username@computername:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
username@computername:~$ ls -l vampire-develop
ls: cannot access 'vampire-develop': No such file or directory
username@computername:~$ git clone --branch develop https://github.com/richard-evans/vampire.git vampire-develop
...
username@computername:~$ cd vampire-develop/
username@computername:~/vampire-develop$ ls -l
total 76
-rw-rw-r--  1 username username  1303 Nov 10 08:40 BSD_licence
-rw-rw-r--  1 username username   727 Nov 10 08:40 Co.mat
drwxrwxr-x  2 username username  4096 Nov 10 08:40 hdr
-rw-rw-r--  1 username username  1126 Nov 10 08:40 input
-rw-rw-r--  1 username username 15220 Nov 10 08:40 license
-rw-rw-r--  1 username username 10616 Nov 10 08:40 makefile
drwxrwxr-x 13 username username  4096 Nov 10 08:40 manual
drwxrwxr-x 32 username username  4096 Nov 10 08:40 obj
-rw-rw-r--  1 username username  2601 Nov 10 08:40 readme.md
drwxrwxr-x  3 username username  4096 Nov 10 08:40 samples
drwxrwxr-x 32 username username  4096 Nov 10 08:40 src
drwxrwxr-x  4 username username  4096 Nov 10 08:40 test
-rwxrwxr-x  1 username username   758 Nov 10 08:40 tests.sh
drwxrwxr-x  6 username username  4096 Nov 10 08:40 util
username@computername:~/vampire-develop$ make
...
username@computername:~/vampire-develop$ cd ~
username@computername:~$ ~/vampire-develop/vampire-serial -v
vampire version 7.0.0
Githash c2ed4c77797e11b71a762f7ba8f5dc2314c56908

This is free software; see the source for licence information.
username@computername:~$ cd ~/Co
username@computername:~/Co$ ls -l
total 8
-rw-r--r-- 1 username username  821 Nov 10 01:44 Co.mat
-rw-r--r-- 1 username username 1504 Nov 10 08:46 input
username@computername:~/Co$ vampire-serial
...
================================================================================
Fri Nov 10 08:57:50 2023
================================================================================
Initialising system variables
program diagnostic-boltzmann-micromagnetic-llg
Error - value for 'sim:program' must be one of:
"benchmark"
"cmc-anisotropy"
"curie-temperature"
"domain-wall"
"effective-damping"
"electrical-pulse"
"exchange-stiffness"
"field-cool"
"laser-pulse"
"localised-field-cool"
"localised-temperature-pulse"
"time-series"
"hysteresis-loop"
"partial-hysteresis-loop"
"hybrid-cmc"
"reverse-hybrid-cmc"
"static-hysteresis-loop"
Fatal error: Aborting program. See log file for details.
username@computername:~/Co$ grep electrical input
sim:program=electrical-puls
username@computername:~/Co$ gedit input
username@computername:~/Co$ grep electrical input
sim:program=electrical-pulse
username@computername:~/Co$ vampire-serial
                                                _          
                                               (_)        
                    __   ____ _ _ __ ___  _ __  _ _ __ ___
                    \ \ / / _` | '_ ` _ \| '_ \| | '__/ _ \
                     \ V / (_| | | | | | | |_) | | | |  __/
                      \_/ \__,_|_| |_| |_| .__/|_|_|  \___|
                                         | |              
                                         |_|              

                      Version 7.0.0 Nov 10 2023 08:48:39

             Git commit: c2ed4c77797e11b71a762f7ba8f5dc2314c56908

  Licensed under the GNU Public License(v2). See licence file for details.

  Developers:   Richard F L Evans, Sarah Jenkins, Andrea Meo,
                Daniel Meilak, Andrew Naden, Matthew Ellis,
                Oscar Arbelaez, Sam Morris, Rory Pond, Weijia Fan,
                Phanwadee Chureemart, Pawel Sobieszczyk, Joe Barker,
                Thomas Ostler, Andreas Biternas, Roy W Chantrell,
                Wu Hong-Ye, Razvan Ababei, Sam Westmoreland,
                Milton Persson
 
                Compiled with:  GNU C++ Compiler
                Compiler Flags:

  Vampire includes a copy of the qhull library from C.B. Barber and The
  Geometry Center and may be obtained via http from www.qhull.org.

================================================================================
Fri Nov 10 08:58:26 2023
================================================================================
Initialising system variables
Creating system
Generating neighbour list..........done!
Copying system data to optimised data structures.
Using generic/normalised form of exchange interaction with 48 total interactions.
Number of atoms generated: 5824
Starting Simulation with Program electrical-pulse...
Simulation run time [s]: 28.0865
Simulation ended gracefully.

Kind Regards,
Gavin
VAMPIRE user

On Friday, November 10, 2023 at 8:13:18 AM UTC-7 eb...@yandex.ru wrote:
develop_branch.png
Co.mat
input
Reply all
Reply to author
Forward
0 new messages