#include <VoltageInterpolaterOntoMechanicsMesh.hpp>
Public Member Functions | |
VoltageInterpolaterOntoMechanicsMesh (TetrahedralMesh< DIM, DIM > &rElectricsMesh, QuadraticMesh< DIM > &rMechanicsMesh, std::vector< std::string > &rVariableNames, std::string directory, std::string inputFileNamePrefix) |
Very simple one-method class which can be used to convert the voltage from an electrics (or electromechanics) simulation onto a coarser mechanics mesh, by interpolation. The class outputs a HDF5 file corresponding to nodes on the mechanics mesh, and converts it to CMGUI output.
Definition at line 57 of file VoltageInterpolaterOntoMechanicsMesh.hpp.
VoltageInterpolaterOntoMechanicsMesh< DIM >::VoltageInterpolaterOntoMechanicsMesh | ( | TetrahedralMesh< DIM, DIM > & | rElectricsMesh, | |
QuadraticMesh< DIM > & | rMechanicsMesh, | |||
std::vector< std::string > & | rVariableNames, | |||
std::string | directory, | |||
std::string | inputFileNamePrefix | |||
) | [inline] |
Constructor, also the main method of the class
rElectricsMesh | The electrics mesh | |
rMechanicsMesh | The mechanics mesh | |
rVariableNames | vector of names of variables contained in the input h5 file and that you want to be interpolated. | |
directory | Directory the voltage file is in | |
inputFileNamePrefix | Filename (without ".h5") of the electrics solution HDF5 file |
Definition at line 46 of file VoltageInterpolaterOntoMechanicsMesh.cpp.
References RelativeTo::ChasteTestOutput, FineCoarseMeshPair< DIM >::ComputeFineElementsAndWeightsForCoarseNodes(), PetscTools::CreateVec(), PetscTools::Destroy(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::GetDistributedVectorFactory(), AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetElement(), AbstractElement< ELEMENT_DIM, SPACE_DIM >::GetNodeGlobalIndex(), AbstractElement< ELEMENT_DIM, SPACE_DIM >::GetNumNodes(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::GetNumNodes(), HeartConfig::GetOutputDirectory(), Hdf5DataReader::GetUnlimitedDimensionValues(), Hdf5DataReader::GetVariableOverNodes(), HeartConfig::Instance(), FineCoarseMeshPair< DIM >::rGetElementsAndWeights(), HeartConfig::SetOutputDirectory(), and FineCoarseMeshPair< DIM >::SetUpBoxesOnFineMesh().