This package contains WaveP block that computes waves at each cell interface.
Release Notes:
| Name | Description |
|---|---|
PDE.FiniteVolume.FluxLimiter.Wave.WaveP
Computes the matrix j-th Waves from either the matrix alpha or Limitedalpha and the eigenvalue matrix R.
The j-th Waves matrix contains the j-th Wave of each interface.
Release Notes:
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | m | worldModel1.m | |
| Integer | n | worldModel1.n | |
| Integer | gcl | worldModel1.gcl | |
| Integer | gcr | worldModel1.gcr | |
| Integer | p | 1 |
| Type | Name | Description |
|---|---|---|
| input RealInput | u[worldModel1.m, worldModel1.n + 1] | |
| input RealInput | u1[worldModel1.m, worldModel1.m] | |
| output RealOutput | y[worldModel1.m, worldModel1.n + 1] |
block WaveP
extends Icons.BlockIcon;
outer PDE.World.worldModel worldModel1;
parameter Integer m = worldModel1.m;
parameter Integer n = worldModel1.n;
parameter Integer gcl = worldModel1.gcl;
parameter Integer gcr = worldModel1.gcr;
parameter Integer p = 1;
equation
for j in 1:n+1 loop
for i in 1:m loop
y[i, j] = u[p, j]*u1[i, p];
end for;
end for;
public
Modelica.Blocks.Interfaces.RealInput u[worldModel1.m,worldModel1.n +
1];
Modelica.Blocks.Interfaces.RealInput u1[worldModel1.m,worldModel1.m];
Modelica.Blocks.Interfaces.RealOutput y[worldModel1.m,worldModel1.n
+ 1];
end WaveP;