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 number of the 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 |
|
x bounds of the nerve section over which FEM is simulated |
|
current amplitude injected in uA. |
|
if true simulation resutls are save on the fligth |
Methods
|
Initialize the EIT forward simulation class. |
|
creation of mesh file |
Clear all simulations outputs. |
|
Clear FEM results and reset result file. |
|
|
|
|
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 |
|
|
|
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. |