基于laplace-dirichlet规则的心肌纤维定位算法。

ldrb的Python项目详细描述


InstallCondaCircleCIDocumentation StatusPlatform

基于laplace-dirichlet规则(ldrb)的心肌纤维定位算法

基于laplace-dirichlet规则算法的心肌纤维定位软件。

Bayer, J.D., Blake, R.C., Plank, G. and Trayanova, N.A., 2012. A novel rule-based algorithm for assigning myocardial fiber orientation to computational heart models. Annals of biomedical engineering, 40(10), pp.2243-2254.(https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3518842/)

# Decide on the angles you want to useangles=dict(alpha_endo_lv=30,# Fiber angle on the LV endocardiumalpha_epi_lv=-30,# Fiber angle on the LV epicardiumbeta_endo_lv=0,# Sheet angle on the LV endocardiumbeta_epi_lv=0,# Sheet angle on the LV epicardiumalpha_endo_sept=60,# Fiber angle on the Septum endocardiumalpha_epi_sept=-60,# Fiber angle on the Septum epicardiumbeta_endo_sept=0,# Sheet angle on the Septum endocardiumbeta_epi_sept=0,# Sheet angle on the Septum epicardiumalpha_endo_rv=80,# Fiber angle on the RV endocardiumalpha_epi_rv=-80,# Fiber angle on the RV epicardiumbeta_endo_rv=0,# Sheet angle on the RV endocardiumbeta_epi_rv=0)# Sheet angle on the RV epicardium# Choose space for the fiber fields# This is a string on the form {family}_{degree}fiber_space='Quadrature_2'# Compute the microstructurefiber,sheet,sheet_normal=ldrb.dolfin_ldrb(mesh=mesh,fiber_space=fiber_space,ffun=ffun,markers=markers,**angles)# Store files using a built in xdmf viewer that also works for functions# defined in quadrature spacesldrb.fiber_to_xdmf(fiber,'fiber')# And visualize it in Paraview

安装

使用PIP安装

为了安装你需要的软件 已安装FEniCS(版本早于2016 不提供)

该软件包可以与pip一起安装。

pip install ldrb

或者如果您需要最新版本,可以安装源代码

pip install git+https://github.com/finsberg/ldrb.git

使用conda安装

或者,您也可以使用conda进行安装

conda install -c finsberg ldrb

记录

文档位于https://ldrb.readthedocs.io

入门

查看demosdocumentation

许可证

ldrb是根据gnu lgpl第3版或(由您选择)任何更高版本授权的。 ldrb由作者和Simula研究实验室版权所有(2011-2019)。

贡献者

亨里克·芬斯伯格(henriknf@simula.no

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
将中心面板添加到“我的内容”窗格时,java GUI对象消失   java无法更新oracle中的clob字段   php Linux+动态插入的Java小程序=在NPObject上调用方法时出错   java JVisualVM探查器代理jar已加载,但代理初始化失败   java Android在运算符和TextView值方面存在问题   用于OpenPGP智能卡小程序的rsa解密APDU   Java GUI按钮不会添加到面板中   java找不到移动图像(或其他可单击对象)的方法   java中Do/While循环的问题   多线程使java程序在没有线程的情况下休眠   java如何在Webflux功能端点的测试中禁用Spring安全性   如果存在后退历史记录,则java WebView仅显示后退按钮   通过USB将Arduino中显示的java错误数据传输到Android   java如何使用安卓 studio从4层父节点firebase获取子节点数据   jpanel中JLabel的java搜索栏   来自gallery/camera的java Android图像预览不同