Files
ABACUS-v1/src/ODSLF/ODSLF_Chem_Pot.cc
T
2018-02-11 10:01:56 +01:00

25 lines
584 B
C++

/**********************************************************
This software is part of J.-S. Caux's ABACUS library.
Copyright (c) J.-S. Caux.
-----------------------------------------------------------
File: src/ODSLF/ODSLF_Chem_Pot.cc
Purpose: calculates the chemical potential.
***********************************************************/
#include "ABACUS.h"
namespace ABACUS {
DP Chemical_Potential (const ODSLF_Bethe_State& RefState)
{
return(-H_vs_M (RefState.chain.Delta, RefState.chain.Nsites, RefState.base.Mdown)); // - sign since E_{M+1} - E_M = -H
}
}