[Fortran] Is anyone familiar with the Elk-code software?

  • Context: Fortran 
  • Thread starter Thread starter Douasing
  • Start date Start date
  • Tags Tags
    Fortran Software
Click For Summary
SUMMARY

The discussion centers on the Elk-code software, specifically its implementation of the FLAPW (full potential linear augmented plane wave) method. The user is encountering difficulties in understanding the charge density representation in the source code, particularly the variables rhomt(:,:,:) in spherical coordinates and rhoir(:) in Cartesian coordinates. They seek clarification on the absence of angular coordinates (theta, phi) for rhomt and spatial coordinates (x, y, z) for rhoir in the "rhomag.f90" file, as well as insights into calculating exchange-correlation energy density and potential in the xc_xalpha.f90 file.

PREREQUISITES
  • Understanding of FLAPW (full potential linear augmented plane wave) methodology
  • Familiarity with Fortran programming, particularly in the context of scientific computing
  • Knowledge of charge density concepts in quantum mechanics
  • Experience with numerical methods for calculating energy density and potential
NEXT STEPS
  • Review the Elk-code documentation for detailed explanations of charge density variables
  • Study the implementation of spherical and Cartesian coordinates in computational physics
  • Learn about the calculation of exchange-correlation energy density in density functional theory (DFT)
  • Examine the structure and functions of the xc_xalpha.f90 file in Elk-code
USEFUL FOR

Researchers and developers working with computational materials science, particularly those using Elk-code for electronic structure calculations and density functional theory applications.

Douasing
Messages
41
Reaction score
0
Dear all,

Are you familiar with the Elk-code software? It is a software about FLAPW (full potential linear augumented plane wave).Recently,I am reading the source code,but I meet many difficulties.

For example,I've a question related to charge density.In the Elk source code, the charge density is divided two parts,i.e.,rhomt(:,:,:) in the spherical coordinates and rhoir(:) in the Cartesian coordinates.But I don't find the angle (theta,phi) for the rhomt(:,:,:) and the position(x,y,z) for the rhoir(:) in the "rhomag.f90".
In addition,I want to learn about the calculating of the exchange-correlation energy density and potential,but I still can't find the (theta,phi) and (x,y,z),taking the xc_xalpha.f90 as an exmaple as follows:

! loop over density points
do i=1,n
r=rho(i)
if (r.gt.1.d-12) then
rs=(3.d0/(4.d0pir))(1.d0/3.d0)
rsm1=1.0d0/rs
! compute energy density
exc(i)=-alphaefacrsm1
! compute potential
vxc(i)=-alphavfacrsm1
end if
end do

Here,the "i=1,n" stands for the value of the radial meshgrid in the muffin-tin sphere and the value of G-point in the interstitial region.As my understanding,the energy density or potential should be for every point in the real space,so I don't clear why the (theta,phi) and (x,y,z) can't be found in those subroutines.

If anyone give me a hint or a suggestion,I will be thankful.
Regards,
 
Technology news on Phys.org
By the way,if anyone will think my question is not clear enough, please say it to me,I will do my best to describe it.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 54 ·
2
Replies
54
Views
5K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
16K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 175 ·
6
Replies
175
Views
28K