LifeV
|
Utilities. More...
#include <lifev/core/LifeV.hpp>
#include <lifev/core/array/VectorEpetra.hpp>
#include <lifev/core/array/MatrixEpetra.hpp>
#include <lifev/core/array/MapEpetra.hpp>
#include <lifev/core/filter/ExporterEnsight.hpp>
#include <lifev/core/filter/ExporterHDF5.hpp>
#include <lifev/core/filter/ExporterEmpty.hpp>
#include <lifev/core/filter/Exporter.hpp>
#include <lifev/core/mesh/RegionMesh.hpp>
#include <lifev/core/fem/FESpace.hpp>
#include <Teuchos_ScalarTraitsDecl.hpp>
#include <time.h>
#include <math.h>
#include <lifev/core/mesh/NeighborMarker.hpp>
#include <unordered_set>
Go to the source code of this file.
Namespaces | |
LifeV | |
Default Physical Solver. | |
LifeV::ElectrophysiologyUtility | |
Typedefs | |
typedef std::unordered_set< ID > | neighbors_Type |
typedef std::vector< neighbors_Type > | neighborList_Type |
Methods | |
| |
template<typename Mesh > | |
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. More... | |
template<typename Mesh > | |
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. More... | |
template<typename Mesh > | |
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. More... | |
template<typename Mesh > | |
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. More... | |
template<typename 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. More... | |
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 value from the set. More... | |
template<typename Type > | |
void | randomNPointsInSet (std::vector< Type > &container, std::vector< Type > &selectedValue, UInt N) |
Select randomly N values in a given set and update the set by deleting the chosen N values from the set. More... | |
template<typename Mesh > | |
void | randomNPointsInSetAndNeighborhood (std::vector< ID > &container, std::vector< ID > &selectedValue, std::vector< Real > &activationTime, Real deltaT, UInt N, Mesh &fullMesh, std::shared_ptr< Epetra_Comm > Comm) |
Select randomly N values in a given set and update the set by deleting the chosen N values from the set. More... | |
template<typename Type > | |
void | applyCurrentGivenSetOfPoints (std::vector< Type > &container, std::shared_ptr< VectorEpetra > appliedCurrentVector, Real valueAppliedCurrent) |
Apply given current to a set of points. More... | |
template<typename Type > | |
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. More... | |
Utilities.
This file contains a set of base utilities used to applied current on a specified point.
Definition in file ElectrophysiologyUtility.hpp.