[P]arallel [Hi]gh-order [Li]brary for [P]DEs  Latest
Parallel High-Order Library for PDEs through hp-adaptive Discontinuous Galerkin methods
turbulent_channel_flow_skin_friction_check.h
1 #ifndef __TURBULENT_CHANNEL_FLOW_SKIN_FRICTION_CHECK__
2 #define __TURBULENT_CHANNEL_FLOW_SKIN_FRICTION_CHECK__
3 
4 #include "tests.h"
5 #include "parameters/parameters_flow_solver.h"
6 #include "physics/navier_stokes.h"
7 
8 namespace PHiLiP {
9 namespace Tests {
10 
12 template <int dim, int nspecies, int nstate>
14 {
15 private:
18 public:
21  const Parameters::AllParameters *const parameters_input,
22  const dealii::ParameterHandler &parameter_handler_input);
23 
26 
28  const dealii::ParameterHandler &parameter_handler;
29 
31  const double half_channel_height;
32 
35 
36  const double y_top_wall;
37  const double y_bottom_wall;
38  const double normal_vector_top_wall;
40 
42  std::shared_ptr< Physics::NavierStokes_ChannelFlowConstantSourceTerm_WallModel<dim,nspecies,dim+2,double> > navier_stokes_channel_flow_constant_source_term_wall_model_physics;
44 
46  int run_test () const override;
47 private:
48  double get_x_velocity(const double y) const;
49  double get_x_velocity_gradient(const double y) const;
50  double get_wall_shear_stress() const;
51  double get_bulk_velocity() const;
52  double get_skin_friction_coefficient() const;
53  double get_integral_of_x_velocity(const double y_plus) const;
56 };
57 
58 } // End of Tests namespace
59 } // End of PHiLiP namespace
60 
61 #endif
double get_skin_friction_coefficient() const
returns skin friction coefficient
XVelocityInitialConditionType
For turbulent channel flow, selects the type of x-velocity initialization.
Files for the baseline physics.
Definition: ADTypes.hpp:10
TurbulentChannelFlowSkinFrictionCheck(const Parameters::AllParameters *const parameters_input, const dealii::ParameterHandler &parameter_handler_input)
Constructor.
double get_x_velocity_gradient(const double y) const
returns x-velocity gradient
double get_wall_shear_stress_from_wall_model() const
returns wall shear stress from wall model
std::shared_ptr< Physics::NavierStokes_ChannelFlowConstantSourceTerm_WallModel< dim, nspecies, dim+2, double > > navier_stokes_channel_flow_constant_source_term_wall_model_physics
Pointer to Navier-Stokes physics object for computing things on the fly.
Main parameter class that contains the various other sub-parameter classes.
const dealii::ParameterHandler & parameter_handler
Parameter handler for storing the .prm file being ran.
bool check_wall_model
Flag for checking wall model (true if uniform grid)
double get_wall_shear_stress_from_friction_reynolds_number() const
returns wall shear stress from friction Reynolds number
const XVelocityInitialConditionEnum xvelocity_initial_condition_type
Turbulent channel x-velocity initial condition type.
double get_integral_of_x_velocity(const double y_plus) const
returns integral of x-velocity
Base class of all the tests.
Definition: tests.h:17