SegFault / bad allocation if same limited scheme is used in grad and div
In the tutorial case $FOAM_TUTORIALS/incompressible/pimpleFoam/laminar/planarPoiseuille/, in system/fvSchemes replace
gradSchemes
{
default Gauss linear;
}
by
gradSchemes
{
default Gauss limitedLinear phi 1;
}
and in divSchemes, replace
div(phi,U) Gauss linearUpwind grad(U);
by
div(phi,U) Gauss limitedLinear 1;
If pimpleFoam is executed, the solver crashes right after the output "PIMPLE: iteration 1" with an error message like this (tested with OpenFOAM v1812):
new cannot satisfy memory request.
This does not necessarily mean you have run out of virtual memory.
It could be due to a stack violation caused by e.g. bad use of pointers or an out of date shared library