39 #ifndef HEARTUTILITY_H 40 #define HEARTUTILITY_H 1
42 #include <lifev/core/LifeV.hpp> 43 #include <lifev/core/array/VectorEpetra.hpp> 44 #include <lifev/core/array/MatrixEpetra.hpp> 45 #include <lifev/core/array/MapEpetra.hpp> 46 #include <lifev/core/filter/ExporterEnsight.hpp> 47 #include <lifev/core/filter/ExporterHDF5.hpp> 48 #include <lifev/core/filter/ExporterEmpty.hpp> 49 #include <lifev/core/filter/Exporter.hpp> 50 #include <lifev/core/mesh/RegionMesh.hpp> 51 #include <lifev/core/fem/FESpace.hpp> 192 std::
cout <<
"\nzero component!!!! \t";
204 for (
int l = 0;
l <
d; ++
l)
233 std::
cout <<
"\n\nThe fiber vector in the node: " <<
i <<
" has component:";
237 std::
cout <<
"\nI will put it to: (f_x, f_y, f_z) = (1, 0, 0)\n\n";
267 for (
int l (0);
l <
d1;
l++)
415 for (
int l (0);
l <
d1;
l++)
429 std::
cout <<
"\n\nThe vector in the node: " <<
i <<
" has component:";
433 std::
cout <<
"\nI will put it to: (v_x, v_y, v_z) = (1, 0, 0)\n\n";
453 for (
int l (0);
l <
d1;
l++)
void setFibersFromFunction(std::shared_ptr< VectorEpetra > vector, std::shared_ptr< Mesh > localMesh, function_Type f)
void addNoiseToFibers(VectorEpetra &fiberVector, Real magnitude=0.01, std::vector< bool > component=std::vector< bool >(3, true))
Add random component to the fibers.
void importVectorField(std::shared_ptr< VectorEpetra > vector, const std::string &fileName, const std::string &fieldName, std::shared_ptr< Mesh > localMesh, const std::string &postDir="./")
Read vector field from HDF5 file.
void importFibers(std::shared_ptr< VectorEpetra > fiberVector, const std::string &fileName, std::shared_ptr< Mesh > localMesh, const std::string &filePath="./")
Read fiber vector field from HDF5 file.
void importScalarField(std::shared_ptr< VectorEpetra > vector, const std::string &fileName, const std::string &fieldName, std::shared_ptr< Mesh > localMesh)
Read scalar field from HDF5 file.
void importFibersFromTextFile(std::shared_ptr< VectorEpetra > fiberVector, std::string fileName, std::string filePath, int format=0)
Read fiber field from text file.