代码拉取完成,页面将自动刷新
.. py:class:: mindelec.geometry.Disk(name, center, radius, dtype=np.float32, sampling_config=None) 圆盘对象的定义。 参数: - **name** (str) - 圆盘的名称。 - **center** (Union[tuple[int, int], tuple[float, float], list[int, int], list[float, float], numpy.ndarray]) - 圆盘的中心坐标。 - **radius** (Union[int, float]) - 圆盘的半径。 - **dtype** (numpy.dtype) - 采样点的数据类型。默认值: ``numpy.float32``。 - **sampling_config** (SamplingConfig) - 采样配置。默认值: ``None``。 异常: - **ValueError** - 如果 `center` 既不是长度为2的list也不是Tuple。 - **ValueError** - 如果 `radius` 为负数。 .. py:method:: mindelec.geometry.Disk.sampling(geom_type='domain') 采样域和边界点。 参数: - **geom_type** (str) - 几何类型,可以是 ``"domain"`` 或者 ``"BC"``。默认值: ``"domain"``。 - ``"domain"``:问题的可行域。 - ``"BC"``:问题的边界条件。 返回: Numpy.array,如果配置选择包括法向向量,返回带边界法向向量的二维numpy数组。否则返回不带边界法向向量的二维numpy数组。 异常: - **ValueError** - 如果 `config` 为 ``None``。 - **KeyError** - 如果 `geom_type` 是 ``"domain"`` ,但 `config.domain` 是 ``None``。 - **KeyError** - 如果 `geom_type` 为 ``"BC"`` ,但 `config.bc` 为 ``None``。 - **ValueError** - 如果 `geom_type` 既不是 ``"BC"`` 也不是 ``"domain"``。
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。