IPCC  1.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
CKNMaterialParam Class Reference

Class for Material Parameter. More...

#include "KNMaterialParam.h"

Collaboration diagram for CKNMaterialParam:
Collaboration graph

Public Member Functions

 CKNMaterialParam ()
 
 ~CKNMaterialParam ()
 
GEO_PARAMETER BuildMaterialParam (char *pszMaterialName, bool &bResult)
 Load material parameter. More...
 
GEO_PARAMETER BuildMaterialParam (MATERIAL_INDEX material, MATERIAL_INDEX material2, bool &bResult)
 Load material parameter. More...
 
GEO_PARAMETER BuildMaterialParam (MATERIAL_INDEX material, bool &bResult)
 Load material parameter. More...
 

Detailed Description

Class for Material Parameter.

Date
03/Oct/2014
Author
Kyu Nam Cho(mysto.nosp@m.us@k.nosp@m.orea..nosp@m.ac.k.nosp@m.r), Hoon Ryu(elec1.nosp@m.020@.nosp@m.gmail.nosp@m..com)

Definition at line 21 of file KNMaterialParam.h.

Constructor & Destructor Documentation

CKNMaterialParam::CKNMaterialParam ( )

Definition at line 15 of file KNMaterialParam.cpp.

16 {
17 }
CKNMaterialParam::~CKNMaterialParam ( )

Definition at line 20 of file KNMaterialParam.cpp.

21 {
22 }

Member Function Documentation

GEO_PARAMETER CKNMaterialParam::BuildMaterialParam ( char *  pszMaterialName,
bool &  bResult 
)

Load material parameter.

Parameters
pszMaterialNameMaterial name string
bResultWhen operation success assigned true, else assigned false
Returns
structure instance of material parameter

Definition at line 29 of file KNMaterialParam.cpp.

References ATOM_NUM_BASE, CKNIPCCUtility::ConvertLower(), GaAs, InAs, and Si.

Referenced by CKNHamiltonianBuilder::BuildOffsiteMatrixFor10Band(), and CKNHamiltonianBuilder::FillMatrixFor10Band().

30 {
31  char szMaterialName[1024];
32  MATERIAL_INDEX material;
33 
34  strcpy(szMaterialName, pszMaterialName);
35  CKNIPCCUtility::ConvertLower(szMaterialName);
36 
37  if (!strcmp(szMaterialName, "si"))
38  material = Si;
39  else if (!strcmp(szMaterialName, "gaas"))
40  material = GaAs;
41  /*else if (!strcmp(szMaterialName, "as"))
42  material = As;*/
43  else if (!strcmp(szMaterialName, "inas"))
44  material = InAs;
45  else
46  material = ATOM_NUM_BASE;
47 
48  return BuildMaterialParam(material, bResult);;
49 }
MATERIAL_INDEX
Definition: CKNGlobal.h:106
GEO_PARAMETER BuildMaterialParam(char *pszMaterialName, bool &bResult)
Load material parameter.
static void ConvertLower(char *pszBuffer)
Convert string to lower case.
Definition: CKNGlobal.h:106

Here is the call graph for this function:

Here is the caller graph for this function:

GEO_PARAMETER CKNMaterialParam::BuildMaterialParam ( MATERIAL_INDEX  material,
MATERIAL_INDEX  material2,
bool &  bResult 
)

Load material parameter.

Parameters
materialMaterial index
materialMaterial index 2
bResultWhen operation success assigned true, else assigned false
Returns
structure instance of material parameter

Definition at line 91 of file KNMaterialParam.cpp.

References GaAs, InAs, CKNMeterialParameterSetting::SetGaAsParameter(), CKNMeterialParameterSetting::SetInAsParameter(), CKNMeterialParameterSetting::SetSiParameter(), Si, and GEO_PARAMETER::strMaterialType.

92 {
93  GEO_PARAMETER parameter;
94  MATERIAL_INDEX multimater = (MATERIAL_INDEX)(material | material2);
95 
96  switch (multimater)
97  {
98  case Si:
99  strcpy(parameter.strMaterialType, "Si");
101  bResult = true;
102  break;
103  case GaAs:
104  strcpy(parameter.strMaterialType, "GaAs");
106  bResult = true;
107  break;
108  case InAs:
109  strcpy(parameter.strMaterialType, "InAs");
111  bResult = true;
112  break;
113  default:
114  bResult = false;
115  break;
116  }
117 
118  return parameter;
119 }
char strMaterialType[1024]
<--------------------— From this point generated by meterialParam
MATERIAL_INDEX
Definition: CKNGlobal.h:106
static void SetSiParameter(LPGEO_PARAMETER lpParameter)
Set Si material parameter.
static void SetGaAsParameter(LPGEO_PARAMETER lpParameter)
Set GaAs material parameter.
Definition: CKNGlobal.h:106
Structure for saving geometric parameter.
static void SetInAsParameter(LPGEO_PARAMETER lpParameter)
Set InAs material parameter.

Here is the call graph for this function:

GEO_PARAMETER CKNMaterialParam::BuildMaterialParam ( MATERIAL_INDEX  material,
bool &  bResult 
)

Load material parameter.

Parameters
materialMaterial index
bResultWhen operation success assigned true, else assigned false
Returns
structure instance of material parameter

Definition at line 56 of file KNMaterialParam.cpp.

References GaAs, InAs, CKNMeterialParameterSetting::SetGaAsParameter(), CKNMeterialParameterSetting::SetInAsParameter(), CKNMeterialParameterSetting::SetSiParameter(), Si, and GEO_PARAMETER::strMaterialType.

57 {
58  GEO_PARAMETER parameter;
59 
60  switch (material)
61  {
62  case Si:
63  strcpy(parameter.strMaterialType, "Si");
65  bResult = true;
66  break;
67  case GaAs:
68  strcpy(parameter.strMaterialType, "GaAs");
70  bResult = true;
71  break;
72  case InAs:
73  strcpy(parameter.strMaterialType, "InAs");
75  bResult = true;
76  break;
77  default:
78  bResult = false;
79  break;
80  }
81 
82  return parameter;
83 }
char strMaterialType[1024]
<--------------------— From this point generated by meterialParam
static void SetSiParameter(LPGEO_PARAMETER lpParameter)
Set Si material parameter.
static void SetGaAsParameter(LPGEO_PARAMETER lpParameter)
Set GaAs material parameter.
Definition: CKNGlobal.h:106
Structure for saving geometric parameter.
static void SetInAsParameter(LPGEO_PARAMETER lpParameter)
Set InAs material parameter.

Here is the call graph for this function:


The documentation for this class was generated from the following files: