| ²é¿´: 1895 | »Ø¸´: 4 | |||
binggan1987Ìú³æ (СÓÐÃûÆø)
|
[½»Á÷]
¼¯Èº°²×°lammpsÐĵÃÌå»á£¬Óë´ó¼Ò¹²Í¬Ñ§Ï° ÒÑÓÐ2È˲ÎÓë
|
|
ÓÉÓÚ¼¯ÈºÏµÍ³±ÀÀ££¬ÖØ×°2018°æµÄlammps£¬Ò»¿ªÊ¼×°µÄfftwÊÇ3.3.7°æ±¾£¬±àÒë³öÏÖÒÔϱ¨´í£º ´íÎóÌáʾ£º fft3d.o£ºÔÚº¯Êý¡®fft_3d¡¯ÖУº /home/tree/Software/lammps/src/Obj_mpi/../fft3d.cpp:151£º¶Ô¡®fftwf_execute_dft¡¯Î´¶¨ÒåµÄÒýÓà /home/tree/Software/lammps/src/Obj_mpi/../fft3d.cpp:214£º¶Ô¡®fftwf_execute_dft¡¯Î´¶¨ÒåµÄÒýÓà /home/tree/Software/lammps/src/Obj_mpi/../fft3d.cpp:277£º¶Ô¡®fftwf_execute_dft¡¯Î´¶¨ÒåµÄÒýÓà /home/tree/Software/lammps/src/Obj_mpi/../fft3d.cpp:151£º¶Ô¡®fftwf_execute_dft¡¯Î´¶¨ÒåµÄÒýÓà /home/tree/Software/lammps/src/Obj_mpi/../fft3d.cpp:214£º¶Ô¡®fftwf_execute_dft¡¯Î´¶¨ÒåµÄÒýÓà fft3d.o:/home/tree/Software/lammps/src/Obj_mpi/../fft3d.cpp:277: ¸úןü¶à䶨ÒåµÄ²Î¿¼µ½ fftwf_execute_dft.............. ½â¾ö°ì·¨£º ·¢ÏÖÊÇfftwÎÊÌ⣬ÎÒ֨װÁËÀϰ汾3.2.2µÄfftw£¬·¢ÏÖÒ»´Î±àÒëͨ¹ý¡£ fftwÏÂÔØµØÖ·£º ftp://ftp.fftw.org/pub/fftw/ ÓÐÏàͬÎÊÌâµÄ£¬¿ÉÒÔ½è¼øÒ»Ï ÏÂÃæÊÇmake mpiÎļþ # mpi = MPI with its default compiler SHELL = /bin/sh # --------------------------------------------------------------------- # compiler/linker settings # specify flags and libraries needed for your compiler CC = /public/software/mpi/openmpi/intel/2.1.2/bin/mpicxx #Ð޸ĵĵط½ CCFLAGS = -g -O3 SHFLAGS = -fPIC DEPFLAGS = -M LINK = /public/software/mpi/openmpi/intel/2.1.2/bin/mpicxx #Ð޸ĵĵط½ LINKFLAGS = -g -O LIB = SIZE = size ARCHIVE = ar ARFLAGS = -rc SHLIBFLAGS = -shared # --------------------------------------------------------------------- # LAMMPS-specific settings, all OPTIONAL # specify settings for LAMMPS features you will use # if you change any -D setting, do full re-compile after "make clean" # LAMMPS ifdef settings # see possible settings in Section 2.2 (step 4) of manual LMP_INC = -DLAMMPS_GZIP -DLAMMPS_MEMALIGN=64 # MPI library # see discussion in Section 2.2 (step 5) of manual # MPI wrapper compiler/linker can provide this info # can point to dummy MPI library in src/STUBS as in Makefile.serial # use -D MPICH and OMPI settings in INC to avoid C++ lib conflicts # INC = path for mpi.h, MPI compiler settings # PATH = path for MPI library # LIB = name of MPI library MPI_INC = -I/public/software/mpi/openmpi/intel/2.1.2/include -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 #Ð޸ĵĵط½ MPI_PATH = -L/public/software/mpi/openmpi/intel/2.1.2/lib #Ð޸ĵĵط½ MPI_LIB = -lmpi #Ð޸ĵĵط½ # FFT library # see discussion in Section 2.2 (step 6) of manual # can be left blank to use provided KISS FFT library # INC = -DFFT setting, e.g. -DFFT_FFTW, FFT compiler settings # PATH = path for FFT library # LIB = name of FFT library FFT_INC = -DFFT_FFTW -I/public/software/fftw2/fftw/include #Ð޸ĵĵط½ FFT_PATH = -L/public/software/fftw2/fftw/lib #Ð޸ĵĵط½ FFT_LIB = -lfftw3 #Ð޸ĵĵط½ # JPEG and/or PNG library # see discussion in Section 2.2 (step 7) of manual # only needed if -DLAMMPS_JPEG or -DLAMMPS_PNG listed with LMP_INC # INC = path(s) for jpeglib.h and/or png.h # PATH = path(s) for JPEG library and/or PNG library # LIB = name(s) of JPEG library and/or PNG library JPG_INC = JPG_PATH = JPG_LIB = # --------------------------------------------------------------------- # build rules and dependencies # do not edit this section include Makefile.package.settings include Makefile.package EXTRA_INC = $(LMP_INC) $(PKG_INC) $(MPI_INC) $(FFT_INC) $(JPG_INC) $(PKG_SYSINC) EXTRA_PATH = $(PKG_PATH) $(MPI_PATH) $(FFT_PATH) $(JPG_PATH) $(PKG_SYSPATH) EXTRA_LIB = $(PKG_LIB) $(MPI_LIB) $(FFT_LIB) $(JPG_LIB) $(PKG_SYSLIB) EXTRA_CPP_DEPENDS = $(PKG_CPP_DEPENDS) EXTRA_LINK_DEPENDS = $(PKG_LINK_DEPENDS) # Path to src files vpath %.cpp .. vpath %.h .. # Link target $(EXE): $(OBJ) $(EXTRA_LINK_DEPENDS) $(LINK) $(LINKFLAGS) $(EXTRA_PATH) $(OBJ) $(EXTRA_LIB) $(LIB) -o $(EXE) $(SIZE) $(EXE) # Library targets lib: $(OBJ) $(EXTRA_LINK_DEPENDS) $(ARCHIVE) $(ARFLAGS) $(EXE) $(OBJ) shlib: $(OBJ) $(EXTRA_LINK_DEPENDS) $(CC) $(CCFLAGS) $(SHFLAGS) $(SHLIBFLAGS) $(EXTRA_PATH) -o $(EXE) \ $(OBJ) $(EXTRA_LIB) $(LIB) # Compilation rules %.o:%.cpp $(CC) $(CCFLAGS) $(SHFLAGS) $(EXTRA_INC) -c $< # Individual dependencies depend : fastdep.exe $(SRC) @./fastdep.exe $(EXTRA_INC) -- $^ > .depend || exit 1 fastdep.exe: ../DEPEND/fastdep.c cc -O -o $@ $< sinclude .depend |
» ±¾ÌûÒÑ»ñµÃµÄºì»¨£¨×îÐÂ10¶ä£©
» ²ÂÄãϲ»¶
304Çóµ÷¼Á
ÒѾÓÐ4È˻ظ´
326Çóµ÷¼Á
ÒѾÓÐ4È˻ظ´
Ò»Ö¾Ô¸ËÕÖÝ´óѧ²ÄÁϹ¤³Ì£¨085601£©×¨Ë¶ÓпÆÑоÀúÈýÏî¹ú½±Á½¸öʵÓÃÐÍרÀûÒ»ÏîÊ¡¼¶Á¢Ïî
ÒѾÓÐ4È˻ظ´
»·¾³¹¤³Ìµ÷¼Á
ÒѾÓÐ5È˻ظ´
±¾ÈË¿¼085602 »¯Ñ§¹¤³Ì ר˶
ÒѾÓÐ14È˻ظ´
Ò»Ö¾Ô¸211 0703·½Ïò310·ÖÇóµ÷¼Á
ÒѾÓÐ3È˻ظ´
0703»¯Ñ§336·ÖÇóµ÷¼Á
ÒѾÓÐ3È˻ظ´
318Çóµ÷¼Á
ÒѾÓÐ3È˻ظ´
»¯Ñ§¹¤³Ì321·ÖÇóµ÷¼Á
ÒѾÓÐ9È˻ظ´
0703»¯Ñ§µ÷¼Á
ÒѾÓÐ9È˻ظ´
ÄäÃû
Óû§×¢Ïú (ÕýʽдÊÖ)
- Ó¦Öú: 0 (Ó×¶ùÔ°)
- ½ð±Ò: 2465.8
- É¢½ð: 669
- ºì»¨: 3
- Ìû×Ó: 915
- ÔÚÏß: 130.7Сʱ
- ³æºÅ: 0
- ×¢²á: 2014-10-04
- ÐÔ±ð: GG
- רҵ: ¸ß·Ö×Ó¿ÆÑ§
2Â¥2019-01-14 12:20:58
ruibingqilin
Ìú³æ (СÓÐÃûÆø)
- Ó¦Öú: 0 (Ó×¶ùÔ°)
- ½ð±Ò: 682.7
- Ìû×Ó: 285
- ÔÚÏß: 152.6Сʱ
- ³æºÅ: 1943683
- ×¢²á: 2012-08-17
- ÐÔ±ð: GG
- רҵ: ¸ß·Ö×Ó²ÄÁϽṹÓëÐÔÄÜ
3Â¥2019-02-12 11:51:10
binggan1987
Ìú³æ (СÓÐÃûÆø)
- Ó¦Öú: 0 (Ó×¶ùÔ°)
- ½ð±Ò: 50.4
- É¢½ð: 1390
- ºì»¨: 5
- Ìû×Ó: 73
- ÔÚÏß: 145.2Сʱ
- ³æºÅ: 1475526
- ×¢²á: 2011-11-04
- רҵ: ¹¤³ÌÈÈÎïÀíÏà¹Ø½»²æÁìÓò
4Â¥2019-02-12 13:12:40
ruibingqilin
Ìú³æ (СÓÐÃûÆø)
- Ó¦Öú: 0 (Ó×¶ùÔ°)
- ½ð±Ò: 682.7
- Ìû×Ó: 285
- ÔÚÏß: 152.6Сʱ
- ³æºÅ: 1943683
- ×¢²á: 2012-08-17
- ÐÔ±ð: GG
- רҵ: ¸ß·Ö×Ó²ÄÁϽṹÓëÐÔÄÜ
¡ï
Сľ³æ: ½ð±Ò+0.5, ¸ø¸öºì°ü£¬Ð»Ð»»ØÌû
Сľ³æ: ½ð±Ò+0.5, ¸ø¸öºì°ü£¬Ð»Ð»»ØÌû
|
inÎļþÈçÏ£¬Âé·³¿´¿´£¬Ð»Ð»£¡ # Find minimum energy fcc configuration # Mark Tschopp, 2010 # This requires the variable latconst to be input via the command line # e.g., lmp_win_no-mpi -var latconst 4 < calc_fcc_ver1.in # ---------- Initialize Simulation --------------------- clear units metal dimension 3 boundary p p p atom_style atomic atom_modify map array # ---------- Create Atoms --------------------- lattice fcc ${latconst} region box block 0 1 0 1 0 1 units lattice create_box 1 box lattice fcc ${latconst} orient x 1 0 0 orient y 0 1 0 orient z 0 0 1 create_atoms 1 box replicate 1 1 1 # ---------- Define Interatomic Potential --------------------- pair_style eam/alloy pair_coeff * * Al99.eam.alloy Al neighbor 2.0 bin neigh_modify delay 10 check yes # ---------- Define Settings --------------------- compute eng all pe/atom compute eatoms all reduce sum c_eng # ---------- Run Minimization --------------------- reset_timestep 0 fix 1 all box/relax iso 0.0 vmax 0.001 thermo 10 thermo_style custom step pe lx ly lz press pxx pyy pzz c_eatoms min_style cg minimize 1e-25 1e-25 5000 10000 variable natoms equal "count(all)" variable teng equal "c_eatoms" variable length equal "lx" variable ecoh equal "v_teng/v_natoms" print "Total energy (eV) = ${teng};" print "Number of atoms = ${natoms};" print "Lattice constant (Angstoms) = ${length};" print "Cohesive energy (eV) = ${ecoh};" print "All done!" |
5Â¥2019-02-12 14:52:08













»Ø¸´´ËÂ¥
ruibingqilin