用于磁场建模的开源Python软件
bfieldtools的Python项目详细描述
bfieldtools是一个磁场建模软件包,重点是由连续表面电流密度产生的磁场。表面电流密度用三角形网格上的分段线性流函数描述。在
- 软件当前的功能
- 三角网格上的离散微积分,包括拉普拉斯、梯度、散度和旋度
- 电感和电阻的网格算子(矩阵)
- 磁场以及表面电流密度的标量和矢量势
- 磁场以及折线电流的标量和矢量位
- 磁场的球谐(多极)表示
- 流函数级数展开的表面谐波(Laplace-Beltrami本征函数)
- 基于凸优化的线圈设计
- 薄导体的磁热噪声
文件
在线文档,包括API引用和示例可以在https://bfieldtools.github.io/找到。在
安装bfieldtools
要使用pip安装bfieldtools,只需运行:
pip install bfieldtools
有关高级安装说明,请参阅联机installation instructions。在
贡献
bfieldtools正在积极开发中,欢迎各界人士踊跃捐款!对于新功能,请编写代码附带的测试!bfieldtools使用Black执行代码样式,请在任何新代码上运行黑色。在
一般来说,MNE Python项目提供了an overview of good practices(如果适用的话)也应该在bfieldtools中遵循。在
许可证
bfieldtools是BSD许可的(3子句):
Copyright (c) 2019, authors of bfieldtools. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the names of bfieldtools authors nor the names of any contributors may be used to endorse or promote products derived from this software without specific prior written permission.
This software is provided by the copyright holders and contributors “as is” and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the copyright owner or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.
- 项目
标签: