nrv.fmod
Description
FIELD Models - fmod: handles extracellular field models.
fmod hosts the code to compute extracellular electrical fields and quantities. Such quantity can result from both:
electrical stimulation, handled by injecting stimulation current waveforms on electrodes. Associated computations can be performed using analitical approach (fast but relying on strong hypotheses), or using Finite Element models,
the activity of the cells. In this second case, computations are for the moment only performed with an analitical approach.
Finite Elements solver can be chosen between COMSOL (requieres extra license,
this is not the recommended choice and is maintained only for comparison with
existing results in the litterature) and FenicsX. This last solution is fully open
source and should be preferred. In this case, geometries are meshed using GMSH. All FEM
computations are handled by a subpackage called FEM
(seel below).
Note
for scientific details of how nmod works and an overview of the general implementation, refer to the ‘Scientific foundations’ section of the documentation.
Subpackages
NeuRon Virtualizer, large scale modeling of Peripheral Nervous System with random stimulation waveforms |
Classes
|
a class for material, where all the physical properties constants are stored. |
|
Objet for generic electrode description. |
|
Point source electrode. |
|
Electrode located in Finite Element Model in Comsol |
|
Longitudinal IntraFascicular Electrode for FEM models |
|
CUFF electrode for FEM models |
|
MultiPolar CUFF electrode for FEM models |
extracellular_context is a class to handle the computation of the extracellular voltage field induced by the electrical stimulation. |
|
|
Stimulation object are designed to connect all other objects requierd to analyticaly compute the external potential voltage for axons : - the material surrounding the axon (only one) - a list of electrode(s) - a list of corresponding current stimuli This class inherits from extracellular_context. |
|
FEM_based_simulation object are designed to connect all other objects required to compute the external potential voltage for axons using FEM : |
|
Object equivalent to a point source electrode for extracellular potential recording only (No stimulation) |
|
Object for recording extracellular potential of axons. |
Functions
|
Check if the electrode is a FEM based electrode |
|
Check if the electrode is a LIFE electrode |
|
Check if the electrode is a LIFE electrode |
|
Check if the electrode is an analytical based electrode |
|
check if an object is a stimulation, return True if yes, else False |
|
check if an object is a stimulation (analytical only), return True if yes, else False |
|
check if an object is a FEM stimulation, return True if yes, else False |
|
check if an object is a material, return True if yes, else False |
|
Check if the specified object is a recording point |
|
Check if the specified object is a recorder |
|
return any kind of electrod context properties from a dictionary or a json file |
return any kind of extracellular context properties from a dictionary or a json file |
|
|
Load a material by its name. |
|
check if two FEM electrodes are overlaping |
|
Open .mat material librairy file and return all lines as a dictionnary |
|
return the effective conductivity of the material. |
|
Compute the MRG Node diameters |