This package contains LimitedAlpha block that computes the limithed alpha values at each cell interface.
Release Notes:
| Name | Description |
|---|---|
PDE.FiniteVolume.FluxLimiter.Limitedalpha.LimitedAlpha
Computes the limited alpha matrix from matrices f(teta) and alpha.
All other matrix entries (row # j) are set to zero.
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 + 1] | |
| input RealInput | u1[worldModel1.m, worldModel1.n + 1] | |
| output RealOutput | y[worldModel1.m, worldModel1.n + 1] |
block LimitedAlpha
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]*u1[i, j];
//y[i, j] = u[i, j]*u1[i, j+gcl-1];
end for;
end for;
public
Modelica.Blocks.Interfaces.RealInput u[worldModel1.m,worldModel1.n +
1];
Modelica.Blocks.Interfaces.RealInput u1[worldModel1.m,worldModel1.n
+ 1];
Modelica.Blocks.Interfaces.RealOutput y[worldModel1.m,worldModel1.n
+ 1];
end LimitedAlpha;