Frederic Moisy wrote
Thank you very much, it works perfectly! It would be nice to also have this possibility directly from the dialog box.
It is planned to eventually include a GUI feature to be able modify the resulting finite element forms which would enable this.
Frederic Moisy wrote
By the way, I realized a suspicious thing in your driven cavity example file: there is a unphysical velocity maximum in the lower left corner of the cavity.
Since the driven cavity example does not include an outflow boundary, the pressure will only be known and uniquely defined up to a constant. This leads to a ill defined problem for the static lienar solver so to overcome this the pressure is fixed (to zero) at a single point if no outflow conditions are detected. This can also lead to an unphysical velocity at this point. Alternatively, one can also define the mean pressure which is done in the
driven cavity m-file example with the
imeanp flag
[fea,out] = ex_navierstokes2( 'imeanp', 1 );
this might lead to a more physical velocity at the cost of coupling all pressure nodes (which can lead to a more denser system matrix and expensive solution process).