Nektar++
|
#include <Field.hpp>
Public Member Functions | |
FIELD_UTILS_EXPORT | Field () |
FIELD_UTILS_EXPORT | ~Field () |
FIELD_UTILS_EXPORT void | SetUpExp (boost::program_options::variables_map &vm) |
FIELD_UTILS_EXPORT void | CreateExp (boost::program_options::variables_map &vm, bool newExp) |
FIELD_UTILS_EXPORT void | ReadFieldDefs () |
FIELD_UTILS_EXPORT MultiRegions::ExpListSharedPtr | SetUpFirstExpList (int NumHomogeneousDir, bool fldfilegiven=false) |
FIELD_UTILS_EXPORT LibUtilities::FieldIOSharedPtr | FieldIOForFile (std::string filename) |
Construct a FieldIO object for the file filename . More... | |
FIELD_UTILS_EXPORT MultiRegions::ExpListSharedPtr | AppendExpList (int NumHomogeneousDir, std::string var="DefaultVar", bool NewField=false) |
FIELD_UTILS_EXPORT void | ClearField () |
FIELD_UTILS_EXPORT void | SetupFromExpList (Array< OneD, MultiRegions::ExpListSharedPtr > &exp) |
Public Attributes | |
bool | m_verbose |
std::vector< LibUtilities::FieldDefinitionsSharedPtr > | m_fielddef |
std::vector< std::vector< double > > | m_data |
std::vector< MultiRegions::ExpListSharedPtr > | m_exp |
std::vector< std::string > | m_variables |
int | m_numHomogeneousDir |
bool | m_declareExpansionAsContField |
bool | m_declareExpansionAsDisContField |
bool | m_requireBoundaryExpansion |
bool | m_useFFT |
LibUtilities::CommSharedPtr | m_comm |
LibUtilities::CommSharedPtr | m_defComm |
LibUtilities::CommSharedPtr | m_partComm |
int | m_nParts = 1 |
po::variables_map | m_vm |
LibUtilities::SessionReaderSharedPtr | m_session |
SpatialDomains::MeshGraphSharedPtr | m_graph |
std::map< std::string, std::vector< std::string > > | m_inputfiles |
bool | m_writeBndFld |
std::vector< unsigned int > | m_bndRegionsToWrite |
bool | m_addNormals |
LibUtilities::PtsFieldSharedPtr | m_fieldPts |
LibUtilities::FieldMetaDataMap | m_fieldMetaDataMap |
Private Attributes | |
std::map< std::string, LibUtilities::FieldIOSharedPtr > | m_fld |
Map to store FieldIO instances. Key is the reader type, value is the FieldIO object. More... | |
|
inline |
Definition at line 62 of file Field.hpp.
|
inline |
|
inline |
Definition at line 675 of file Field.hpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), ASSERTL0, Nektar::Collections::eNoCollection, m_declareExpansionAsContField, m_declareExpansionAsDisContField, m_exp, m_graph, m_requireBoundaryExpansion, m_session, and m_useFFT.
Referenced by CreateExp().
|
inline |
Definition at line 985 of file Field.hpp.
References m_data, m_exp, m_fielddef, m_fieldPts, m_graph, m_session, m_variables, and Nektar::LibUtilities::NullPtsField.
Referenced by SetupFromExpList().
|
inline |
Definition at line 123 of file Field.hpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), AppendExpList(), Nektar::UnitTests::d(), m_comm, m_exp, m_fielddef, m_graph, m_numHomogeneousDir, m_session, m_variables, m_verbose, ReadFieldDefs(), SetUpFirstExpList(), Nektar::LibUtilities::Timer::Start(), Nektar::LibUtilities::Timer::Stop(), and Nektar::LibUtilities::Timer::TimePerTest().
Referenced by SetUpExp().
|
inline |
Construct a FieldIO object for the file filename
.
This routine constructs an appropriate FieldIO object for a filename through the LibUtilities::FieldIO::GetFileType function to detect the file format. The result is then cached in Field::m_fld to avoid needing to repeatedly construct the object.
filename | Filename to open. |
filename
. Definition at line 654 of file Field.hpp.
References Nektar::LibUtilities::NekFactory< tKey, tBase, tParam >::CreateInstance(), Nektar::LibUtilities::GetFieldIOFactory(), Nektar::LibUtilities::FieldIO::GetFileType(), m_comm, and m_fld.
|
inline |
Definition at line 295 of file Field.hpp.
References Nektar::StdRegions::find(), m_data, m_exp, m_fielddef, m_session, and m_variables.
Referenced by CreateExp().
|
inline |
Definition at line 111 of file Field.hpp.
References CreateExp(), m_data, m_exp, and m_graph.
|
inline |
Definition at line 335 of file Field.hpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), ASSERTL0, Nektar::LibUtilities::eFourier, Nektar::LibUtilities::eFourierEvenlySpaced, Nektar::LibUtilities::eFourierHalfModeRe, Nektar::LibUtilities::eFourierSingleMode, Nektar::Collections::eNoCollection, Nektar::LibUtilities::ePolyEvenlySpaced, m_declareExpansionAsContField, m_declareExpansionAsDisContField, m_fielddef, m_graph, m_session, and m_useFFT.
Referenced by CreateExp().
|
inline |
Definition at line 996 of file Field.hpp.
References ClearField(), m_comm, m_exp, m_graph, m_session, and m_variables.
std::vector<unsigned int> Nektar::FieldUtils::Field::m_bndRegionsToWrite |
LibUtilities::CommSharedPtr Nektar::FieldUtils::Field::m_comm |
Definition at line 93 of file Field.hpp.
Referenced by CreateExp(), FieldIOForFile(), SetupFromExpList(), and ~Field().
std::vector<std::vector<double> > Nektar::FieldUtils::Field::m_data |
Definition at line 79 of file Field.hpp.
Referenced by ClearField(), ReadFieldDefs(), and SetUpExp().
bool Nektar::FieldUtils::Field::m_declareExpansionAsContField |
Definition at line 86 of file Field.hpp.
Referenced by AppendExpList(), and SetUpFirstExpList().
bool Nektar::FieldUtils::Field::m_declareExpansionAsDisContField |
Definition at line 87 of file Field.hpp.
Referenced by AppendExpList(), and SetUpFirstExpList().
LibUtilities::CommSharedPtr Nektar::FieldUtils::Field::m_defComm |
std::vector<MultiRegions::ExpListSharedPtr> Nektar::FieldUtils::Field::m_exp |
Definition at line 80 of file Field.hpp.
Referenced by AppendExpList(), ClearField(), CreateExp(), ReadFieldDefs(), SetUpExp(), and SetupFromExpList().
std::vector<LibUtilities::FieldDefinitionsSharedPtr> Nektar::FieldUtils::Field::m_fielddef |
Definition at line 78 of file Field.hpp.
Referenced by ClearField(), CreateExp(), ReadFieldDefs(), and SetUpFirstExpList().
LibUtilities::FieldMetaDataMap Nektar::FieldUtils::Field::m_fieldMetaDataMap |
LibUtilities::PtsFieldSharedPtr Nektar::FieldUtils::Field::m_fieldPts |
Definition at line 107 of file Field.hpp.
Referenced by ClearField().
|
private |
Map to store FieldIO instances. Key is the reader type, value is the FieldIO object.
Definition at line 1023 of file Field.hpp.
Referenced by FieldIOForFile().
SpatialDomains::MeshGraphSharedPtr Nektar::FieldUtils::Field::m_graph |
Definition at line 100 of file Field.hpp.
Referenced by AppendExpList(), ClearField(), CreateExp(), SetUpExp(), SetUpFirstExpList(), and SetupFromExpList().
std::map<std::string, std::vector<std::string> > Nektar::FieldUtils::Field::m_inputfiles |
int Nektar::FieldUtils::Field::m_numHomogeneousDir |
Definition at line 84 of file Field.hpp.
Referenced by CreateExp().
LibUtilities::CommSharedPtr Nektar::FieldUtils::Field::m_partComm |
bool Nektar::FieldUtils::Field::m_requireBoundaryExpansion |
Definition at line 89 of file Field.hpp.
Referenced by AppendExpList().
LibUtilities::SessionReaderSharedPtr Nektar::FieldUtils::Field::m_session |
Definition at line 99 of file Field.hpp.
Referenced by AppendExpList(), ClearField(), CreateExp(), ReadFieldDefs(), SetUpFirstExpList(), and SetupFromExpList().
bool Nektar::FieldUtils::Field::m_useFFT |
Definition at line 91 of file Field.hpp.
Referenced by AppendExpList(), and SetUpFirstExpList().
std::vector<std::string> Nektar::FieldUtils::Field::m_variables |
Definition at line 82 of file Field.hpp.
Referenced by ClearField(), CreateExp(), ReadFieldDefs(), and SetupFromExpList().
bool Nektar::FieldUtils::Field::m_verbose |
Definition at line 77 of file Field.hpp.
Referenced by CreateExp().