divergence_sym(V,X,​coordinate_system)

バージョン 1.0.0.0 (437 Bytes) 作成者: mohamed fekry
This Function calculate the divergence of 3D symbolic vector field
ダウンロード: 463
更新 2018/3/1

ライセンスの表示

This Function calculates the divergence of the 3D symbolic vector in Cartesian, Cylindrical, and Spherical coordinate system.
function Div = divergence_sym(V,X,coordinate_system)
V is the 3D symbolic vector field
X is the parameter which the divergence will calculate with respect to.
coordinate_system is the kind of coordinate system at which the vector field is specified.
the divergence is calculated according to (Engineering Electromagnetics Sixth Edition William H. Hayt, Jr. . John A. Buck)
Example (1):
G = x*z*exp(2*y)*[z x*z x]
Div=divergence_sym(G, [x,y,z],'Cartesian')
Example (2):
G=0.2*r^3*phi*(sin(theta))^2*[1 1 1]
divergence_sym(G, [r theta phi],'Spherical')
Example (3):
G=2*rho^2*[cos(5*phi) -sin(5*phi) 1]
DivG=divergence_sym(G, [rho, phi, z],'cylindrical')

引用

mohamed fekry (2024). divergence_sym(V,X,coordinate_system) (https://www.mathworks.com/matlabcentral/fileexchange/66259-divergence_sym-v-x-coordinate_system), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2015a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersCalculus についてさらに検索

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0

Add Examples