Integrate function over a closed surface

17 ビュー (過去 30 日間)
LW942
LW942 2018 年 1 月 12 日
編集済み: Torsten 2018 年 1 月 12 日
Hi
I need to perform an integral over the surface of a sphere/circle (haven't decided on 2d vs 3d simulation yet) of the force due to an inhomogeneous and time-varying scalar pressure field to calculate the instantaneous net pressure force on the sphere.
So this will require integrating dF = P(r)dA across the surface, where P(r) is an arbitrary function of position from an external origin (a source of expanding gas)
Can this be done directly or would I have to divide the surface into triangles and approximate the pressure on each before summing? If the latter how would I go about this
Cheers
  3 件のコメント
LW942
LW942 2018 年 1 月 12 日
Sorry, the sphere is a particle near a source of gas. This gas source is what generates P(r), so P(r) is a function of position from the origin
Torsten
Torsten 2018 年 1 月 12 日
編集済み: Torsten 2018 年 1 月 12 日
This can be done directly if you can supply P(r) for each value of r.
Use spherical coordinates and MATLAB's "integral2" for the 3d-case.
Best wishes
Torsten.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeGeneral Applications についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by