|
carputils
Doxygen code documentation for the python framework controlling openCARP
|
Functions | |
| def | PSD_algorithm (args, job, cmd, meshname, xyz, triangles, centre) |
| Phase Singularity Distribution: More... | |
| def | eikonal_solver (nodes, triangles, knownNodes, phi0) |
| def | local_bicstab (LinearOperator A_sol, LinearOperator M, f, rtol, maxiter) |
| def | csr_row_set_nz_to_val (csr, row, value=0) |
| Set all nonzero elements (elements currently in the sparsity pattern) to the given value. More... | |
| def | assign_wall_values (surface_points, all_points, surface_values) |
| assignWallValues transfers phase data from the surface mesh to the volumetric mesh. More... | |
| def | deflate (x) |
| def | planeInfo (coordinate, nodes, triangles) |
| def | assignPhaseValues (seeds, originalCoord, directions, normV, point1, point2, nodes) |
| def | makeCircle3D (startCoord, radius, seedNum, normV, point1, point2, nodes) |
| def carputils.model.protocols.PSD_algorithm.assign_wall_values | ( | surface_points, | |
| all_points, | |||
| surface_values | |||
| ) |
assignWallValues transfers phase data from the surface mesh to the volumetric mesh.
| surface_points | the coordinates of all of the nodes on the surface mesh. |
| all_points | the coordinates of all of the nodes on the volumetric mesh. |
| surface_values | the phase values corresponding with the nodes on the surface mesh. |
| def carputils.model.protocols.PSD_algorithm.assignPhaseValues | ( | seeds, | |
| originalCoord, | |||
| directions, | |||
| normV, | |||
| point1, | |||
| point2, | |||
| nodes | |||
| ) |
| def carputils.model.protocols.PSD_algorithm.csr_row_set_nz_to_val | ( | csr, | |
| row, | |||
value = 0 |
|||
| ) |
Set all nonzero elements (elements currently in the sparsity pattern) to the given value.
Useful to set to 0 mostly.
| def carputils.model.protocols.PSD_algorithm.deflate | ( | x | ) |
| def carputils.model.protocols.PSD_algorithm.eikonal_solver | ( | nodes, | |
| triangles, | |||
| knownNodes, | |||
| phi0 | |||
| ) |
| def carputils.model.protocols.PSD_algorithm.local_bicstab | ( | LinearOperator | A_sol, |
| LinearOperator | M, | ||
| f, | |||
| rtol, | |||
| maxiter | |||
| ) |
| def carputils.model.protocols.PSD_algorithm.makeCircle3D | ( | startCoord, | |
| radius, | |||
| seedNum, | |||
| normV, | |||
| point1, | |||
| point2, | |||
| nodes | |||
| ) |
| def carputils.model.protocols.PSD_algorithm.planeInfo | ( | coordinate, | |
| nodes, | |||
| triangles | |||
| ) |
| def carputils.model.protocols.PSD_algorithm.PSD_algorithm | ( | args, | |
| job, | |||
| cmd, | |||
| meshname, | |||
| xyz, | |||
| triangles, | |||
| centre | |||
| ) |
Phase Singularity Distribution:
It consists of manually placing phase singularities on the geometrical model and then solving the Eikonal equation to estimate the activation time map. Based on this initial state, you can simulate electrical wave propagation by solving the monodomain equation.
Input parser arguments (args), output directory (job.ID), struct containing imp_regions and gregions (cmd_ref), meshname, stimulation point location (x,y,z) and prepacing directory (steady_state_dir)