blockUpwind

Extends from Icons.BlockIcon5.

Information

Implements the upwind flux: Fi-1/2 = uQi-1 if u > 0 and Fi-1/2 = uQi otherwise.
By using this flux the average update rule becomes

if u > 0, and

otherwise.

Release Notes:

    Parameters

    TypeNameDefaultDescription
    IntegernworldModel1.n
    IntegergclworldModel1.gcl
    IntegergcrworldModel1.gcr

    Connectors

    TypeNameDefaultDescription
    Modelica.Blocks.Interfaces.RealInput[worldModel1.n + worldModel1.gcr + worldModel1.gcr]u
    Modelica.Blocks.Interfaces.RealOutput[worldModel1.n + 1]y
    Modelica.Blocks.Interfaces.RealInputu1

    Components

    TypeNameDefaultDescription
    PDE.World.worldModelworldModel1