基于laplace-dirichlet规则的心肌纤维定位算法。
ldrb的Python项目详细描述
基于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。
入门
许可证
ldrb
是根据gnu lgpl第3版或(由您选择)任何更高版本授权的。
ldrb
由作者和Simula研究实验室版权所有(2011-2019)。
贡献者
亨里克·芬斯伯格(henriknf@simula.no)