Source code for openbandparams.iii_v_alloy
#
# Copyright (c) 2013-2015, Scott J Maddox
#
# This file is part of openbandparams.
#
# openbandparams is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# openbandparams is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with openbandparams. If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from .alloy import Alloy
from .parameter import method_parameter
[docs]class IIIVAlloy(Alloy):
'''
The base class for all III-V alloys.
'''
@method_parameter(dependencies=['CBO'], units='eV')
[docs] def electron_affinity(self, **kwargs):
return 4.66-self.CBO(**kwargs)