| 341 |
|
Vector3d facetVel = thisTriangle.getFacetVelocity(); |
| 342 |
|
RealType hydroLength = thisTriangle.getIncircleRadius()*2.0/3.14; |
| 343 |
|
|
| 344 |
< |
RealType f_normal = simParams->getViscosity()*hydroLength*1.439326479e4*OOPSEConstant::energyConvert; |
| 345 |
< |
RealType extPressure = -(targetPressure_ * thisArea); |
| 346 |
< |
RealType randomForce = randNums[thisNumber] * f_normal * OOPSEConstant::kb*simParams->getTargetTemp()/simParams->getDt(); |
| 344 |
> |
RealType f_normal = simParams->getViscosity()*hydroLength*1.439326479e4; |
| 345 |
> |
RealType extPressure = -(targetPressure_ * thisArea)/OOPSEConstant::energyConvert; |
| 346 |
> |
RealType randomForce = randNums[thisNumber] * sqrt(2.0 * f_normal * OOPSEConstant::kb*targetTemp_/simParams->getDt()); |
| 347 |
|
RealType dragForce = -f_normal * dot(facetVel, unitNormal); |
| 348 |
|
Vector3d langevinForce = (extPressure + randomForce + dragForce) * unitNormal; |
| 349 |
|
|