Commit 18b9c825 authored by Simone Rossi's avatar Simone Rossi
Browse files

Added simple setup fibers methods in EMSolver

parent a9763843
......@@ -239,6 +239,41 @@ public:
}
void setupFiberVector( const std::string& fileName,
const std::string& fieldName,
const std::string& postDir = "./",
const std::string& polynomialDegree = "P1" )
{
setupMechanicalFiberVector(fileName, fieldName, postDir, polynomialDegree);
M_electroSolverPtr->setFiberPtr(getMechanicsFibers());
}
void setupMechanicalFiberVector( const std::string& fileName,
const std::string& fieldName,
const std::string& postDir = "./",
const std::string& polynomialDegree = "P1" )
{
ElectrophysiologyUtility::importVectorField (getMechanicsFibers(), fileName, fieldName, M_localMeshPtr, postDir, polynomialDegree );
}
void setupMechanicalSheetVector( const std::string& fileName,
const std::string& fieldName,
const std::string& postDir = "./",
const std::string& polynomialDegree = "P1" )
{
ElectrophysiologyUtility::importVectorField (getMechanicsSheets(), fileName, fieldName, M_localMeshPtr, postDir, polynomialDegree );
}
void setupElectroFiberVector( const std::string& fileName,
const std::string& fieldName,
const std::string& postDir = "./",
const std::string& polynomialDegree = "P1" )
{
ElectrophysiologyUtility::importVectorField (getElectroFibers(), fileName, fieldName, M_localMeshPtr, postDir, polynomialDegree );
}
void setupMechanicalFiberVector ( Real fx, Real fy, Real fz )
{
M_EMStructuralOperatorPtr -> EMMaterial() -> setupFiberVector ( fx, fy, fz);
......@@ -336,6 +371,8 @@ public:
M_commPtr = comm;
}
void showMe() const {}
protected:
public:
electroSolverPtr_Type M_electroSolverPtr;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment