idaholab / moose

Multiphysics Object Oriented Simulation Environment
https://www.mooseframework.org
GNU Lesser General Public License v2.1
1.76k stars 1.05k forks source link

Adding Least Squares for Skewed Cells #28838

Closed tanoret closed 2 weeks ago

tanoret commented 2 weeks ago

Motivation

The current Green-Gauss gradient scheme performs poorly in skewed cells. The reason for this is that the face values in cells with high skewness have significant errors, which leads to large errors in the gradient computation.

Below is an example for the PB-FHR case, which is supposed to have a flat velocity profile in its lower part. The oscillations shown by the Green-Gauss interpolation are quite substantial and interfere with the physics of the system.

image

Design

Impact

The proposed modification will allow us to have much more accurate results in skewed meshes

tanoret commented 2 weeks ago

Can someone add a more general label than NavierStokes please, this will benefit any application using FVs, e.g., P1 thermal radiation transport? Thanks!