![]() |
|
Public Member Functions | |
StabilityProblem (const unsigned &base_n_r, const unsigned &base_n_z, const unsigned &perturbed_n_r, const unsigned &perturbed_n_z, const double &domain_height) | |
Constructor: Build base and perturbed state problems. More... | |
~StabilityProblem () | |
Destructor (empty) More... | |
void | set_initial_condition () |
Set initial conditions. More... | |
void | unsteady_run (const double &dt, const unsigned &n_timesteps, DocInfo &doc_info) |
Integrate forwards in time with timestep dt for n_timesteps. More... | |
unsigned | perform_power_method (const double &dt, const unsigned &n_timesteps, DocInfo &doc_info, const double &tolerance, const unsigned &max_iter, double &calc_eigenvalue, DoubleVector &input) |
BaseStateProblem< BASE_ELEMENT > * | base_state_problem_pt () const |
Access function for base state problem. More... | |
PerturbedStateProblem< BASE_ELEMENT, PERTURBED_ELEMENT > * | perturbed_state_problem_pt () const |
Access function for perturbed state problem. More... | |
StabilityProblem (const unsigned &base_n_r, const unsigned &base_n_z, const unsigned &perturbed_n_r, const unsigned &perturbed_n_z, const double &domain_height) | |
Constructor: Build base and perturbed state problems. More... | |
~StabilityProblem () | |
Destructor (empty) More... | |
void | set_initial_condition () |
Set initial conditions. More... | |
void | unsteady_run (const double &dt, const unsigned &n_timesteps, DocInfo &doc_info) |
Integrate forwards in time with timestep dt for n_timesteps. More... | |
unsigned | perform_power_method (const double &dt, const unsigned &n_timesteps, DocInfo &doc_info, const double &tolerance, const unsigned &max_iter, double &calc_eigenvalue, DoubleVector &input) |
BaseStateProblem< BASE_ELEMENT > * | base_state_problem_pt () const |
Access function for base state problem. More... | |
PerturbedStateProblem< BASE_ELEMENT, PERTURBED_ELEMENT > * | perturbed_state_problem_pt () const |
Access function for perturbed state problem. More... | |
StabilityProblem (const unsigned &base_n_r, const unsigned &base_n_z, const unsigned &perturbed_n_r, const unsigned &perturbed_n_z, const double &domain_height) | |
Constructor: Build base and perturbed state problems. More... | |
~StabilityProblem () | |
Destructor (empty) More... | |
void | create_trace_files (DocInfo &doc_info) |
Create trace files. More... | |
void | initialise_trace_files () |
Initialise trace files (creates column headings) More... | |
void | close_trace_files () |
Clear and close trace files. More... | |
void | initialise_dt (const double &dt) |
Initialise timestep (single dt version) More... | |
void | initialise_dt (const Vector< double > &dt) |
Initialise timestep (vector of dts version) More... | |
void | set_initial_condition () |
Set initial conditions. More... | |
void | doc_solution (DocInfo &doc_info, const bool &output_base_soln, const bool &output_perturbed_soln) |
Document base and perturbed state solutions. More... | |
void | pass_updated_nondim_parameters_to_elements () |
unsigned | perform_power_method (const double &dt, DocInfo &doc_info, const double &tolerance, const unsigned &max_iter, double &calc_eigenvalue, DoubleVector &input) |
void | base_flow_steady_newton_solve () |
void | get_perturbed_state_problem_dofs (DoubleVector &d) |
Get perturbed state dofs. More... | |
void | reset_global_time_to_zero () |
(Re-)set the global time in both problems to zero More... | |
BaseStateProblem< BASE_ELEMENT > * | base_state_problem_pt () const |
Access function for base state problem. More... | |
PerturbedStateProblem< BASE_ELEMENT, PERTURBED_ELEMENT > * | perturbed_state_problem_pt () const |
Access function for perturbed state problem. More... | |
StabilityProblem (const unsigned &base_n_r, const unsigned &base_n_z, const unsigned &perturbed_n_r, const unsigned &perturbed_n_z, const double &domain_height) | |
Constructor: Build base and perturbed state problems. More... | |
~StabilityProblem () | |
Destructor (empty) More... | |
void | create_trace_files (DocInfo &doc_info) |
Create trace files. More... | |
void | initialise_trace_files () |
Initialise trace files (creates column headings) More... | |
void | close_trace_files () |
Clear and close trace files. More... | |
void | initialise_dt (const double &dt) |
Initialise timestep (single dt version) More... | |
void | initialise_dt (const Vector< double > &dt) |
Initialise timestep (vector of dts version) More... | |
void | set_initial_condition () |
Set initial conditions. More... | |
void | doc_solution (DocInfo &doc_info, const bool &output_base_soln, const bool &output_perturbed_soln) |
Document base and perturbed state solutions. More... | |
void | pass_updated_nondim_parameters_to_elements () |
unsigned | perform_power_method (const double &dt, DocInfo &doc_info, const double &tolerance, const unsigned &max_iter, double &calc_eigenvalue, DoubleVector &input) |
void | base_flow_steady_newton_solve () |
void | get_perturbed_state_problem_dofs (DoubleVector &d) |
Get perturbed state dofs. More... | |
void | reset_global_time_to_zero () |
(Re-)set the global time in both problems to zero More... | |
BaseStateProblem< BASE_ELEMENT > * | base_state_problem_pt () const |
Access function for base state problem. More... | |
PerturbedStateProblem< BASE_ELEMENT, PERTURBED_ELEMENT > * | perturbed_state_problem_pt () const |
Access function for perturbed state problem. More... | |
StabilityProblem (const unsigned &base_n_r, const unsigned &base_n_z, const unsigned &perturbed_n_r, const unsigned &perturbed_n_z, const double &radius_inner_cylinder, const double &radius_outer_cylinder, const double &l_z) | |
Constructor: Build base and perturbed state problems. More... | |
~StabilityProblem () | |
Destructor (empty) More... | |
void | create_trace_files (DocInfo &doc_info) |
Create trace files. More... | |
void | initialise_trace_files () |
Initialise trace files (creates column headings) More... | |
void | close_trace_files () |
Clear and close trace files. More... | |
void | initialise_dt (const double &dt) |
Initialise timestep (single dt version) More... | |
void | initialise_dt (const Vector< double > &dt) |
Initialise timestep (vector of dts version) More... | |
void | set_initial_condition () |
Set initial conditions. More... | |
void | doc_solution (DocInfo &doc_info, const bool &output_base_soln, const bool &output_perturbed_soln) |
Document base and perturbed state solutions. More... | |
void | unsteady_run (const double &dt, const unsigned &n_timesteps, DocInfo &doc_info, const bool &output_base_soln, Vector< DoubleVector > &perturbed_state_dofs_over_period, Vector< DoubleVector > &base_state_dofs_over_period) |
Integrate forwards in time with timestep dt for n_timesteps. More... | |
void | unsteady_run_for_power_method (const double &dt, const unsigned &n_timesteps, DocInfo &doc_info, const DoubleVector &input_perturbed_state_dofs, DoubleVector &output_perturbed_state_dofs, const bool &output_base_soln, Vector< DoubleVector > &perturbed_state_dofs_over_period, Vector< DoubleVector > &base_state_dofs_over_period) |
unsigned | set_up_periodic_base_flow (const double &dt, const unsigned &n_timesteps, DocInfo &doc_info, const double &tolerance) |
unsigned | perform_power_method (const double &dt, const unsigned &n_timesteps, DocInfo &doc_info, const double &tolerance, const unsigned &max_iter, double &calc_eigenvalue, DoubleVector &input, Vector< DoubleVector > &base_state_dofs_over_period) |
void | get_perturbed_state_problem_dofs (DoubleVector &d) |
Get perturbed state dofs. More... | |
void | reset_global_time_to_zero () |
(Re-)set the global time in both problems to zero More... | |
const BaseStateProblem< BASE_ELEMENT > * | base_state_problem_pt () |
Access function for base state problem. More... | |
const PerturbedStateProblem< BASE_ELEMENT, PERTURBED_ELEMENT > * | perturbed_state_problem_pt () |
Access function for perturbed state problem. More... | |
void | set_first_power_method_iteration_flag_to_true () |
Switch on flag. More... | |
void | set_first_power_method_iteration_flag_to_false () |
Switch off flag. More... | |
Private Member Functions | |
void | set_perturbed_state_time_equal_to_base_state_time () |
void | set_perturbed_state_time_equal_to_base_state_time () |
void | set_perturbed_state_time_equal_to_base_state_time () |
Private Attributes | |
BaseStateProblem< BASE_ELEMENT > * | Base_state_problem_pt |
Pointer to base state problem class. More... | |
PerturbedStateProblem< BASE_ELEMENT, PERTURBED_ELEMENT > * | Perturbed_state_problem_pt |
Pointer to perturbed state problem class. More... | |
ofstream | Trace_file_periodic_base_flow |
ofstream | Trace_file_power_method |
Trace file which documents the convergence of the power method. More... | |
bool | First_power_method_iteration |
////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////// Container class for the Tuckerman counter-rotating lids stability problem
////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////// Container class for the time-periodic Taylor–Couette stability problem
|
inline |
Constructor: Build base and perturbed state problems.
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
|
inline |
|
inline |
Constructor: Build base and perturbed state problems.
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
|
inline |
|
inline |
Constructor: Build base and perturbed state problems.
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
|
inline |
|
inline |
Constructor: Build base and perturbed state problems.
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
|
inline |
|
inline |
Constructor: Build base and perturbed state problems.
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
|
inline |
|
inline |
|
inline |
|
inline |
Access function for base state problem.
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt.
|
inline |
Access function for base state problem.
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt.
|
inline |
Access function for base state problem.
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt.
|
inline |
Access function for base state problem.
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt.
|
inline |
Access function for base state problem.
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt.
|
inline |
Clear and close trace files.
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Trace_file_power_method.
|
inline |
|
inline |
Clear and close trace files.
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt, StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Trace_file_periodic_base_flow, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Trace_file_power_method.
|
inline |
Create trace files.
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, oomph::DocInfo::directory(), MergeRestartFiles::filename, GlobalPhysicalVariables::k, StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt, GlobalPhysicalVariables::Re_current, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Trace_file_power_method.
|
inline |
Create trace files.
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, oomph::DocInfo::directory(), MergeRestartFiles::filename, GlobalPhysicalVariables::k, StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt, GlobalPhysicalVariables::Re_current, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Trace_file_power_method.
|
inline |
Create trace files.
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, oomph::DocInfo::directory(), GlobalPhysicalVariables::Epsilon, MergeRestartFiles::filename, GlobalPhysicalVariables::MMC_Re_current, StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt, StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Trace_file_periodic_base_flow, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Trace_file_power_method.
|
inline |
Document base and perturbed state solutions.
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
Referenced by StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::doc_solution().
|
inline |
Document base and perturbed state solutions.
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
|
inline |
Document base and perturbed state solutions.
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::doc_solution(), and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
|
inline |
Get perturbed state dofs.
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
|
inline |
Get perturbed state dofs.
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
|
inline |
Get perturbed state dofs.
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
|
inline |
Initialise timestep (single dt version)
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
|
inline |
Initialise timestep (single dt version)
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
|
inline |
Initialise timestep (single dt version)
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
|
inline |
Initialise timestep (vector of dts version)
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
|
inline |
Initialise timestep (vector of dts version)
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
|
inline |
Initialise timestep (vector of dts version)
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
|
inline |
Initialise trace files (creates column headings)
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Trace_file_power_method.
|
inline |
Initialise trace files (creates column headings)
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Trace_file_power_method.
|
inline |
Initialise trace files (creates column headings)
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt, StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Trace_file_periodic_base_flow, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Trace_file_power_method.
|
inline |
Pass updated nondimensional parameters to the elements of both problems
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
|
inline |
Pass updated nondimensional parameters to the elements of both problems
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
unsigned StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::perform_power_method | ( | const double & | dt, |
const unsigned & | n_timesteps, | ||
DocInfo & | doc_info, | ||
const double & | tolerance, | ||
const unsigned & | max_iter, | ||
double & | calc_eigenvalue, | ||
DoubleVector & | input | ||
) |
Perform a power method with a maximum of max_iter iterations. This function requires an initial guess for the dominant eigenvector "input"and a tolerance which controls at which point the dominant eigenvalue will be deemed converged. At this point the calculated value of this eigenvalue "calc_eigenvalue" and its corresponding eigenvector "input" will be returned. The return value of this function is the number of power method iterations which were performed.
Perform a power method with a maximum of max_iter iterations. This function requires an initial guess for the dominant eigenvector "input" and a tolerance which controls at which point the dominant eigenvalue will be deemed converged. At this point the calculated value of this eigenvalue "calc_eigenvalue" and its corresponding eigenvector "input" will be returned. The return value of this function is the number of power method iterations which were performed.
References abs(), oomph::DoubleVector::dot(), i, oomph::DoubleVector::norm(), output(), p, and sqrt().
unsigned StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::perform_power_method | ( | const double & | dt, |
const unsigned & | n_timesteps, | ||
DocInfo & | doc_info, | ||
const double & | tolerance, | ||
const unsigned & | max_iter, | ||
double & | calc_eigenvalue, | ||
DoubleVector & | input | ||
) |
Perform a power method with a maximum of max_iter iterations. This function requires an initial guess for the dominant eigenvector "input"and a tolerance which controls at which point the dominant eigenvalue will be deemed converged. At this point the calculated value of this eigenvalue "calc_eigenvalue" and its corresponding eigenvector "input" will be returned. The return value of this function is the number of power method iterations which were performed.
unsigned StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::perform_power_method | ( | const double & | dt, |
const unsigned & | n_timesteps, | ||
DocInfo & | doc_info, | ||
const double & | tolerance, | ||
const unsigned & | max_iter, | ||
double & | calc_eigenvalue, | ||
DoubleVector & | input, | ||
Vector< DoubleVector > & | base_state_dofs_over_period | ||
) |
Perform a power method with a maximum of max_iter iterations. This function requires an initial guess for the dominant eigenvector "input"and a tolerance which controls at which point the dominant eigenvalue will be deemed converged. At this point the calculated value of this eigenvalue "calc_eigenvalue" and its corresponding eigenvector "input" will be returned. The return value of this function is the number of power method iterations which were performed.
References abs(), oomph::DoubleVector::dot(), i, oomph::DoubleVector::norm(), oomph::DocInfo::number(), output(), p, and sqrt().
unsigned StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::perform_power_method | ( | const double & | dt, |
DocInfo & | doc_info, | ||
const double & | tolerance, | ||
const unsigned & | max_iter, | ||
double & | calc_eigenvalue, | ||
DoubleVector & | input | ||
) |
Perform a power method with a maximum of max_iter iterations. This function requires an initial guess for the dominant eigenvector "input"and a tolerance which controls at which point the dominant eigenvalue will be deemed converged. At this point the calculated value of this eigenvalue "calc_eigenvalue" and its corresponding eigenvector "input" will be returned. The return value of this function is the number of power method iterations which were performed.
References abs(), oomph::DoubleVector::dot(), i, oomph::DoubleVector::norm(), oomph::DocInfo::number(), output(), p, and sqrt().
unsigned StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::perform_power_method | ( | const double & | dt, |
DocInfo & | doc_info, | ||
const double & | tolerance, | ||
const unsigned & | max_iter, | ||
double & | calc_eigenvalue, | ||
DoubleVector & | input | ||
) |
Perform a power method with a maximum of max_iter iterations. This function requires an initial guess for the dominant eigenvector "input"and a tolerance which controls at which point the dominant eigenvalue will be deemed converged. At this point the calculated value of this eigenvalue "calc_eigenvalue" and its corresponding eigenvector "input" will be returned. The return value of this function is the number of power method iterations which were performed.
|
inline |
Access function for perturbed state problem.
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
|
inline |
Access function for perturbed state problem.
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
|
inline |
Access function for perturbed state problem.
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
|
inline |
Access function for perturbed state problem.
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
|
inline |
Access function for perturbed state problem.
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
|
inline |
(Re-)set the global time in both problems to zero
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
|
inline |
(Re-)set the global time in both problems to zero
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
|
inline |
(Re-)set the global time in both problems to zero
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
|
inline |
Switch off flag.
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::First_power_method_iteration.
|
inline |
Switch on flag.
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::First_power_method_iteration.
|
inline |
Set initial conditions.
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
|
inline |
Set initial conditions.
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
|
inline |
Set initial conditions.
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
|
inline |
Set initial conditions.
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
|
inline |
Set initial conditions.
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
|
inlineprivate |
(Re-)set the global time in the perturbed state problem to be equal to the global time in the base state problem
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
|
inlineprivate |
(Re-)set the global time in the perturbed state problem to be equal to the global time in the base state problem
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
|
inlineprivate |
(Re-)set the global time in the perturbed state problem to be equal to the global time in the base state problem
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Base_state_problem_pt, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt.
unsigned StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::set_up_periodic_base_flow | ( | const double & | dt, |
const unsigned & | n_timesteps, | ||
DocInfo & | doc_info, | ||
const double & | tolerance | ||
) |
Integrate just the base state problem forwards in time with timestep dt for n_timesteps. Once a periodic state has been reached, set perturbed state problem's global time to be equal to the base state problem's global time and begin solving the perturbed state problem also. This function returns the number of periods taken to satisfy the "periodic state" exit criteria.
References i, n, oomph::DocInfo::number(), and sqrt().
void StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::unsteady_run | ( | const double & | dt, |
const unsigned & | n_timesteps, | ||
DocInfo & | doc_info | ||
) |
Integrate forwards in time with timestep dt for n_timesteps.
References i.
Referenced by StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::unsteady_run_for_power_method().
void StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::unsteady_run | ( | const double & | dt, |
const unsigned & | n_timesteps, | ||
DocInfo & | doc_info | ||
) |
Integrate forwards in time with timestep dt for n_timesteps.
void StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::unsteady_run | ( | const double & | dt, |
const unsigned & | n_timesteps, | ||
DocInfo & | doc_info, | ||
const bool & | output_base_soln, | ||
Vector< DoubleVector > & | perturbed_state_dofs_over_period, | ||
Vector< DoubleVector > & | base_state_dofs_over_period | ||
) |
Integrate forwards in time with timestep dt for n_timesteps.
Integrate forwards in time with timestep dt for n_timesteps Record an entire period's worth of the perturbed state problem solution in perturbed_state_dofs_over_period
References i, j, and oomph::DocInfo::number().
|
inline |
Integrate forwards in time with timestep dt for n_timesteps. Re-set the initial conditions for the perturbed state problem to be input_perturbed_state_dofs and, at the end of the timestepping loop, return the perturbed state problem's dofs
References StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::Perturbed_state_problem_pt, and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::unsteady_run().
|
private |
Pointer to base state problem class.
Referenced by StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::base_flow_steady_newton_solve(), StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::base_state_problem_pt(), StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::close_trace_files(), StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::create_trace_files(), StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::doc_solution(), StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::initialise_dt(), StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::initialise_trace_files(), StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::pass_updated_nondim_parameters_to_elements(), StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::reset_global_time_to_zero(), StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::set_initial_condition(), StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::set_perturbed_state_time_equal_to_base_state_time(), and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::StabilityProblem().
|
private |
Flag to indicate whether or not we are doing the first iteration of the power method
Referenced by StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::set_first_power_method_iteration_flag_to_false(), and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::set_first_power_method_iteration_flag_to_true().
|
private |
Pointer to perturbed state problem class.
Referenced by StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::close_trace_files(), StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::create_trace_files(), StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::doc_solution(), StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::get_perturbed_state_problem_dofs(), StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::initialise_dt(), StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::initialise_trace_files(), StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::pass_updated_nondim_parameters_to_elements(), StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::perturbed_state_problem_pt(), StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::reset_global_time_to_zero(), StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::set_initial_condition(), StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::set_perturbed_state_time_equal_to_base_state_time(), StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::StabilityProblem(), and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::unsteady_run_for_power_method().
|
private |
Trace file which documents the convergence of the base flow to a periodic state
Referenced by StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::close_trace_files(), StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::create_trace_files(), and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::initialise_trace_files().
|
private |
Trace file which documents the convergence of the power method.
Referenced by StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::close_trace_files(), StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::create_trace_files(), and StabilityProblem< BASE_ELEMENT, PERTURBED_ELEMENT >::initialise_trace_files().