apply_BC_wind_turbine Subroutine

public subroutine apply_BC_wind_turbine(self, u, v, w)

Pre-correction (called per substep after the integrator step), following Incompact3d's pre_correc: 1. cx = uxmaxgdt/dx from the post-integration field. 2. Dirichlet inflow at x=1 and convective outflow at x=nx for u,v,w: u(nx) = u(nx) - cx(u(nx) - u(nx-1)), with a uniform shift of u on the outlet that makes the flow rate out equal the flow rate in. Incompact3d balances the plain means over the planes; here the planes are weighted as the discrete divergence sees them (see wall_weights), the same thing for periodic y and z, and exact with walls, where the plain mean leaves a uniform divergence the Neumann-x projection cannot remove. 3. Free-slip walls: v = 0 on the y walls and w = 0 on the z walls. The tangential components take the even-symmetry closure, and the Neumann pressure BC gives no correction on the wall planes.

Type Bound

case_wind_turbine_t

Arguments

Type IntentOptional Attributes Name
class(case_wind_turbine_t) :: self
class(field_t), intent(inout) :: u
class(field_t), intent(inout) :: v
class(field_t), intent(inout) :: w

Calls

proc~~apply_bc_wind_turbine~~CallsGraph proc~apply_bc_wind_turbine m_case_wind_turbine::case_wind_turbine_t%apply_BC_wind_turbine proc~compute_outflow_params m_base_case::base_case_t%compute_outflow_params proc~apply_bc_wind_turbine->proc~compute_outflow_params proc~field_set_face_base m_base_backend::base_backend_t%field_set_face_base proc~apply_bc_wind_turbine->proc~field_set_face_base proc~field_set_face_from_field_base m_base_backend::base_backend_t%field_set_face_from_field_base proc~apply_bc_wind_turbine->proc~field_set_face_from_field_base proc~outflow_flow_rate_correction m_base_case::base_case_t%outflow_flow_rate_correction proc~apply_bc_wind_turbine->proc~outflow_flow_rate_correction mpi_allreduce mpi_allreduce proc~compute_outflow_params->mpi_allreduce proc~get_dims m_mesh::mesh_t%get_dims proc~compute_outflow_params->proc~get_dims proc~get_global_dims m_mesh::mesh_t%get_global_dims proc~compute_outflow_params->proc~get_global_dims proc~slice_max_sum_base m_base_backend::base_backend_t%slice_max_sum_base proc~compute_outflow_params->proc~slice_max_sum_base proc~abort_run m_logger::abort_run proc~field_set_face_base->proc~abort_run proc~field_set_face_from_field_base->proc~abort_run proc~outflow_flow_rate_correction->mpi_allreduce proc~outflow_flow_rate_correction->proc~get_dims proc~x_slice_weighted_sum_base m_base_backend::base_backend_t%x_slice_weighted_sum_base proc~outflow_flow_rate_correction->proc~x_slice_weighted_sum_base interface~str m_logger::str proc~abort_run->interface~str mpi_abort mpi_abort proc~abort_run->mpi_abort mpi_barrier mpi_barrier proc~abort_run->mpi_barrier mpi_comm_rank mpi_comm_rank proc~abort_run->mpi_comm_rank mpi_comm_size mpi_comm_size proc~abort_run->mpi_comm_size mpi_finalized mpi_finalized proc~abort_run->mpi_finalized mpi_initialized mpi_initialized proc~abort_run->mpi_initialized proc~get_dims_dataloc m_mesh::get_dims_dataloc proc~get_dims->proc~get_dims_dataloc proc~get_global_dims->proc~get_dims_dataloc proc~slice_max_sum_base->proc~abort_run proc~x_slice_weighted_sum_base->proc~abort_run