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

  • Thread starter Thread starter Douasing
  • Start date Start date
  • Tags Tags
    Fortran Software
AI Thread Summary
The discussion centers on the Elk-code software, which utilizes the FLAPW method for computational physics. The user is encountering difficulties with understanding the charge density representation, specifically the spherical coordinates (rhomt) and Cartesian coordinates (rhoir), and is unable to locate the corresponding angles (theta, phi) and positions (x, y, z) in the source code. Additionally, there is confusion regarding the calculation of exchange-correlation energy density and potential, particularly in the context of radial meshgrid values. The user seeks clarification or suggestions to resolve these issues. The inquiry highlights the complexities involved in navigating the Elk-code software for computational tasks.
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.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...

Similar threads

Replies
6
Views
3K
Replies
54
Views
5K
Replies
4
Views
4K
4
Replies
175
Views
25K
Back
Top