37 #ifndef ELECTROPHYSIOLOGYUTILITY_H 38 #define ELECTROPHYSIOLOGYUTILITY_H 1
40 #include <lifev/core/LifeV.hpp> 41 #include <lifev/core/array/VectorEpetra.hpp> 42 #include <lifev/core/array/MatrixEpetra.hpp> 43 #include <lifev/core/array/MapEpetra.hpp> 44 #include <lifev/core/filter/ExporterEnsight.hpp> 45 #include <lifev/core/filter/ExporterHDF5.hpp> 46 #include <lifev/core/filter/ExporterEmpty.hpp> 47 #include <lifev/core/filter/Exporter.hpp> 48 #include <lifev/core/mesh/RegionMesh.hpp> 49 #include <lifev/core/fem/FESpace.hpp> 50 #include <Teuchos_ScalarTraitsDecl.hpp> 53 #include <lifev/core/mesh/NeighborMarker.hpp> 54 #include <unordered_set> 270 for (
int i = 0;
i <
N;
i++)
290 for (
int i = 0;
i <
N;
i++)
void assignFunction(bcBase_Type &base)
Assign the function to the base of the BCHandler.
std::vector< neighbors_Type > neighborList_Type
Type randomPointInSet(std::vector< Type > &container)
Select randomly a value in a given set and update the set by deleting the chosen value from the set...
void allIdsPointsWithGivenFlag(std::vector< ID > &containerIds, UInt flag, std::shared_ptr< VectorEpetra > vec, std::shared_ptr< Mesh > fullMesh)
Collect all the ids of points with a given flag in a local vector for each processor.
void appliedCurrentPointsWithinRadius(std::vector< Real > &point, Real Radius, std::shared_ptr< VectorEpetra > appliedCurrentVector, Real valueAppliedCurrent, std::shared_ptr< Mesh > fullMesh)
Find all the points within radius and applied a constant current.
UInt findClosestPoint(std::vector< Real > &point, std::shared_ptr< VectorEpetra > vec, std::shared_ptr< Mesh > fullMesh, std::shared_ptr< Epetra_Comm > Comm)
Find closest point to a given one in the mesh.
void randomPointInSetAndNeighborhood(std::vector< ID > &container, std::vector< ID > &selectedPoints, neighborList_Type &neighbors)
Select randomly a point in a given set and its neighborhood and update the set by deleting the chosen...
void applyCurrentGivenSetOfPoints(std::vector< Type > &container, std::vector< Real > activationTime, std::shared_ptr< VectorEpetra > appliedCurrentVector, std::vector< Real > &valueAppliedCurrent, std::vector< UInt > &shiftVector, Real currentTime)
Apply given current with a set of PMJs.
void appliedCurrentClosestPointWithinRadius(std::vector< Real > &point, Real Radius, std::shared_ptr< VectorEpetra > appliedCurrentVector, Real valueAppliedCurrent, std::shared_ptr< Mesh > fullMesh, std::shared_ptr< Epetra_Comm > Comm)
Find closest point within radius and applied a constant current.
std::unordered_set< ID > neighbors_Type