Applying External Force in Compressible Channel Flow Simulation #861
Replies: 1 comment
-
This should be possible to do but not trivial. The You'd need to do this in stages: first do an MFiter loop and take the intersection of each box with the boxes of cells along the walls, and compute shear stress in a ParallelFor loop over the intersection boxes. Then use parallel communication to get the average shear stress across all the intersection boxes. Then do another MFIter/ParallelFor over all the data and add the desired source term based on the computed shear stress. This will take a fairly detailed understanding of how the AMReX data structures work, so feel free to ask follow up questions as you try this. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
I want to apply and external force
f_i
to analize compressible channel flow. As shown in the figure above,f_i
depends on the viscous stress tensorτ_12
at the wallsy=H
andy=-H
.I can extract velocities at the cell closest to the wall using
Farrs[nbx](i, j, k, URHO)
andFarrs[nbx](i, j, k, RHO)
by setting j to the cell number nearest to the wall. However, I am uncertain about the formulation of the gradients.Do you have any sugestion on how to obtain this information using the following this: https://github.com/baperry2/PeleC/blob/54c8253eb53e887d45cf436d26dbb6d549d8de53/Exec/RegTests/EB-Vane/prob.H#L125
Beta Was this translation helpful? Give feedback.
All reactions