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 - chp

Pages: 1 [2] 3
16
Recently I have written a small python script based on ATK for structural optimization of randomly generated atomic clusters. It works well for small molecular, however, when it is used for medium-sized cluster, it cannot converge after thousands of steps. I have tried to adjust some parameters, but no obvious improvement has been observed.

Please see the following script for structural optimization, an randomly generated cluster compose of 34 oxygen atoms and 34 zinc atoms, and output file.

What is the matter ? How to deal with it? Thanks everyone !!!

17
Dear Blom and Nordland:

I am sorry that this problem is raised again. Just as you have indicated that the original issue lies in the use of random() which gives different values on the different nodes when the script is performed in parallel.

I have tried the example given by Nordland, however, the same error still appeared. Having tried some other random seeds, I can run the script in parallel successfully. Because I am a novice in python, I still want to use some better seeds. Could you give me one or two examples of random seed in the form of function like below:

def rand ():
    import time; import random
    random.seed(time.localtime().tm_min)
    return random.random()

Thank you very much.

Sincerely yours !

18
Thanks again !

19
Thank you for your nice tips and comments!

There is one issue that I want to confirm. In Nordland’s reply, he mentioned that “The value for Bi does need to be changed”, however, I think that since the initial problem only lies in Mn, it is not necessary to change the parameter charge of Bi. I have performed test calculations, it can be seen that whether change the charge of Bi or not will not result in different convergence process. So, I think the charge of Bi should not be changed.   Is it right?

20
Thank you very much for your reply ! But still I have two issues.

1.  You have demonstrated that the question results from the parameter setting of charge for the basis set of Mn, however, in your attached script it can be seen that the parameter charge for both Mn and Bi are set the same value (0.05) although they are defined individually. I want to know since the problem lies in Mn, is it necessary to change the parameter charge of Bi to the same value.

2.  You have said that this issue is quite rare, but how can we find it in time ? In addition, how can we set the parameter charge to an appropriate value ? Is there any simple way to determine a suitable value of charge ?

Thanks again !

21
Hi, everyone!

I have performed a calculation of geometry optimization for a dimer composed of one Bi and one Mn atoms, but the optimized structure cannot be obtained after a large number of optimization steps. (Please see the attached script and out file for details.) However, the same initial structure can be optimized successfuly within a few steps using other DFT-based software with similar parameter settings. I also tried to adjust some parameters, no obvious change has been observed. What is the matter?

Thanks in advance!

22
Thanks a lot ! Blom and Nordland.

I will try it in my script.

Regards !

23
I have tried it in different hardware/software configs, however, similar error messages were obtained.
 
softwares:  ATK 2008.02   OR    ATK 2008.10
               mpich2-1.0.5p  OR   mpich2-1.0.7
               Linux-2.6.27.7-9-default-x86_64-with-SuSE-11.1-x86_64
               Linux-2.6.9-34.ELsmp-x86_64-with-redhat-4-Nahant_Update_3

hardwares:  two nodes of a cluster each of which consists of two Quad intel CPUs and 12G memory
                 a PC with a Quad intel CPU and 4G memory

24
Thank you for your nice tips.

The optimization examples in the manual can work well in parallel.

25
Dear Blom:

I have made some further test calculations. Any example in the manual can be run in parallel and work well.  However, when I run the above script, it still cannot work in parallel. It fails when the command “mpiexec  -machinefile  mpd.hosts  -n  CPUS  $ATK_BIN_DIR/atk  $WORK_DIR/script.py” was used where CPUS ≠ 1.

The following message gives an example.
##########################################################################
[ch@console ~]$ mpiexec -machinefile mpd.hosts -n 16 $ATK_BIN_DIR/atk $WORK_DIR/script.py
0: # Mon Mar 30 8:38:26 2009
0: # Linux-2.6.9-34.ELsmp-x86_64-with-redhat-4-Nahant_Update_3
0:
0: Start  study for  clusters:
0: C2Si1
0:
0:
0:
0: -----------------------------------------------------------------
0:
0:
5: [cli_5]: aborting job:
5: Fatal error in MPI_Allreduce: Message truncated, error stack:
5: MPI_Allreduce(707).....................: MPI_Allreduce(sbuf=0x2a9e7c7010, rbuf=0x2a9eab6010, count=384345, MPI_DOUBLE, MPI_SUM, MPI_COMM_WORLD) failed
5: MPIR_Allreduce(385)....................:
5: MPIDI_CH3U_Post_data_receive_found(163): Message from rank 4 and tag 14 truncated; 1772160 bytes received but buffer size is 1537416
rank 5 in job 23  console_48274   caused collective abort of all ranks
  exit status of rank 5: return code 1
[ch@console ~]$
################################################################

It can been seen that the script fails when it comes into geometry optimization based on ATK. What is the matter with it? How to fix it?

Regards


26
Thanks everyone !

Indeed, the problem lies in the choice of contour integration parameters. In my initial calculations for the Au nanowire, the default value (i.e., circle_points = 30, integral_lower_bound = 3*Rydberg) results in charge missing, which converge to an incorrect state with no electrons in the central region. 

As I change to the above parameters (circle_points = 1000, integral_lower_bound = 200*Rydberg), the test calculations for 1D Au line give a correct result. But it does not work correctly for the triangular wire.     What is the reason? How can we obtain siutable contour integration prarmeters with efficiency and reasonableness for a special system?

I also perform some test calculations for conductance of a thicker Au nanowire with nori’s parameters. In general, the reasonable result can be obtained. However, when I increase the length of the central region, the obtained conductance show a little difference (i.e., 5.92 G0 vs 5.87 G0 with longer central region, see the attached log file for details). Since the 1D model represents the same nanowire, I want to know what causes this difference and how we can improve it.

27
Dear Blom:

Thank you for your suggestions !
 
I have update my mpich2 to version 1.0.8, however, the reported problem still appears. Furthermore, I have run it in parallel with both ATK 2008.10 and mpich2-1.0.8, the same error hints are raised (even for a very small molecule system with 3 atoms, please see the attached script).   What can we do to fix it ?

Regards

28
Thank you for your advice !

The reported problem always appears (even for very small system) when I run the script in parallel with ATK 2008.02. Because the geometry optimizations at the level of DFT is very time-consuming, I want to know if we can make some adjustments to the script or the environment of mpich2-1.0.5p4 just for the sake of parallel with ATK 2008.02.

I appreciate your help ! Thanks a lot !

29
Thank you for your attentions !

I use the version 2008.02 of ATK.  The script is attached.  Please check it.

To save time, it should preferably be performed in parallel.   I appreciate any reply. 

Regards

30
Recently I have performed calculations for conductance of Au nanowire ( see the following script and output ), however, the obtained value (1.368 G0) is much smaller than other experimental and theoretical results ( about 3 G0 ). This situation is more notable in other thicker nanowires. I have tried to adjust some parameters such as basis set size, mesh cut-off, exchange-correlation function, and k-points, no obvious change has been observed. What is the matter ?

I appreciate any reply.  Thanks a lot !

Pages: 1 [2] 3