Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - esp

Pages: 1 ... 17 18 [19] 20 21 22
271
Definitely I understand, and I Am still very much a beginner here ... currently it seems it is running at about 1 hour per calculation, but it is converging .. just slowly ... I do have a general question about self-consistent versus non-SC though:  I saw in a post earlier (and have been running self-consistent calcs since then), that the effect of the gate voltage on a device would have a better chance of showing up when you use SC calcs ... I too like the other author, saw that non-SC calcs showed no effect, whereas SC did ... the question is, is there a general way to make non-SC calcs show this effect while still running faster....maybe that question is too general, but maybe you can speak to why that situation seems to produce that particular result .. my understanding was that non-SC calcs may be less accurate, but should still show the effect .. but they do not ... maybe this is specific to my device?  it is strange though that he I versus Vgs was totally flat for every Vds value with non-SC calcs ...

I should mention too the computer I am using has dual-6-core processors

thank you

272
General Questions and Answers / Re: Run time of ldos
« on: February 1, 2012, 06:05 »
Ok I think I got it to converge now . it is still running a transmission calc, but the self-consistent part is done i think ... it took like 4 hours ...

my new parms file is below:

Thank you ... i think it was a matter of k-points and other parms but at least for now it is ok ....

Code

# -------------------------------------------------------------
# setup parms
# -------------------------------------------------------------

from NanoLanguage import *
import numpy
import ase

nc_files = "../nc_files/"
plots = "../plots/"

# the number of carbon atoms to replace, every <dopingLvl> atoms
dopingLvl = 8

outFileName = "gnr_12_0_AGNR_z10.nc"
outFileName2 = outFileName + ".ivout.nc"
gate_voltage_list = [-0.2 + 0.05*n for n in range(0,9,1)]*Volt
bias_voltage_list = [-0.2 + 0.05*n for n in range(0,9,1)]*Volt
transSpecEnergies = numpy.linspace(-1,1,100)*eV
kPntsX = 1
kPntsY = 3
kPntsZ = 80
ldos_energies = numpy.linspace(-1.0,1.0,11)*eV
iteration_control_parameters = IterationControlParameters(number_of_history_steps=20, tolerance=1e-4)
numerical_accuracy_parameters = NumericalAccuracyParameters(k_point_sampling=(kPntsX, kPntsY, kPntsZ))

# bandstructure parms
pps=20 # points_per_segment
bafl=All # bands_above_fermi_level

SCF = 1 # self consistent or not


273
I am wondering ... the problem seems to be during the "equivelent bulk" calculation ... there are lines that say something like:

 8 E =  -513.02 dE =  1.526373e-05 dM =  8.447881e-05 dH =  1.391400e-04

I am guessing these dE values are deltas as the calculations try to reach convergence, since i notice that the values get smaller and smaller when eventually (hopefully) they stop and it says converged in <> iterations ...

What if I monitor these values as they come somehow, and then kill it after some criteria, ... would this work in principle?


274
I posted this question on an mpich forum and those users said (as you said) that you have to setup ssh without a password ... the IT people at my university said this cannot be done ... so this means that either I cannot use parallelization, or I am stuck with running separate jobs on multiple machines .... this is not really a great solution ... any ideas?

275
Ok so the IT people said this would be too unsecure .. cant do this ...

but i found if you install mpich2 with the compilation option --with-pm=smpd
then you can use some extensions which allow you to set the user and password ...

I run like this:
$MPICH2_BIN_DIR/mpiexec -hosts 4 <host1> 2 <host2> 2 -pwdfile pwd.txt -phrase <password> -p 3396 $ATK_BIN_DIR/atkpython $SRC_DIR/$SCRIPT2 > $LOG_DIR/$SCRIPT2.log.txt

first it said i needed to provide a password so i added the -phrase above ... now it says:

op_read error on left context: Error = -1
unable to read the challenge string, Error = -1


Any ideas here?



276
General Questions and Answers / Re: Run time of ldos
« on: January 31, 2012, 09:13 »
I am pretty sure I did try this and it ran for like 12 hours without ending .. i will try again tonight (let it run while i sleep)

I will post tomorrow

277
General Questions and Answers / Re: Run time of ldos
« on: January 31, 2012, 00:43 »
I cannot get this to converge self-consistently .. it runs for days on end .. i have tried to increase k points, tweak other parms .... cannot converge

278
Thank you I will try these. 

279
Ok thank you I will try this (send to IT people who understand) .. :)


Ed

280
General Questions and Answers / detect no convergence and kill
« on: January 30, 2012, 10:08 »
It seems when ATK does not converge, it just continues running ... is there a way to detect this and kill the program, maybe given some criteria?  How can we test whether the program is converging while it is running?


281
General Questions and Answers / gate voltage has no effect
« on: January 29, 2012, 07:38 »
Hello, in the process of learning ATK, I am trying to build a GNR FET type device ...

I created the electrodes and doped them both as n+ type with Nitrogen ... the structure should therefore be
[n][intrinsic][n]

it is not perfect but i just wanted to see things work .. i added a gate, and used some of the tutorial scripts to do som e IV curves with different bias and gate voltages ....

Attached is the configuration file and the output plots ...

Something is funny, .. the gate voltage does absolutely nothing!  can someone help in terms of why my gate does not change the IV curve at all?


282
hello,

I can run atk using mpich with multiple processes, but not over multiple machines ... the other machines can only be accessed via ssh with password

There is a line in the mpich doc that says "
    ssh othermachine date
If you cannot get this to work without entering a password, you will need to configure ssh or rsh so that this can be done. "

Any help on how to do this? I have no idea how to configure ssh



283
General Questions and Answers / Re: Run time of ldos
« on: January 27, 2012, 18:41 »
Yes it did complete now.  Thank you. 

284
oh boy this is a nightmare ..

I ran an update on an ubuuntu machine, and now nothing works ... i re-installed atk, that did not help .. i am not sure what to do ...

Code
  File "/home/patak001//gnr_12_0_AGNR_z10.py", line 335, in <module>
    from parms import *
  File "/home/patak001/parms.py", line 7, in <module>
    import pylab
  File "./build/atkpython/lib/python2.6/site-packages/pylab.py", line 1, in <module>
  File "./build/atkpython/lib/python2.6/site-packages/matplotlib/pylab.py", line 263, in <module>
  File "./build/atkpython/lib/python2.6/site-packages/matplotlib/pyplot.py", line 95, in <module>
  File "./build/atkpython/lib/python2.6/site-packages/matplotlib/backends/__init__.py", line 25, in pylab_setup
  File "./build/atkpython/lib/python2.6/site-packages/matplotlib/backends/backend_tkagg.py", line 8, in <module>
  File "./build/atkpython/lib/python2.6/lib-tk/Tkinter.py", line 39, in <module>
ImportError: libXss.so.1: cannot open shared object file: No such file or directory


285
General Questions and Answers / Run time of ldos
« on: January 26, 2012, 03:31 »
OK, I am posting this with full details in hopes that you can help:  

I have been having a hard time getting ldos to finish ... (it runs forever):  

I am probably doing something wrong, but please take a look.  I have no errors, and my logs are updated so I know it is running, but no matter what I do it does not finish! .. I tried parallelization with a 24 core machine, and my latest attempt is a simple single core, running just 1 energy point.  It has been running for 8 hours already ... is it almost done?   Last time I ran a parallelized version with -n 12 it ran for 2 days and never completed.  No errors.  

Here is the script I am running:  Attached also is the log file

Code
# file:  run.sh
# run single instance
./QuantumWise/atk-11.8.2/atkpython/bin/atkpython ./makeCfg.py
./QuantumWise/atk-11.8.2/atkpython/bin/atkpython ./gnr_12_0_AGNR_z10.py > log1.txt

makeCfg is a script that makes a simple GNR FET type device, attached. parms.py is also attached which has some parameters.  

The second file is where the trouble is (code below).  Note that ldos_energies = numpy.linspace(0,0,1)*eV, (I am running only 1 energy point only because I was hoping it would complete within a shorter amount of time, so I could estimate how long an actual calc would take)

Code

def my_DeviceLCAOCalculator():

# -------------------------------------------------------------
# Calculator
# -------------------------------------------------------------

#----------------------------------------
# Numerical Accuracy Settings
#----------------------------------------
left_electrode_numerical_accuracy_parameters = NumericalAccuracyParameters(
k_point_sampling=(kPntsX, kPntsY, kPntsZ),
)

right_electrode_numerical_accuracy_parameters = NumericalAccuracyParameters(
k_point_sampling=(kPntsX, kPntsY, kPntsZ),
)

#----------------------------------------
# Iteration Control Settings
#----------------------------------------
left_electrode_iteration_control_parameters = IterationControlParameters()
right_electrode_iteration_control_parameters = IterationControlParameters()
device_iteration_control_parameters = IterationControlParameters()

if SCF == 1:

#----------------------------------------
# Electrode Calculators
#----------------------------------------
left_electrode_calculator = LCAOCalculator(
numerical_accuracy_parameters=left_electrode_numerical_accuracy_parameters,
# set these for SCF
iteration_control_parameters=left_electrode_iteration_control_parameters,
)

right_electrode_calculator = LCAOCalculator(
numerical_accuracy_parameters=right_electrode_numerical_accuracy_parameters,
# set these for SCF
iteration_control_parameters=right_electrode_iteration_control_parameters,
)

#----------------------------------------
# Device Calculator
#----------------------------------------
calculator = DeviceLCAOCalculator(
# set these for SCF
iteration_control_parameters=device_iteration_control_parameters,
electrode_calculators=
[left_electrode_calculator, right_electrode_calculator],
)

else:
#----------------------------------------
# Electrode Calculators
#----------------------------------------
left_electrode_calculator = LCAOCalculator(
numerical_accuracy_parameters=left_electrode_numerical_accuracy_parameters,
)

right_electrode_calculator = LCAOCalculator(
numerical_accuracy_parameters=right_electrode_numerical_accuracy_parameters,
)

#----------------------------------------
# Device Calculator
#----------------------------------------
calculator = DeviceLCAOCalculator(
electrode_calculators=
[left_electrode_calculator, right_electrode_calculator],
)

return calculator


def doLDOS():
configuration = nlread(outFileName, object_id="cfg")[0]
calculator = my_DeviceLCAOCalculator()
configuration.setCalculator(calculator)
configuration.update()

# Energies at which to compute the LDOS;
# arguments to linspace are (min, max, number of points)
energies = ldos_energies

# calculate ldos for each energy in the list
for energy in energies:
LDOS = LocalDeviceDensityOfStates(
configuration=configuration,
energy=energy,
kpoints=MonkhorstPackGrid(3,3),
contributions=All,
energy_zero_parameter=AverageFermiLevel,
infinitesimal=1e-06*eV,
self_energy_calculator=KrylovSelfEnergy(),
spin=Spin.Sum,
)
nlsave(outFileName + '_ldos.nc', LDOS, object_id="LDOS at %s" % energy)


if __name__ == "__main__":

from parms import *

try:

if processIsMaster():
print "Master node"
else:
print "Slave node"

doLDOS()
print "doLDOS done"

       except:
              print "error", sys.exc_info()[0]


Pages: 1 ... 17 18 [19] 20 21 22