Go to the documentation of this file.
23 # define SQUARE(x) ((x) * (x))
27 # define DSIGN(x) (( (x) == (0.0) ) ? (0.0) : ( ((x) > 0.0) ? 1.0 : -1.0 ))
38 #define VCS_NOMEMORY 1
39 #define VCS_FAILED_CONVERGENCE -1
40 #define VCS_SHOULDNT_BE_HERE -2
41 #define VCS_PUB_BAD -3
42 #define VCS_THERMO_OUTOFRANGE -4
43 #define VCS_FAILED_LOOKUP -5
44 #define VCS_MP_FAIL -6
54 #define VCS_PROBTYPE_TP 0
66 #ifndef VCS_RELDELETE_SPECIES_CUTOFF
67 #define VCS_RELDELETE_SPECIES_CUTOFF 1.0e-64
72 #ifndef VCS_DELETE_MINORSPECIES_CUTOFF
73 #define VCS_DELETE_MINORSPECIES_CUTOFF 1.0e-140
78 #ifndef VCS_SMALL_MULTIPHASE_SPECIES
79 #define VCS_SMALL_MULTIPHASE_SPECIES 1.0e-25
84 #ifndef VCS_DELETE_PHASE_CUTOFF
85 #define VCS_DELETE_PHASE_CUTOFF 1.0e-13
91 #ifndef VCS_POP_PHASE_MOLENUM
92 #define VCS_POP_PHASE_MOLENUM 1.0e-11
99 #ifndef VCS_DELETE_ELEMENTABS_CUTOFF
100 #define VCS_DELETE_ELEMENTABS_CUTOFF 1.0e-280
105 #define VCS_MAXSTEPS 50000
116 #define VCS_NONDIMENSIONAL_G 1
118 #define VCS_DIMENSIONAL_G 0
134 #define VCS_SPECIES_COMPONENT_STOICHZERO 3
137 #define VCS_SPECIES_COMPONENT 2
144 #define VCS_SPECIES_MAJOR 1
151 #define VCS_SPECIES_MINOR 0
159 #define VCS_SPECIES_SMALLMS -1
166 #define VCS_SPECIES_ZEROEDMS -2
173 #define VCS_SPECIES_ZEROEDSS -3
182 #define VCS_SPECIES_DELETED -4
190 #define VCS_SPECIES_INTERFACIALVOLTAGE -5
199 #define VCS_SPECIES_ZEROEDPHASE -6
208 #define VCS_SPECIES_ACTIVEBUTZERO -7
219 #define VCS_SPECIES_STOICHZERO -8
229 #define VCS_PHASE_EXIST_ALWAYS 3
232 #define VCS_PHASE_EXIST_YES 2
239 #define VCS_PHASE_EXIST_MINORCONC 1
242 #define VCS_PHASE_EXIST_NO 0
248 #define VCS_PHASE_EXIST_ZEROEDPHASE -6
280 #define VCS_UNITS_KCALMOL -1
281 #define VCS_UNITS_UNITLESS 0
282 #define VCS_UNITS_KJMOL 1
283 #define VCS_UNITS_KELVIN 2
284 #define VCS_UNITS_MKS 3
298 #define VCS_ELEM_TYPE_TURNEDOFF -1
307 #define VCS_ELEM_TYPE_ABSPOS 0
313 #define VCS_ELEM_TYPE_ELECTRONCHARGE 1
319 #define VCS_ELEM_TYPE_CHARGENEUTRALITY 2
327 #define VCS_ELEM_TYPE_LATTICERATIO 3
337 #define VCS_ELEM_TYPE_KINETICFROZEN 4
346 #define VCS_ELEM_TYPE_SURFACECONSTRAINT 5
351 #define VCS_ELEM_TYPE_OTHERCONSTRAINT 6
360 #define VCS_SPECIES_TYPE_MOLNUM 0
368 #define VCS_SPECIES_TYPE_INTERFACIALVOLTAGE -5
379 #define VCS_STATECALC_UNKNOWN -1
381 #define VCS_STATECALC_OLD 0
384 #define VCS_STATECALC_NEW 1
389 #define VCS_STATECALC_PHASESTABILITY 2
392 #define VCS_STATECALC_TMP 3