EIT3DProblem

class nrv.eit.EIT3DProblem(nervefile, res_dname=None, label='3deit_1', **parameters)[source]

End-used class for Electrical Impedance Tomography (EIT) forward simulation in neural contexts In a 3D.

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.

Note

Attributes

EIT3DProblem.dim

Spatial dimension of the FEM problem.

EIT3DProblem.fem_res_file

File where the fem results are saved

EIT3DProblem.i_drive_A

Injected current in A

EIT3DProblem.inj_protocol

Injection protocole.

EIT3DProblem.is_multi_patern

Check if the injection protocol contains more than one pattern.

EIT3DProblem.n_e

Number of electrodes.

EIT3DProblem.n_f

Number of frequency step in the EIT simulation.

EIT3DProblem.n_p

Number of injection paterns in the protocol.

EIT3DProblem.n_t

Number of time step in the EIT simulation.

EIT3DProblem.nerve_mesh_file

File where the nerve mesh is saved

EIT3DProblem.nerve_res_file

File where the nerve simulation results are saved

EIT3DProblem.timers_dict

Duration of all the simulations

EIT3DProblem.x_bounds_fem

Axial extent of the 3D FEM subdomain centered on the recorder position.

EIT3DProblem.i_drive

current amplitude injected in uA.

EIT3DProblem.use_backup

if true simulation resutls are save on the fligth

Methods

EIT3DProblem.__init__(nervefile[, ...])

Create a 3D EIT forward problem from a nerve description.

EIT3DProblem.build_mesh([with_axons])

creation of mesh file

EIT3DProblem.clear()

Clear all simulations outputs.

EIT3DProblem.clear_fem_res()

Clear FEM results and reset result file.

EIT3DProblem.get_nproc([which])

return the number of process of a given simualtion step

EIT3DProblem.get_parameters()

Generic method returning all the atributes of an NRV_class instance

EIT3DProblem.load(data[, blacklist])

Generic loading method for NRV_class instance

EIT3DProblem.rerun_failed_steps([...])

Rerun failed FEM simulation steps.

EIT3DProblem.run_all_fem(task_info)

Run the FEM simulation for all time step of a given task (process).

EIT3DProblem.run_and_savefem(sfile[, ...])

Compute only a few time step of the EIT simulation and save the computed electric field in the whole domain

EIT3DProblem.run_fem(task_info)

Run the FEM simulation for all time step of a given task (process).

EIT3DProblem.run_fem_1core(task_info)

EIT3DProblem.save([save, fname, blacklist])

Generic saving method for NRV_class instance.

EIT3DProblem.set_parameters(**kawrgs)

Generic method to set any attribute of NRV_class instance

EIT3DProblem.simulate_eit([save, sim_list])

Run the eit problem for all time steps

EIT3DProblem.simulate_nerve([t_start, ...])

Simulate the neural context: fibres conductivity and extracellular context.

EIT3DProblem.simulate_recording([t_start, ...])

Simulate the neural context: fibres conductivity and extracelullar context.

EIT3DProblem.v_shape()

Get the shape of the voltage results array.