Home > 学习笔记 > COMSOL 设置坐标系和球坐标系

COMSOL 设置坐标系和球坐标系

COMSOL Multiphysics允许用户自定义坐标系统,我们可以使用软件自带的函数进行坐标系统设定。例如:
1.3D球坐标系
选择Options > Expressions > Scalar Expressions,在对话框中输入:
r=sqrt(x^2+y^2+z^2)
phi=atan2(y,x)
theta=acos(z/r)

2.2D极坐标
选择Options > Expressions > Scalar Expressions,在对话框中输入:
r=sqrt(x^2+y^2)
phi=atan2(y,x)

sqrt, atan2及acos 均为comsol內建函数

有人在comsol 交流群里发出来的,如果涉及版权问题,可以回复,我加上作者。

找到了,是在中仿科技的网站里的comsol faq ,http://www.cntech.com.cn/faq/comsol.html

Categories: 学习笔记 Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

Note: Commenter is allowed to use '@User+blank' to automatically notify your reply to other commenter. e.g, if ABC is one of commenter of this post, then write '@ABC '(exclude ') will automatically send your comment to ABC. Using '@all ' to notify all previous commenters. Be sure that the value of User should exactly match with commenter's name (case sensitive).