This package contains Waves block that computes the eigenvectors of the Euler system.
Release Notes:
| Name | Description |
|---|---|
PDE.FiniteVolume.Fluxes.Roe.Wave.Waves
Takes the averages v, a and h and computes the eigenvectors
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] | |
| input RealInput | u2[worldModel1.n + 1] | |
| output RealOutput | y[worldModel1.m, worldModel1.n + 1] | |
| output RealOutput | y1y[worldModel1.m, worldModel1.n + 1] | |
| output RealOutput | y2y[worldModel1.m, worldModel1.n + 1] |
block Waves
extends Icons.BlockIcon;
outer PDE.World.worldModel worldModel1;
parameter Integer n = worldModel1.n;
equation
for j in 1:n+1 loop
y[1, j] = 1;
y[2, j] = u[j] - u1[j];
y[3, j] = u2[j] - u[j]*u1[j];
y1y[1, j] = 1;
y1y[2, j] = u[j];
y1y[3, j] = 0.5*(u[j])^2;
y2y[1, j] = 1;
y2y[2, j] = u[j] + u1[j];
y2y[3, j] = u2[j] + u[j]*u1[j];
end for;
public
Modelica.Blocks.Interfaces.RealInput u[worldModel1.n + 1];
Modelica.Blocks.Interfaces.RealInput u1[worldModel1.n + 1];
Modelica.Blocks.Interfaces.RealInput u2[worldModel1.n + 1];
Modelica.Blocks.Interfaces.RealOutput y[worldModel1.m,worldModel1.n
+ 1];
Modelica.Blocks.Interfaces.RealOutput y1y[worldModel1.m,worldModel1.n
+ 1];
Modelica.Blocks.Interfaces.RealOutput y2y[worldModel1.m,worldModel1.n
+ 1];
end Waves;