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
Identifiers of one-dimensional physical domains. |
|
Identifiers of two-dimensional physical domains. |
|
Identifiers of three-dimensional physical domains. |
|
Number of Gmsh threads used for mesh generation. |
|
Number of registered physical domains. |
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 |
|
|
|
genertate a volume by extruding a |
|
add a line to the mesh |
|
add a point to the mesh |
Associate geometric entities with physical domains. |
|
link all geometrical entities to corresponding physical domains |
|
Compute the mesh geometry |
|
Compute mesh geometry, domains and resolution and then generate the mesh |
|
Build the mesh-refinement fields associated with the nerve geometry. |
|
|
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) |
|
Collect and optionally print basic mesh statistics. |
|
Deprecated alias of |
update and return list of mesh entities |
|
Export the current mesh-creator configuration as a dictionary. |
|
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 |
|
save only the mesh geometry in a .brep file |
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. |
|
|
Open the generated mesh in the Gmsh GUI. |