[P]arallel [Hi]gh-order [Li]brary for [P]DEs  Latest
Parallel High-Order Library for PDEs through hp-adaptive Discontinuous Galerkin methods
PHiLiP::Parameters::FlowSolverParam Class Reference

Parameters related to the flow solver. More...

#include <parameters_flow_solver.h>

Collaboration diagram for PHiLiP::Parameters::FlowSolverParam:

Public Types

enum  FlowCaseType {
  taylor_green_vortex, decaying_homogeneous_isotropic_turbulence, burgers_viscous_snapshot, naca0012,
  burgers_rewienski_snapshot, burgers_inviscid, convection_diffusion, advection,
  periodic_1D_unsteady, gaussian_bump, channel_flow, isentropic_vortex,
  kelvin_helmholtz_instability, dipole_wall_collision_normal, dipole_wall_collision_oblique, non_periodic_cube_flow,
  sod_shock_tube, low_density, leblanc_shock_tube, shu_osher_problem,
  advection_limiter, burgers_limiter, double_mach_reflection, shock_diffraction,
  astrophysical_jet, strong_vortex_shock_wave, turbulent_airfoil_3D, multi_species_vortex_advection,
  multi_species_vortex_advection_high_temp, multi_species_sod_shock_tube, multi_species_isentropic_vortex, multi_species_taylor_green_vortex_smooth,
  multi_species_taylor_green_vortex_sharp
}
 Selects the flow case to be simulated.
 
enum  DensityInitialConditionType { uniform, isothermal }
 For taylor green vortex, selects the type of density initialization.
 
enum  XVelocityInitialConditionType { laminar, turbulent, manufactured }
 For turbulent channel flow, selects the type of x-velocity initialization.
 
enum  TurbulentChannelMeshStretchingFunctionType { gullbrand, hopw, carton_de_wiart_et_al, uniform_mesh_no_stretching }
 For turbulent channel flow, selects the type of mesh stretching function.
 
enum  ApplyInitialConditionMethod { interpolate_initial_condition_function, project_initial_condition_function, read_values_from_file_and_project }
 Selects the method for applying the initial condition.
 

Public Member Functions

void parse_parameters (dealii::ParameterHandler &prm)
 Parses input file and sets the variables.
 

Static Public Member Functions

static void declare_parameters (dealii::ParameterHandler &prm)
 Declares the possible variables and sets the defaults.
 

Public Attributes

FlowCaseType flow_case_type
 Selected FlowCaseType from the input file.
 
unsigned int poly_degree
 Polynomial order (P) of the basis functions for DG.
 
unsigned int max_poly_degree_for_adaptation
 Maximum polynomial order of the DG basis functions for adaptation.
 
double final_time
 Final solution time.
 
double constant_time_step
 Constant time step.
 
double courant_friedrichs_lewy_number
 Courant-Friedrichs-Lewy (CFL) number for constant time step.
 
std::string unsteady_data_table_filename
 
bool steady_state
 Flag for solving steady state solution.
 
bool steady_state_polynomial_ramping
 Flag for steady state polynomial ramping.
 
bool error_adaptive_time_step
 Computes time step based on error.
 
bool adaptive_time_step
 Flag for computing the time step on the fly.
 
std::string sensitivity_table_filename
 
std::string input_mesh_filename
 
bool use_gmsh_mesh
 < Flag for using input mesh file
 
bool mesh_reader_verbose_output
 < Flag for verbose (true) or quiet (false) mesh reader output
 
bool use_periodic_BC_in_x
 Flag for using periodic boundary conditions in the x-direction. More...
 
bool use_periodic_BC_in_y
 Flag for using periodic boundary conditions in the y-direction.
 
bool use_periodic_BC_in_z
 Flag for using periodic boundary conditions in the z-direction.
 
int x_periodic_id_face_1
 Custom Boundary IDs for the first periodic face in the x-direction. More...
 
int x_periodic_id_face_2
 Custom Boundary IDs for the second periodic face in the x-direction.
 
int y_periodic_id_face_1
 Custom Boundary IDs for the first periodic face in the y-direction. More...
 
int y_periodic_id_face_2
 Custom Boundary IDs for the second periodic face in the y-direction.
 
int z_periodic_id_face_1
 Custom Boundary IDs for the first periodic face in the z-direction. More...
 
int z_periodic_id_face_2
 Custom Boundary IDs for the first periodic face in the z-direction.
 
bool restart_computation_from_file
 Restart computation from restart file.
 
bool output_restart_files
 Output the restart files.
 
std::string restart_files_directory_name
 Name of directory for writing and reading restart files.
 
unsigned int restart_file_index
 Index of desired restart file for restarting the computation from.
 
int output_restart_files_every_x_steps
 Outputs the restart files every x steps.
 
double output_restart_files_every_dt_time_intervals
 Outputs the restart files at time intervals of dt.
 
double write_unsteady_data_table_file_every_dt_time_intervals
 Writes the unsteady data table file at time intervals of dt.
 
unsigned int grid_degree
 Parameters related to mesh generation. More...
 
double grid_left_bound
 Left bound of domain for hyper_cube mesh based cases.
 
double grid_right_bound
 Right bound of domain for hyper_cube mesh based cases.
 
unsigned int number_of_grid_elements_per_dimension
 Number of grid elements per dimension for hyper_cube mesh based cases.
 
int number_of_mesh_refinements
 Number of refinements for naca0012 and Gaussian bump based cases.
 
double channel_height
 Height of channel for gaussian bump case.
 
double channel_length
 Width of channel for gaussian bump case.
 
double bump_height
 Height of gaussian bump.
 
int number_of_subdivisions_in_x_direction
 Number of subdivisions in x direction for gaussian bump case.
 
int number_of_subdivisions_in_y_direction
 Number of subdivisions in y direction for gaussian bump case.
 
int number_of_subdivisions_in_z_direction
 Number of subdivisions in z direction for gaussian bump case.
 
double grid_top_bound
 Maximum y bound of domain for a rectangle grid.
 
double grid_bottom_bound
 Minimum y bound of domain for a rectangle grid.
 
double grid_z_upper_bound
 Maximum z bound of domain for a rectangle grid.
 
double grid_z_lower_bound
 Minimum z bound of domain for a rectangle grid.
 
unsigned int number_of_grid_elements_x
 Number of subdivisions in x direction for a rectangle grid.
 
unsigned int number_of_grid_elements_y
 Number of subdivisions in y direction for a rectangle grid.
 
unsigned int number_of_grid_elements_z
 Number of subdivisions in z direction for a rectangle grid.
 
double expected_order_at_final_time
 For limiter convergence tests, specify expected order at final time.
 
double expected_kinetic_energy_at_final_time
 
double expected_theoretical_dissipation_rate_at_final_time
 
DensityInitialConditionType density_initial_condition_type
 Selected DensityInitialConditionType from the input file.
 
bool do_calculate_numerical_entropy
 For TGV, flag to calculate and write numerical entropy.
 
bool check_nonphysical_flow_case_behavior
 For TGV, flag to check if non-physical case dependant behaviour is encounted.
 
double turbulent_channel_friction_velocity_reynolds_number
 For channel flow, channel Reynolds number based on wall friction velocity.
 
int turbulent_channel_number_of_cells_x_direction
 For channel flow, number of cells in x-direction.
 
int turbulent_channel_number_of_cells_y_direction
 For channel flow, number of cells in y-direction.
 
int turbulent_channel_number_of_cells_z_direction
 For channel flow, number of cells in z-direction.
 
double turbulent_channel_domain_length_x_direction
 For channel flow, domain length in x-direction.
 
double turbulent_channel_domain_length_y_direction
 For channel flow, domain length in y-direction.
 
double turbulent_channel_domain_length_z_direction
 For channel flow, domain length in z-direction.
 
double relaxation_coefficient_for_turbulent_channel_flow_source_term
 For channel flow, relaxation coefficient for the source term.
 
XVelocityInitialConditionType xvelocity_initial_condition_type
 Selected XVelocityInitialConditionType from the input file.
 
TurbulentChannelMeshStretchingFunctionType turbulent_channel_mesh_stretching_function_type
 Selected DensityInitialConditionType from the input file.
 
bool do_use_stretched_mesh
 For dipole wall collision, flag to use stretched mesh.
 
bool do_compute_angular_momentum
 For dipole wall collision, flag to compute angular momentum.
 
double expected_enstrophy_at_final_time
 
double expected_palinstrophy_at_final_time
 
double expected_average_wall_shear_stress_at_final_time
 
double expected_skin_friction_coefficient_at_final_time
 
double atwood_number
 For KHI, the atwood number.
 
int number_ESFR_parameter_values
 For user defined FR parameter tests, number of values to be tested.
 
double ESFR_parameter_values_start
 For user defined FR parameter tests, value of starting FR param.
 
double ESFR_parameter_values_end
 For user defined FR parameter tests, value of final FR param.
 
ApplyInitialConditionMethod apply_initial_condition_method
 Selected ApplyInitialConditionMethod from the input file.
 
std::string input_flow_setup_filename_prefix
 
bool output_velocity_field_at_fixed_times
 Flag for outputting velocity field at fixed times.
 
std::string output_velocity_field_times_string
 String of velocity field output times.
 
unsigned int number_of_times_to_output_velocity_field
 Number of fixed times to output the velocity field.
 
bool output_vorticity_magnitude_field_in_addition_to_velocity
 Flag for outputting vorticity magnitude field in addition to velocity field.
 
bool output_density_field_in_addition_to_velocity
 Flag for outputting density field in addition to velocity field.
 
bool output_viscosity_field_in_addition_to_velocity
 Flag for outputting viscosity field in addition to velocity field.
 
bool do_compute_time_averaged_solution
 Flag for computing time-averaged solution.
 
double time_to_start_averaging
 Flag for starting time-averaged solution.
 
bool do_compute_Reynolds_stress
 Flag for computing time-averaged Reynolds stresses.
 
double time_to_start_computing_Reynolds_stress
 Flag for starting to compute Reynolds stresses. This needs to be after the time-averaging has started.
 
std::string output_flow_field_files_directory_name
 Name of directory for writing flow field files.
 
unsigned int output_velocity_number_of_subvisions
 Number of subdivisions to apply when writting the velocity field at equidistant nodes.
 
bool end_exactly_at_final_time
 Flag to adjust the last timestep such that the simulation ends exactly at final_time.
 
bool do_compute_unsteady_data_and_write_to_table
 Flag for computing unsteady data and writting to table.
 

Detailed Description

Parameters related to the flow solver.

Definition at line 12 of file parameters_flow_solver.h.

Member Data Documentation

◆ expected_average_wall_shear_stress_at_final_time

double PHiLiP::Parameters::FlowSolverParam::expected_average_wall_shear_stress_at_final_time

For turbulent channel flow integration tests, expected average wall shear stress at final time.

Definition at line 195 of file parameters_flow_solver.h.

◆ expected_enstrophy_at_final_time

double PHiLiP::Parameters::FlowSolverParam::expected_enstrophy_at_final_time

For dipole wall collision integration tests, expected enstrophy at final time.

Definition at line 189 of file parameters_flow_solver.h.

◆ expected_kinetic_energy_at_final_time

double PHiLiP::Parameters::FlowSolverParam::expected_kinetic_energy_at_final_time

For taylor green vortex integration tests, expected kinetic energy at final time.

Definition at line 135 of file parameters_flow_solver.h.

◆ expected_palinstrophy_at_final_time

double PHiLiP::Parameters::FlowSolverParam::expected_palinstrophy_at_final_time

For dipole wall collision integration tests, expected palinstrophy at final time.

Definition at line 192 of file parameters_flow_solver.h.

◆ expected_skin_friction_coefficient_at_final_time

double PHiLiP::Parameters::FlowSolverParam::expected_skin_friction_coefficient_at_final_time

For turbulent channel flow integration tests, expected skin friction coefficient at final time.

Definition at line 198 of file parameters_flow_solver.h.

◆ expected_theoretical_dissipation_rate_at_final_time

double PHiLiP::Parameters::FlowSolverParam::expected_theoretical_dissipation_rate_at_final_time

For taylor green vortex integration tests, expected theoretical kinetic energy dissipation rate at final time.

Definition at line 140 of file parameters_flow_solver.h.

◆ grid_degree

unsigned int PHiLiP::Parameters::FlowSolverParam::grid_degree

Parameters related to mesh generation.

Polynomial degree of the grid

Definition at line 112 of file parameters_flow_solver.h.

◆ input_flow_setup_filename_prefix

std::string PHiLiP::Parameters::FlowSolverParam::input_flow_setup_filename_prefix

Filename prefix of the input flow setup file. Example: 'setup' for files named setup-0000i.dat, where i is the MPI rank. For initializing the flow with values from a file. To be set when apply_initial_condition_method is read_values_from_file_and_project.

Definition at line 225 of file parameters_flow_solver.h.

◆ input_mesh_filename

std::string PHiLiP::Parameters::FlowSolverParam::input_mesh_filename

Name of the Gmsh file to be read if the flow_solver_case reads a mesh file; will read the file: input_mesh_filename.msh

Definition at line 78 of file parameters_flow_solver.h.

◆ sensitivity_table_filename

std::string PHiLiP::Parameters::FlowSolverParam::sensitivity_table_filename

Name of the output file for writing the sensitivity data; will be written to file: sensitivity_table_filename.txt

Definition at line 74 of file parameters_flow_solver.h.

◆ unsteady_data_table_filename

std::string PHiLiP::Parameters::FlowSolverParam::unsteady_data_table_filename

Name of the output file for writing the unsteady data; will be written to file: unsteady_data_table_filename.txt

Definition at line 64 of file parameters_flow_solver.h.

◆ use_periodic_BC_in_x

bool PHiLiP::Parameters::FlowSolverParam::use_periodic_BC_in_x

Flag for using periodic boundary conditions in the x-direction.

Toggle for specifiying periodic boundary conditions on x, y, or z-direction

Definition at line 84 of file parameters_flow_solver.h.

◆ x_periodic_id_face_1

int PHiLiP::Parameters::FlowSolverParam::x_periodic_id_face_1

Custom Boundary IDs for the first periodic face in the x-direction.

Custom periodic boundary condition ID in x-direction

Definition at line 90 of file parameters_flow_solver.h.

◆ y_periodic_id_face_1

int PHiLiP::Parameters::FlowSolverParam::y_periodic_id_face_1

Custom Boundary IDs for the first periodic face in the y-direction.

Custom periodic boundary condition ID in y-direction

Definition at line 95 of file parameters_flow_solver.h.

◆ z_periodic_id_face_1

int PHiLiP::Parameters::FlowSolverParam::z_periodic_id_face_1

Custom Boundary IDs for the first periodic face in the z-direction.

Custom periodic boundary condition ID in z-direction

Definition at line 100 of file parameters_flow_solver.h.


The documentation for this class was generated from the following files: