Error correction.
This commit is contained in:
@@ -438,9 +438,12 @@ solve(Scalar dt) {
|
|||||||
#if LSINK
|
#if LSINK
|
||||||
// out_lnrho = log(exp(out_lnrho) - sink_accretion(globalVertexIdx, lnrho));
|
// out_lnrho = log(exp(out_lnrho) - sink_accretion(globalVertexIdx, lnrho));
|
||||||
// out_accretion = value(accretion) + (sink_accretion(globalVertexIdx,lnrho) * dsx * dsy * dsz);
|
// out_accretion = value(accretion) + (sink_accretion(globalVertexIdx,lnrho) * dsx * dsy * dsz);
|
||||||
out_accretion = rk3(out_accretion, accretion, sink_accretion(globalVertexIdx, lnrho, dt), dt);// unit now is rho!
|
out_accretion = rk3(out_accretion, accretion, sink_accretion(globalVertexIdx, lnrho, dt), dt);// unit now is rho!
|
||||||
out_lnrho = log(exp(out_lnrho) - out_accretion);
|
// out_lnrho = log(exp(out_lnrho) - out_accretion);
|
||||||
out_accretion = out_accretion * dsx * dsy * dsz;// unit is now mass!
|
|
||||||
|
if (step_number == 2) {
|
||||||
|
out_accretion = out_accretion * dsx * dsy * dsz;// unit is now mass!
|
||||||
|
}
|
||||||
//TODO: implement accretion correction to contiunity equation and momentum equation.
|
//TODO: implement accretion correction to contiunity equation and momentum equation.
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user