Nektar++
|
#include <FileSolution.h>
Public Member Functions | |
void | InitObject (const std::string functionName, LibUtilities::SessionReaderSharedPtr pSession, const Array< OneD, const MultiRegions::ExpListSharedPtr > pFields, std::set< std::string > &variables, std::map< std::string, int > &series, std::map< std::string, NekDouble > &time) |
void | InterpolateField (const std::string variable, Array< OneD, NekDouble > &outarray, NekDouble time) |
void | InterpolateField (const int v, Array< OneD, NekDouble > &outarray, const NekDouble time) |
NekDouble | GetStartTime () |
Protected Member Functions | |
DNekBlkMatSharedPtr | GetFloquetBlockMatrix (int nexp) |
FileFieldInterpolator () | |
~FileFieldInterpolator () | |
void | DFT (const std::string file, const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const bool timefromfile) |
void | ImportFldBase (std::string pInfile, const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, int slice, std::map< std::string, NekDouble > ¶ms) |
Import Base flow. More... | |
Protected Attributes | |
LibUtilities::SessionReaderSharedPtr | m_session |
int | m_start |
number of slices More... | |
int | m_skip |
int | m_slices |
NekDouble | m_timeStart |
period length More... | |
NekDouble | m_period |
int | m_isperiodic |
int | m_interporder |
std::map< int, Array< OneD, NekDouble > > | m_interp |
interpolation vector More... | |
std::map< std::string, int > | m_variableMap |
variables More... | |
Friends | |
class | MemoryManager< FileFieldInterpolator > |
Definition at line 52 of file FileSolution.h.
|
protected |
Definition at line 451 of file FileSolution.cpp.
|
protected |
Definition at line 447 of file FileSolution.cpp.
|
protected |
Definition at line 656 of file FileSolution.cpp.
References ASSERTL0, Nektar::LibUtilities::NekFactory< tKey, tBase, tParam >::CreateInstance(), Nektar::eWrapper, CellMLToNektar.pycml::format, GetFloquetBlockMatrix(), Nektar::LibUtilities::GetNektarFFTFactory(), ImportFldBase(), m_interp, m_interporder, m_isperiodic, m_period, m_session, m_skip, m_slices, m_start, m_timeStart, m_variableMap, Vmath::Vcopy(), and Vmath::Zero().
Referenced by InitObject().
|
protected |
Definition at line 621 of file FileSolution.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), Nektar::StdRegions::StdExpansion::DetShapeType(), Nektar::eDIAGONAL, Nektar::LibUtilities::eFourier, Nektar::LibUtilities::eFourierEvenlySpaced, Nektar::StdRegions::eFwdTrans, Nektar::StdRegions::StdExpansion::GetStdMatrix(), and m_slices.
Referenced by DFT().
NekDouble Nektar::SolverUtils::FileFieldInterpolator::GetStartTime | ( | ) |
Definition at line 805 of file FileSolution.cpp.
References m_timeStart.
|
protected |
Import Base flow.
Import field from infile and load into m_fields. This routine will also perform a BwdTrans to ensure data is in both the physical and coefficient storage.
pInFile | Filename to read. |
pFields | Array of expansion lists |
Definition at line 462 of file FileSolution.cpp.
References Nektar::LibUtilities::FieldIO::CreateForFile(), m_interp, m_session, m_variableMap, Nektar::LibUtilities::NullFieldMetaDataMap, and Vmath::Vcopy().
Referenced by DFT().
void Nektar::SolverUtils::FileFieldInterpolator::InitObject | ( | const std::string | functionName, |
LibUtilities::SessionReaderSharedPtr | pSession, | ||
const Array< OneD, const MultiRegions::ExpListSharedPtr > | pFields, | ||
std::set< std::string > & | variables, | ||
std::map< std::string, int > & | series, | ||
std::map< std::string, NekDouble > & | time | ||
) |
Definition at line 341 of file FileSolution.cpp.
References ASSERTL0, DFT(), Nektar::LibUtilities::eFunctionTypeFile, m_interporder, m_isperiodic, m_period, m_session, m_skip, m_slices, m_start, m_timeStart, and m_variableMap.
void Nektar::SolverUtils::FileFieldInterpolator::InterpolateField | ( | const int | v, |
Array< OneD, NekDouble > & | outarray, | ||
const NekDouble | time | ||
) |
Definition at line 528 of file FileSolution.cpp.
References m_interp, m_interporder, m_isperiodic, m_period, m_slices, m_timeStart, Vmath::Svtvp(), Vmath::Vcopy(), and Vmath::Zero().
void Nektar::SolverUtils::FileFieldInterpolator::InterpolateField | ( | const std::string | variable, |
Array< OneD, NekDouble > & | outarray, | ||
NekDouble | time | ||
) |
Definition at line 517 of file FileSolution.cpp.
References InterpolateField(), and m_variableMap.
Referenced by InterpolateField().
|
friend |
Definition at line 51 of file FileSolution.h.
|
protected |
interpolation vector
Definition at line 83 of file FileSolution.h.
Referenced by DFT(), ImportFldBase(), and InterpolateField().
|
protected |
Definition at line 81 of file FileSolution.h.
Referenced by DFT(), InitObject(), and InterpolateField().
|
protected |
Definition at line 80 of file FileSolution.h.
Referenced by DFT(), InitObject(), and InterpolateField().
|
protected |
Definition at line 79 of file FileSolution.h.
Referenced by DFT(), InitObject(), and InterpolateField().
|
protected |
Definition at line 72 of file FileSolution.h.
Referenced by DFT(), ImportFldBase(), and InitObject().
|
protected |
Definition at line 75 of file FileSolution.h.
Referenced by DFT(), and InitObject().
|
protected |
Definition at line 76 of file FileSolution.h.
Referenced by DFT(), GetFloquetBlockMatrix(), InitObject(), and InterpolateField().
|
protected |
number of slices
Definition at line 74 of file FileSolution.h.
Referenced by DFT(), and InitObject().
|
protected |
period length
Definition at line 78 of file FileSolution.h.
Referenced by DFT(), GetStartTime(), InitObject(), and InterpolateField().
|
protected |
variables
Definition at line 85 of file FileSolution.h.
Referenced by DFT(), ImportFldBase(), InitObject(), and InterpolateField().