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

Class for Material Parameter. More...

#include "MaterialParam.h"

Collaboration diagram for CMaterialParam:
Collaboration graph

Public Member Functions

 CMaterialParam ()
 
 ~CMaterialParam ()
 
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

Definition at line 19 of file MaterialParam.h.

Constructor & Destructor Documentation

CMaterialParam::CMaterialParam ( )

Definition at line 14 of file MaterialParam.cpp.

15 {
16 }
CMaterialParam::~CMaterialParam ( )

Definition at line 19 of file MaterialParam.cpp.

20 {
21 }

Member Function Documentation

GEO_PARAMETER CMaterialParam::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 28 of file MaterialParam.cpp.

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

Referenced by CHamiltonianBuilder::BuildOffsiteMatrixFor10Band(), CGeometricShape::BuildPEBiasVector(), CGeometricShape::BuildPEHamiltonian(), and CHamiltonianBuilder::FillMatrixFor10Band().

29 {
30  char szMaterialName[1024];
31  MATERIAL_INDEX material;
32 
33  strcpy(szMaterialName, pszMaterialName);
34  CUtility::ConvertLower(szMaterialName);
35 
36  if (!strcmp(szMaterialName, "si"))
37  material = Si;
38  else if (!strcmp(szMaterialName, "gaas"))
39  material = GaAs;
40  /*else if (!strcmp(szMaterialName, "as"))
41  material = As;*/
42  else if (!strcmp(szMaterialName, "inas"))
43  material = InAs;
44  else if (!strcmp(szMaterialName, "oxide"))
45  material = Oxide;
46  else
47  material = ATOM_NUM_BASE;
48 
49  return BuildMaterialParam(material, bResult);;
50 }
Definition: Global.h:114
static void ConvertLower(char *pszBuffer)
="">
Definition: Utility.cpp:415
Definition: Global.h:114
MATERIAL_INDEX
Definition: Global.h:114
GEO_PARAMETER BuildMaterialParam(char *pszMaterialName, bool &bResult)
Load material parameter.
Definition: Global.h:114
Definition: Global.h:114

Here is the call graph for this function:

Here is the caller graph for this function:

GEO_PARAMETER CMaterialParam::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 98 of file MaterialParam.cpp.

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

99 {
100  GEO_PARAMETER parameter;
101  MATERIAL_INDEX multimater = (MATERIAL_INDEX)(material | material2);
102 
103  switch (multimater)
104  {
105  case Si:
106  strcpy(parameter.strMaterialType, "Si");
108  bResult = true;
109  break;
110  case GaAs:
111  strcpy(parameter.strMaterialType, "GaAs");
113  bResult = true;
114  break;
115  case InAs:
116  strcpy(parameter.strMaterialType, "InAs");
118  bResult = true;
119  break;
120  default:
121  bResult = false;
122  break;
123  }
124 
125  return parameter;
126 }
char strMaterialType[1024]
<--------------------— From this point generated by meterialParam
static void SetGaAsParameter(LPGEO_PARAMETER lpParameter)
Set GaAs material parameter.
Definition: Global.h:114
MATERIAL_INDEX
Definition: Global.h:114
Definition: Global.h:114
Structure for saving geometric parameter.
static void SetInAsParameter(LPGEO_PARAMETER lpParameter)
Set InAs material parameter.
Definition: Global.h:114
static void SetSiParameter(LPGEO_PARAMETER lpParameter)
Set Si material parameter.

Here is the call graph for this function:

GEO_PARAMETER CMaterialParam::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 57 of file MaterialParam.cpp.

References GEO_PARAMETER::feips, GaAs, InAs, Oxide, CMaterialParameterSetting::SetGaAsParameter(), CMaterialParameterSetting::SetInAsParameter(), CMaterialParameterSetting::SetSiParameter(), Si, and GEO_PARAMETER::strMaterialType.

58 {
59  GEO_PARAMETER parameter;
60 
61  switch (material)
62  {
63  case Si:
64  strcpy(parameter.strMaterialType, "Si");
66  bResult = true;
67  break;
68  case GaAs:
69  strcpy(parameter.strMaterialType, "GaAs");
70  parameter.feips = 12.9;
72  bResult = true;
73  break;
74  case InAs:
75  strcpy(parameter.strMaterialType, "InAs");
76  parameter.feips = 15.15;
78  bResult = true;
79  break;
80  case Oxide:
81  parameter.feips = 3.9;
82  bResult = true;
83  break;
84  default:
85  bResult = false;
86  break;
87  }
88 
89  return parameter;
90 }
char strMaterialType[1024]
<--------------------— From this point generated by meterialParam
Definition: Global.h:114
static void SetGaAsParameter(LPGEO_PARAMETER lpParameter)
Set GaAs material parameter.
Definition: Global.h:114
Definition: Global.h:114
Structure for saving geometric parameter.
static void SetInAsParameter(LPGEO_PARAMETER lpParameter)
Set InAs material parameter.
Definition: Global.h:114
static void SetSiParameter(LPGEO_PARAMETER lpParameter)
Set Si material parameter.

Here is the call graph for this function:


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