Nektar++
|
#include <CouplingFile.h>
Public Member Functions | |
SOLVER_UTILS_EXPORT | CouplingFile (MultiRegions::ExpListSharedPtr field) |
SOLVER_UTILS_EXPORT | ~CouplingFile () override |
Public Member Functions inherited from Nektar::SolverUtils::Coupling | |
virtual SOLVER_UTILS_EXPORT | ~Coupling () |
SOLVER_UTILS_EXPORT void | Init () |
SOLVER_UTILS_EXPORT const std::map< std::string, std::string > | GetConfig () |
SOLVER_UTILS_EXPORT std::vector< std::string > | GetSendFieldNames () |
SOLVER_UTILS_EXPORT std::vector< std::string > | GetRecvFieldNames () |
SOLVER_UTILS_EXPORT void | Finalize () |
SOLVER_UTILS_EXPORT void | Send (const int step, const NekDouble time, const Array< OneD, const Array< OneD, NekDouble > > &field, std::vector< std::string > &varNames) |
SOLVER_UTILS_EXPORT void | Receive (const int step, const NekDouble time, Array< OneD, Array< OneD, NekDouble > > &field, std::vector< std::string > &varNames) |
Static Public Member Functions | |
static SOLVER_UTILS_EXPORT CouplingSharedPtr | create (MultiRegions::ExpListSharedPtr field) |
Creates an instance of this class. More... | |
Static Public Attributes | |
static std::string | className |
Protected Member Functions | |
SOLVER_UTILS_EXPORT void | v_Init () override |
SOLVER_UTILS_EXPORT void | v_Send (const int step, const NekDouble time, const Array< OneD, const Array< OneD, NekDouble > > &field, std::vector< std::string > &varNames) override |
SOLVER_UTILS_EXPORT void | v_Receive (const int step, const NekDouble time, Array< OneD, Array< OneD, NekDouble > > &field, std::vector< std::string > &varNames) override |
Protected Member Functions inherited from Nektar::SolverUtils::Coupling | |
SOLVER_UTILS_EXPORT | Coupling (MultiRegions::ExpListSharedPtr field) |
virtual SOLVER_UTILS_EXPORT void | v_Init () |
virtual SOLVER_UTILS_EXPORT void | v_Send (const int step, const NekDouble time, const Array< OneD, const Array< OneD, NekDouble > > &field, std::vector< std::string > &varNames)=0 |
virtual SOLVER_UTILS_EXPORT void | v_Receive (const int step, const NekDouble time, Array< OneD, Array< OneD, NekDouble > > &field, std::vector< std::string > &varNames)=0 |
virtual SOLVER_UTILS_EXPORT void | v_Finalize () |
SOLVER_UTILS_EXPORT std::vector< int > | GenerateVariableMapping (std::vector< std::string > &vars, std::vector< std::string > &transVars) |
Private Attributes | |
int | m_lastSend |
int | m_lastReceive |
SessionFunctionSharedPtr | m_inputFunction |
Additional Inherited Members | |
Public Types inherited from Nektar::SolverUtils::Coupling | |
typedef std::map< std::string, std::string > | CouplingConfigMap |
Protected Attributes inherited from Nektar::SolverUtils::Coupling | |
std::string | m_couplingName |
CouplingConfigMap | m_config |
MultiRegions::ExpListSharedPtr | m_evalField |
int | m_nSendVars |
std::vector< std::string > | m_sendFieldNames |
int | m_sendSteps |
int | m_nRecvVars |
std::vector< std::string > | m_recvFieldNames |
int | m_recvSteps |
Definition at line 45 of file CouplingFile.h.
Nektar::SolverUtils::CouplingFile::CouplingFile | ( | MultiRegions::ExpListSharedPtr | field | ) |
Definition at line 51 of file CouplingFile.cpp.
References Nektar::SolverUtils::Coupling::m_config.
|
override |
Definition at line 58 of file CouplingFile.cpp.
|
inlinestatic |
Creates an instance of this class.
Definition at line 52 of file CouplingFile.h.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), Nektar::SolverUtils::CouplingSharedPtr, FilterPython_Function::field, and CellMLToNektar.cellml_metadata::p.
|
overrideprotectedvirtual |
Reimplemented from Nektar::SolverUtils::Coupling.
Definition at line 62 of file CouplingFile.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), Nektar::SolverUtils::Coupling::m_config, Nektar::SolverUtils::Coupling::m_evalField, m_inputFunction, Nektar::SolverUtils::Coupling::m_nRecvVars, Nektar::SolverUtils::Coupling::m_recvSteps, and Nektar::SolverUtils::Coupling::v_Init().
|
overrideprotectedvirtual |
Implements Nektar::SolverUtils::Coupling.
Definition at line 135 of file CouplingFile.cpp.
References ASSERTL1, FilterPython_Function::field, CellMLToNektar.pycml::format, Nektar::SolverUtils::Coupling::GenerateVariableMapping(), Nektar::SolverUtils::Coupling::m_config, Nektar::SolverUtils::Coupling::m_evalField, m_inputFunction, m_lastReceive, Nektar::SolverUtils::Coupling::m_nRecvVars, Nektar::SolverUtils::Coupling::m_recvFieldNames, Nektar::SolverUtils::Coupling::m_recvSteps, Nektar::LibUtilities::ReduceMin, and Vmath::Vcopy().
|
overrideprotectedvirtual |
Implements Nektar::SolverUtils::Coupling.
Definition at line 74 of file CouplingFile.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), FilterPython_Function::field, CellMLToNektar.pycml::format, Nektar::SolverUtils::Coupling::GenerateVariableMapping(), Nektar::SolverUtils::Coupling::m_config, Nektar::SolverUtils::Coupling::m_evalField, m_lastSend, Nektar::SolverUtils::Coupling::m_nSendVars, Nektar::SolverUtils::Coupling::m_sendFieldNames, Nektar::SolverUtils::Coupling::m_sendSteps, and Nektar::LibUtilities::PtsIO::Write().
|
static |
Definition at line 49 of file CouplingFile.h.
|
private |
Definition at line 82 of file CouplingFile.h.
Referenced by v_Init(), and v_Receive().
|
private |
Definition at line 80 of file CouplingFile.h.
Referenced by v_Receive().
|
private |
Definition at line 79 of file CouplingFile.h.
Referenced by v_Send().