NerveMshCreator
- class nrv.fmod.FEM.mesh_creator.NerveMshCreator(Length=10000, Outer_D=5, Nerve_D=4000, y_c=0, z_c=0, ver_level=2)[source]
Class allowing to generate Nerve shape 3D gmsh mesh with labeled physical domain Contains methodes dealing with the mesh geometries, physical domains and feilds Inherit from MshCreator class. see MshCreator for further detail
Attributes
Methods
|
initialisation of the NerveMshCreator |
|
Add CUFF electrode to the mesh |
|
|
|
Add MultiPolar CUFF electrodes to the mesh |
|
Add LIFE electrode to the mesh |
Add an axon to the mesh. |
|
|
add a box to the mesh |
|
add a x-oriented cone to mesh entities |
|
add a x-oriented cylinder to mesh entities |
|
add domains (ID + name) to a goupe of entities Caution: as to be used after all entities are placed |
|
|
|
add a line to the mesh |
|
add a point to the mesh |
link all geometrical entities to corresponding physical domains |
|
Compute the mesh geometry |
|
Compute mesh geometry, domains and resolution and then generate the mesh |
|
|
Fragmentation of the mesh important to link entities to each other |
genetate the mesh |
|
|
update and return list of mesh face (optional: with their center of mass) |
|
|
|
|
update and return list of mesh entities |
|
Generic method returning all the atributes of an NRV_class instance |
|
return the global resolution saved (usefull when no field are set) |
|
|
update and return list of mesh volumes (optional: with their center of mass) |
|
Generic loading method for NRV class instance |
|
refine mesh resolution in a list of faces or volumes IDs |
|
refine mesh resolution taking the minimum value for a list of refinment fields |
|
refine mesh resolution in a list of faces or volumes IDs |
Add a call back function which is apply to the mesh size defined by fields and return the final mesh size |
|
remove a fascicle of the FEM simulation |
|
|
Reshape a axon of the FEM simulation |
|
Reshape a fascicle of the FEM simulation |
|
Reshape the nerve of the FEM simulation |
|
Reshape the size of the FEM simulation outer box |
|
rotate volume |
|
Return extracellular context as dictionary and eventually save it as json file NB: caution, first argument is fname to match with MshCreator.save arguments |
from gmsh: Extend characteristic lengths from the boundaries inside the surface/volume |
|
|
Set which of the outer facet should be the ground (element 1) |
_summary_ |
|
|
Generic method to set any attribute of |
|
set the global resolution saved (usefull when no field are set) |
from gmsh: Level of information printed on the terminal and the message console. |
|
|