Correction factor for the equation.
This commit is contained in:
@@ -162,9 +162,12 @@ momentum(int3 globalVertexIdx, in VectorField uu, in ScalarField lnrho, in Scala
|
|||||||
)
|
)
|
||||||
+ zeta * gradient_of_divergence(uu)
|
+ zeta * gradient_of_divergence(uu)
|
||||||
#if LSINK
|
#if LSINK
|
||||||
+ sink_gravity(globalVertexIdx)
|
//Gravity term
|
||||||
- sink_accretion(globalVertexIdx, lnrho, dt) / exp(value(lnrho))
|
+ sink_gravity(globalVertexIdx)
|
||||||
* value(uu); //TODO: Confirm
|
//Corresponding loss of momentum
|
||||||
|
- (Scalar(1.0) / Scalar( (dsx*dsy*dsz) * exp(value(lnrho)))) // Correction factor by unit mass
|
||||||
|
* (sink_accretion(globalVertexIdx, lnrho, dt) * value(uu)) // As in Lee et al.(2014)
|
||||||
|
;
|
||||||
#else
|
#else
|
||||||
;
|
;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user