Python Library Documentation¶
SimNIBS main programming language is Python. Here you can see documentation for the main modules used in SimNIBS.
I/O Functions¶
Reads a gmsh '.msh' file |
|
Writes a gmsh 'msh' file |
|
Function to read FreeSurfer surface files |
|
Writes a FreeSurfer surface Only the surfaces (triangles) are writen to the FreeSurfer surface file |
|
Reads a gifti surface |
|
Reads a freesurfer .curv file |
|
Writes a freesurfer .curv file |
|
Reads mesh surface in a .stl file |
|
Writes a .geo file with spheres in specified positions |
|
Writes a .geo file with text in specified positions |
Mesh Classes¶
class to handle the meshes. |
|
class to handle the node information: |
|
Mesh elements. |
|
Data (scalar, vector or tensor) defined in mesh nodes. |
|
Data (scalar, vector or tensor) defined in mesh elements. |
Transformations¶
Warps a set of coordinates in subject space to MNI space |
|
Warps a set of coordinates in MNI space to subject space |
|
Loads a brain atlas based of the FreeSurfer fsaverage template |
Utilities¶
Defines the Templates for file names used in SimNIBS |
|
Loads a brain atlas based of the FreeSurfer fsaverage template |
|
Class to find files for a given subject |
Simulations¶
Calculates the magnetic field caused by a current density distribution J |
|
Given a mesh and the electric potentials at the nodes, calculates the fields |
|
Simulates a tDCS electric potential. |
|
Simulates a tDCS electric potential using Neumann boundary conditions on the electrodes. |
|
Simulates tDCS fields using Neumann boundary conditions and writes the output electric fields to an HDF5 file. |
|
Simulates a TMS electric potential from a dA/dt field. |
|
Simulates TMS fields using a coil + matsimnibs + dIdt definition. |
|
Function for running a large amount of TMS simulations. |
|
Electric dipole simulations using the partial integration method |