55 "Perform local (linear) stability analysis (LST).");
60 f->m_writeBndFld =
false;
63 ConfigOption(
false,
"6",
"Option for quantity to compute.\n \
64 6 - scan frequency\n \
65 7 - scan spanwise wavenumber\n \
66 8 - scan both frequency and spanwise wavenumber");
68 ConfigOption(
false,
"0.1",
"Final value for the 1st quantity.");
70 ConfigOption(
false,
"10",
"Number of steps to scan the 1st range.");
72 false,
"0.1",
"Final value for the 2nd quantity (optional).");
74 false,
"10",
"Number of steps to scan the 2nd range (optional).");
84 if (
m_f->m_session->DefinesParameter(
"Pr"))
89 if (
m_f->m_session->DefinesParameter(
"Gamma"))
91 m_GAMMA =
m_f->m_session->GetParameter(
"Gamma");
94 if (
m_f->m_session->DefinesParameter(
"RGAS"))
96 m_RGAS =
m_f->m_session->GetParameter(
"RGAS");
99 if (
m_f->m_session->DefinesParameter(
"ITOLRAY"))
104 if (
m_f->m_session->DefinesParameter(
"NGLOBAL"))
109 if (
m_f->m_session->DefinesParameter(
"NLOCAL"))
114 if (
m_f->m_session->DefinesParameter(
"BETALIN"))
119 ASSERTL0(
m_f->m_session->DefinesParameter(
"FREQLIN"),
120 "The disturbance frequency for local linear stability analysis "
124 if (
m_f->m_session->DefinesParameter(
"ITSE"))
126 m_ITSE =
m_f->m_session->GetParameter(
"ITSE");
129 if (
m_f->m_session->DefinesParameter(
"INEUTRL"))
135 ofs.open(
"PSEREAD.NAM", ios::out);
140 <<
"ITSE=" <<
m_ITSE <<
"\n"
147 ofs <<
"$PSENONL\n$END\n" << endl;
167 <<
"RGAS=" <<
m_RGAS <<
"\n"
181 const long int option =
m_config[
"opt"].as<
long int>();
183 const long int numStep1 =
m_config[
"numStep1"].as<
long int>();
185 const long int numStep2 =
m_config[
"numStep2"].as<
long int>();
191 call_lst(option, &finalValue1, numStep1, &finalValue2, numStep2);
#define ASSERTL0(condition, msg)
FieldSharedPtr m_f
Field object.
std::map< std::string, ConfigOption > m_config
List of configuration values.
void call_lst(const long int &option, const NekDouble *finalValue1, const long int &numStep1, const NekDouble *finalValue2, const long int &numStep2)
ProcessLocalStabilityAnalysis(FieldSharedPtr f)
void v_Process(po::variables_map &vm) override
Write mesh to output file.
void GenerateInputFiles()
~ProcessLocalStabilityAnalysis() override
static ModuleKey className
static std::shared_ptr< Module > create(FieldSharedPtr f)
Creates an instance of this class.
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
std::shared_ptr< Field > FieldSharedPtr
std::pair< ModuleType, std::string > ModuleKey
ModuleFactory & GetModuleFactory()
Represents a command-line configuration option.