Hydrostatic equilibrium boundary conditon #623
Replies: 1 comment 1 reply
-
I guess the pressure waves are emitted because the boundary conditions are not sufficiently accurate and the ghost cells are (slightly) out of equilibrium. You can quantify it by measuring the pressure gradient force between the first active cell and first ghost cell. I suggest you to improve the accuracy of the extrapolation in the calculation of the ghost cell values, as the current one implemented in the RT pgen does not look very accurate. Alternatively, you may directly apply boundary conditions on the flux. However, you need to modify the code by yourself as we do not provide such an interface at this moment. The fluxes from the Riemann solver are stored in the x(1/2/3)flux arrays, and you can modify them before they are applied in Hydro::AddFluxDivergence. |
Beta Was this translation helpful? Give feedback.
-
I've been trying to establish a hydrostatic equilibrium with constant gravity. I've used the Rayliegh-Taylor example as a starting point. Using the same style of pressure boundary condition where the ghost cell pressure is integrated from the domain pressure value is leading to pressure waves emitted on the boundary. Do you have any suggestions or resources you can point me to?
In the current case it is all hydrodynamic and there are no fields. My pressure and density profile are not linear throughout the domain.
Beta Was this translation helpful? Give feedback.
All reactions