[P]arallel [Hi]gh-order [Li]brary for [P]DEs  Latest
Parallel High-Order Library for PDEs through hp-adaptive Discontinuous Galerkin methods
parameters_flow_solver.h
1 #ifndef __PARAMETERS_FLOW_SOLVER_H__
2 #define __PARAMETERS_FLOW_SOLVER_H__
3 
4 #include <deal.II/base/parameter_handler.h>
5 #include "parameters/parameters.h"
6 
7 namespace PHiLiP {
8 
9 namespace Parameters {
10 
13 {
14 public:
15 
18  taylor_green_vortex,
19  decaying_homogeneous_isotropic_turbulence,
20  burgers_viscous_snapshot,
21  naca0012,
22  burgers_rewienski_snapshot,
23  burgers_inviscid,
24  convection_diffusion,
25  advection,
26  periodic_1D_unsteady,
27  gaussian_bump,
28  isentropic_vortex,
29  kelvin_helmholtz_instability,
30  non_periodic_cube_flow,
31  sod_shock_tube,
32  low_density_2d,
33  leblanc_shock_tube,
34  shu_osher_problem,
35  advection_limiter,
36  burgers_limiter
37  };
39 
40  unsigned int poly_degree;
42 
43 
44  double final_time;
47 
51 
52  bool steady_state;
54 
57 
61 
64  std::string input_mesh_filename;
67 
73 
78 
83 
88 
92  unsigned int restart_file_index;
95 
97  unsigned int grid_degree;
98  double grid_left_bound;
102  double channel_height;
103  double channel_length;
104  double bump_height;
108 
111 
116 
119  uniform,
120  isothermal,
121  };
126 
129 
132  interpolate_initial_condition_function,
133  project_initial_condition_function,
134  read_values_from_file_and_project
135  };
137 
143 
149 
151 
153  static void declare_parameters (dealii::ParameterHandler &prm);
154 
156  void parse_parameters (dealii::ParameterHandler &prm);
157 };
158 
159 } // Parameters namespace
160 
161 } // PHiLiP namespace
162 
163 #endif
164 
int number_of_subdivisions_in_y_direction
Number of subdivisions in y direction for gaussian bump case.
int y_periodic_id_face_2
Custom Boundary IDs for the second periodic face in the y-direction.
FlowCaseType
Selects the flow case to be simulated.
double channel_length
Width of channel for gaussian bump case.
double final_time
Final solution time.
int y_periodic_id_face_1
Custom Boundary IDs for the first periodic face in the y-direction.
double output_restart_files_every_dt_time_intervals
Outputs the restart files at time intervals of dt.
bool error_adaptive_time_step
Computes time step based on error.
int x_periodic_id_face_1
Custom Boundary IDs for the first periodic face in the x-direction.
int number_of_subdivisions_in_z_direction
Number of subdivisions in z direction for gaussian bump case.
FlowCaseType flow_case_type
Selected FlowCaseType from the input file.
unsigned int number_of_grid_elements_per_dimension
Number of grid elements per dimension for hyper_cube mesh based cases.
bool steady_state
Flag for solving steady state solution.
int z_periodic_id_face_2
Custom Boundary IDs for the first periodic face in the z-direction.
double courant_friedrichs_lewy_number
Courant-Friedrich-Lewy (CFL) number for constant time step.
bool adaptive_time_step
Flag for computing the time step on the fly.
bool output_vorticity_magnitude_field_in_addition_to_velocity
Flag for outputting vorticity magnitude field in addition to velocity field.
bool output_velocity_field_at_fixed_times
Flag for outputting velocity field at fixed times.
int z_periodic_id_face_1
Custom Boundary IDs for the first periodic face in the z-direction.
unsigned int grid_degree
Parameters related to mesh generation.
double constant_time_step
Constant time step.
bool restart_computation_from_file
Restart computation from restart file.
double channel_height
Height of channel for gaussian bump case.
bool use_periodic_BC_in_z
Flag for using periodic boundary conditions in the z-direction.
bool output_restart_files
Output the restart files.
Files for the baseline physics.
Definition: ADTypes.hpp:10
void parse_parameters(dealii::ParameterHandler &prm)
Parses input file and sets the variables.
double bump_height
Height of gaussian bump.
bool mesh_reader_verbose_output
< Flag for verbose (true) or quiet (false) mesh reader output
unsigned int poly_degree
Polynomial order (P) of the basis functions for DG.
bool do_calculate_numerical_entropy
For TGV, flag to calculate and write numerical entropy.
bool steady_state_polynomial_ramping
Flag for steady state polynomial ramping.
std::string output_velocity_field_times_string
String of velocity field output times.
double grid_left_bound
Left bound of domain for hyper_cube mesh based cases.
unsigned int restart_file_index
Index of desired restart file for restarting the computation from.
Parameters related to the flow solver.
int output_restart_files_every_x_steps
Outputs the restart files every x steps.
bool use_periodic_BC_in_y
Flag for using periodic boundary conditions in the y-direction.
bool end_exactly_at_final_time
Flag to adjust the last timestep such that the simulation ends exactly at final_time.
int number_of_mesh_refinements
Number of refinements for naca0012 and Gaussian bump based cases.
bool use_gmsh_mesh
< Flag for using input mesh file
ApplyInitialConditionMethod
Selects the method for applying the initial condition.
unsigned int number_of_times_to_output_velocity_field
Number of fixed times to output the velocity field.
double atwood_number
For KHI, the atwood number.
int x_periodic_id_face_2
Custom Boundary IDs for the second periodic face in the x-direction.
DensityInitialConditionType
For taylor green vortex, selects the type of density initialization.
static void declare_parameters(dealii::ParameterHandler &prm)
Declares the possible variables and sets the defaults.
double grid_right_bound
Right bound of domain for hyper_cube mesh based cases.
int number_of_subdivisions_in_x_direction
Number of subdivisions in x direction for gaussian bump case.
std::string restart_files_directory_name
Name of directory for writing and reading restart files.
ApplyInitialConditionMethod apply_initial_condition_method
Selected ApplyInitialConditionMethod from the input file.
unsigned int max_poly_degree_for_adaptation
Maximum polynomial order of the DG basis functions for adaptation.
bool use_periodic_BC_in_x
Flag for using periodic boundary conditions in the x-direction.
DensityInitialConditionType density_initial_condition_type
Selected DensityInitialConditionType from the input file.
std::string output_flow_field_files_directory_name
Name of directory for writing flow field files.