This package contains Alpha block that filters the alpha matrix.
Release Notes:
| Name | Description |
|---|---|
PDE.FiniteVolume.FluxLimiter.Alpha.Alpha
This block just filter the input matrix alpha, with boundary conditions, to the output matrix alpha without boundary conditions.
Release Notes:
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | n | worldModel1.n | |
| Integer | m | worldModel1.m | |
| Integer | gcl | worldModel1.gcl | |
| Integer | gcr | worldModel1.gcr | |
| Integer | p | 1 |
| Type | Name | Description |
|---|---|---|
| input RealInput | u[worldModel1.m, worldModel1.n + worldModel1.gcl + worldModel1.gcr - 1] | |
| output RealOutput | y[worldModel1.m, worldModel1.n + 1] |
block Alpha
extends Icons.BlockIcon;
outer PDE.World.worldModel worldModel1;
parameter Integer n = worldModel1.n;
parameter Integer m = worldModel1.m;
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[i, j+gcl-1];
end for;
end for;
public
Modelica.Blocks.Interfaces.RealInput u[worldModel1.m,worldModel1.n +
worldModel1.gcl + worldModel1.gcr - 1];
Modelica.Blocks.Interfaces.RealOutput y[worldModel1.m,worldModel1.n
+ 1];
end Alpha;