.TAeZoSysPro.PDE.Transport.UpwindFirstOrder

Information

upwindFirstOrder

This model expresses the first derivative by finite differences being a first order accuracy. The scheme used is uwpind. It means that the knowledge of the sign of the velocity is required. Therefore, the equations can not be written using conservative forms. The boundaries of the control volume do not match the face of the mesh and boundaries flux are reconstruced

For an upwind scheme, the reconstruction of u at the borders of the control volume derives:

For a non uniform grid, the location of the reconstruction u derives:
Whatever the direction of the flow, the space derivative of u at node 'i' derives:

To get the equation bellow, the following hypotheses derives:

To deals with reversal transport, the scheme has to change with the sign of the velocity. Use a conditionnal form could lead to chattering for an oscillating velocity and a suppressions of events using 'noEvent' could lead to numerical discrepansies in case of overtaking of the conditionnal expression. Therefore it has been prefered to use the following continous expression.

As the time derivative and numerical solving are taken in charge by the modelica's solver, the numerical stability is not be guarranteed because Courant-Friedrich-Lewy (CFL) number is not monitored and it is unknows where the solving uses implicit, explicit or hybrid method.
This model do not establish any equations for the boundary point (the red ones on the scheme above). It is the responsability of the user to sypply these equations when model is inherited.

The model requires as input:


Generated at 2024-12-21T19:25:56Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos