This package contains DeltaU block that computes the difference between the reconstructed values + and -.
Release Notes:
| Name | Description |
|---|---|
PDE.FiniteVolume.Fluxes.Roe.DeltaU.Deltau
Takes the reconstructed values + and - and computes their difference. For example for pressure p we have
Release Notes:
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | n | worldModel1.n |
| Type | Name | Description |
|---|---|---|
| input RealInput | u[worldModel1.n + 1] | |
| input RealInput | u1[worldModel1.n + 1] | |
| output RealOutput | y[worldModel1.n + 1] |
block Deltau extends Icons.BlockIcon; outer PDE.World.worldModel worldModel1; parameter Integer n = worldModel1.n; equation for i in 1:n+1 loop y[i] = -(u[i] - u1[i]); end for; public Modelica.Blocks.Interfaces.RealInput u[worldModel1.n + 1]; Modelica.Blocks.Interfaces.RealInput u1[worldModel1.n + 1]; Modelica.Blocks.Interfaces.RealOutput y[worldModel1.n + 1]; end Deltau;