EIT2DProblem
- class nrv.eit.EIT2DProblem(nervefile: str, res_dname: str | None = None, label: str = '2deit_1', **parameters)[source]
End-used class for Electrical Impedance Tomography (EIT) forward simulation in neural contexts solved with a 2D approximation.
- This class extends eit_forward to provide specialized methods for setting up, meshing, and solving EIT problems in a 2D (Oyz) plan. It supports:
mesh generation with axons
physical domain assignment
finite element method (FEM) initialization
conductivity updates during the simulation.
Warning
For now the 2D approximation isn’t well documented. Further explaination will be added to the doc in the future.
Note
Mesh generation and FEM setup rely on GMSH and FEniCS/Dolfinx libraries with interface integrated into this class classes.
Conductivity calculations support various methods, including myelinated and unmyelinated axons.
Attributes
Spatial dimension of the FEM problem. |
|
File where the fem results are saved |
|
Injected current in A |
|
Injection protocole. |
|
Check if the injection protocol contains more than one pattern. |
|
Number of electrodes. |
|
Number of frequency step in the EIT simulation. |
|
Number of injection paterns in the protocol. |
|
Number of time step in the EIT simulation. |
|
File where the nerve mesh is saved |
|
File where the nerve simulation results are saved |
|
Duration of all the simulations |
|
Axial bounds used to sample axonal properties for the 2D model. |
|
current amplitude injected in uA. |
|
if true simulation resutls are save on the fligth |
Methods
|
Create a 2D EIT forward problem from a nerve description. |
|
creation of mesh file |
Clear all simulations outputs. |
|
Clear FEM results and reset result file. |
|
|
Return basic mesh statistics from the current Gmsh model. |
|
return the number of process of a given simualtion step |
Generic method returning all the atributes of an NRV_class instance |
|
|
Generic loading method for |
Rerun failed FEM simulation steps. |
|
|
Run the FEM simulation for all time step of a given task (process). |
|
Compute only a few time step of the EIT simulation and save the computed electric field in the whole domain |
|
Run the FEM simulation for all time step of a given task (process). |
|
|
|
Generic saving method for |
|
Configure the number of Gmsh meshing threads. |
|
Generic method to set any attribute of |
|
Run the eit problem for all time steps |
|
Simulate the neural context: fibres conductivity and extracellular context. |
|
Simulate the neural context: fibres conductivity and extracelullar context. |
Get the shape of the voltage results array. |