| 63 |
|
if (!simParams->haveTargetTemp()) { |
| 64 |
|
sprintf(painCave.errMsg, |
| 65 |
|
"SMIPDynamics error: You can't use the SMIPD integrator\n" |
| 66 |
< |
" without a targetTemp!\n"); |
| 66 |
> |
" without a targetTemp (K)!\n"); |
| 67 |
|
painCave.isFatal = 1; |
| 68 |
|
painCave.severity = OOPSE_ERROR; |
| 69 |
|
simError(); |
| 74 |
|
if (!simParams->haveTargetPressure()) { |
| 75 |
|
sprintf(painCave.errMsg, |
| 76 |
|
"SMIPDynamics error: You can't use the SMIPD integrator\n" |
| 77 |
< |
" without a targetPressure!\n"); |
| 77 |
> |
" without a targetPressure (atm)!\n"); |
| 78 |
|
painCave.isFatal = 1; |
| 79 |
|
simError(); |
| 80 |
|
} else { |
| 94 |
|
if (!simParams->haveThermalConductivity()) { |
| 95 |
|
sprintf(painCave.errMsg, |
| 96 |
|
"SMIPDynamics error: You can't use the SMIPD integrator\n" |
| 97 |
< |
" without a thermalConductivity!\n"); |
| 97 |
> |
" without a thermalConductivity (W m^-1 K^-1)!\n"); |
| 98 |
|
painCave.isFatal = 1; |
| 99 |
|
painCave.severity = OOPSE_ERROR; |
| 100 |
|
simError(); |
| 101 |
|
}else{ |
| 102 |
< |
thermalConductivity_ = simParams->getThermalConductivity(); |
| 102 |
> |
thermalConductivity_ = simParams->getThermalConductivity() * |
| 103 |
> |
OOPSEConstant::thermalConductivityConvert; |
| 104 |
|
} |
| 105 |
|
|
| 106 |
|
if (!simParams->haveThermalLength()) { |
| 107 |
|
sprintf(painCave.errMsg, |
| 108 |
|
"SMIPDynamics error: You can't use the SMIPD integrator\n" |
| 109 |
< |
" without a thermalLength!\n"); |
| 109 |
> |
" without a thermalLength (Angstroms)!\n"); |
| 110 |
|
painCave.isFatal = 1; |
| 111 |
|
painCave.severity = OOPSE_ERROR; |
| 112 |
|
simError(); |
| 173 |
|
|
| 174 |
|
// gamma is the drag coefficient normal to the face of the triangle |
| 175 |
|
RealType gamma = thermalConductivity_ * thisMass * thisArea |
| 176 |
< |
/ (2.0 * thermalLength_ * OOPSEConstant::kb); |
| 176 |
> |
/ (2.0 * thermalLength_ * OOPSEConstant::kB); |
| 177 |
|
|
| 178 |
|
gamma *= fabs(1.0 - targetTemp_/instaTemp); |
| 179 |
|
|