Compute divergence of vector field using python

前端 未结 10 2626
甜味超标
甜味超标 2020-12-03 21:58

Is there a function that could be used for calculation of the divergence of the vectorial field? (in matlab) I would expect it exists in numpy/scipy but I can not find it us

10条回答
  •  伪装坚强ぢ
    2020-12-03 22:27

    http://www.scipy.org/Topical_Software#head-85e01502b533f2477ab8c643b38ee92706a377bb

    Even if it doesn't have the divergence hand-packaged for you, divergence is pretty simple and the derivative tools they give you in scipy (the ones linked above) give you about 90% of the code prepackaged in a nice, efficient way.

提交回复
热议问题