#include <VoltageInterpolaterOntoMechanicsMesh.hpp>
Public Member Functions | |
VoltageInterpolaterOntoMechanicsMesh (TetrahedralMesh< DIM, DIM > &rElectricsMesh, QuadraticMesh< DIM > &rMechanicsMesh, 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::string | directory, | |||
std::string | inputFileNamePrefix | |||
) | [inline] |
Constructor, also the main method of the class
rElectricsMesh | The electrics mesh | |
rMechanicsMesh | The mechanics mesh | |
directory | Directory the voltage file is in | |
inputFileNamePrefix | Filename (without ".h5") of the electrics solution HDF5 file |
Definition at line 32 of file VoltageInterpolaterOntoMechanicsMesh.cpp.
References FineCoarseMeshPair< DIM >::ComputeFineElementsAndWeightsForCoarseNodes(), PetscTools::CreateVec(), 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().