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 | Intent | Optional | 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 |