Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
qbox-public
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
qbox
qbox-public
Commits
6f049b70
Commit
6f049b70
authored
Jan 25, 2018
by
Francois Gygi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed x_coeff in RSHFunctional.C Cleanup & comment
parent
af533cea
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
7 deletions
+14
-7
ExchangeOperator.C
src/ExchangeOperator.C
+12
-1
ExchangeOperator.h
src/ExchangeOperator.h
+0
-3
RSHFunctional.C
src/RSHFunctional.C
+2
-3
No files found.
src/ExchangeOperator.C
View file @
6f049b70
...
@@ -15,6 +15,18 @@
...
@@ -15,6 +15,18 @@
// ExchangeOperator.C
// ExchangeOperator.C
//
//
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//
// Screened exchange operator
// Diagonal screening is used with interaction potential
// vint(r) = alpha_sx * erf(mu_sx*r)/r + beta_sx * erfc(mu_sx*r)/r
// The parameters alpha_sx, beta_sx and mu_sx are provided to the constructor
//
// Special cases:
// alpha_sx = beta_sx = 0: no interaction
// alpha_sx = beta_sx: Coulomb potential with prefactor alpha_sx (= beta_sx)
// alpha_sx = 0, beta_sx = 0.25, mu = 0.11: HSE
//
////////////////////////////////////////////////////////////////////////////////
#include <iostream>
#include <iostream>
#include <fstream>
#include <fstream>
...
@@ -39,7 +51,6 @@ ExchangeOperator::ExchangeOperator( Sample& s, double alpha_sx,
...
@@ -39,7 +51,6 @@ ExchangeOperator::ExchangeOperator( Sample& s, double alpha_sx,
double
beta_sx
,
double
mu_sx
)
:
double
beta_sx
,
double
mu_sx
)
:
s_
(
s
),
wf0_
(
s
.
wf
),
dwf0_
(
s
.
wf
),
wfc_
(
s
.
wf
),
s_
(
s
),
wf0_
(
s
.
wf
),
dwf0_
(
s
.
wf
),
wfc_
(
s
.
wf
),
alpha_sx_
(
alpha_sx
),
beta_sx_
(
beta_sx
),
mu_sx_
(
mu_sx
),
alpha_sx_
(
alpha_sx
),
beta_sx_
(
beta_sx
),
mu_sx_
(
mu_sx
),
coulomb_
(
alpha_sx
==
beta_sx
),
gcontext_
(
s
.
wf
.
sd
(
0
,
0
)
->
context
())
gcontext_
(
s
.
wf
.
sd
(
0
,
0
)
->
context
())
{
{
// check validity of the values of alpha_sx, beta_sx, mu_sx
// check validity of the values of alpha_sx, beta_sx, mu_sx
...
...
src/ExchangeOperator.h
View file @
6f049b70
...
@@ -177,9 +177,6 @@ class ExchangeOperator
...
@@ -177,9 +177,6 @@ class ExchangeOperator
double
dvint
(
double
g2
);
double
dvint
(
double
g2
);
double
vint_div_scal
(
double
rc
);
double
vint_div_scal
(
double
rc
);
// coulomb potential flag (true if alpha_sx==beta_sx)
bool
coulomb_
;
public
:
public
:
// constructor
// constructor
...
...
src/RSHFunctional.C
View file @
6f049b70
...
@@ -50,9 +50,8 @@ const double A = 1.0161144, B = -0.37170836, C = -0.077215461, D = 0.57786348,
...
@@ -50,9 +50,8 @@ const double A = 1.0161144, B = -0.37170836, C = -0.077215461, D = 0.57786348,
// constructor
// constructor
RSHFunctional
::
RSHFunctional
(
const
vector
<
vector
<
double
>
>
&
rhoe
,
RSHFunctional
::
RSHFunctional
(
const
vector
<
vector
<
double
>
>
&
rhoe
,
double
alpha_RSH
,
double
beta_RSH
,
double
mu_RSH
)
:
double
alpha_RSH
,
double
beta_RSH
,
double
mu_RSH
)
:
//!! todo: remove x_coeff and c_coeff initialization in next line
alpha_RSH_
(
alpha_RSH
),
beta_RSH_
(
beta_RSH
),
mu_RSH_
(
mu_RSH
),
omega
(
mu_RSH
),
x_coeff_
(
0
.
75
),
c_coeff_
(
1
.
0
),
alpha_RSH_
(
alpha_RSH
),
beta_RSH_
(
beta_RSH
),
x_coeff_
(
1
.
0
-
beta_RSH
),
c_coeff_
(
1
.
0
)
mu_RSH_
(
mu_RSH
),
omega
(
mu_RSH
)
{
{
// nonmagnetic or magnetic
// nonmagnetic or magnetic
_nspin
=
rhoe
.
size
();
_nspin
=
rhoe
.
size
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment