This package contains the worldModel block that provides global informations for other blocks.
Release Notes:
| Name | Description |
|---|---|
PDE.World.worldModel
The worldModel block provides information that are propagated to other blocks. If for example the user
change the number of grid points, n, this change will propagate to all blocks in the model that need this
information.
Other information that are propagated are listed in the table below. It is for example also possible to
to chose the order of the derivation.
Release Notes:
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | n | 10 | Number of grid points or cells |
| Integer | qss | 1 | First-order space derivative (qss 1: second-order, 2: fourth-order, 3: sixth-order) |
| Integer | u_xx | 1 | Second-order space derivative(u_xx Method 1: second-order, 2: fourth-order) |
| Finite Volume Method | |||
| Integer | gcl | 2 | Number of left ghost cells |
| Integer | gcr | 2 | Number of right ghost cells |
| Real | deltax | 1/n | Space interval |
| Real | deltat | 0 | Time interval |
| Integer | m | 0 | Flux Limiter: Number of unknowns in the system of equations |
| Integer | fls | 1 | Flux Limiter Method 1: Upwind, 2: Lax Wendroff, 3: Beam Warming, 4: Fromm, 5: van Leer |
model worldModel
extends PDE.Icons.BlockIcon;
parameter Integer n = 10 "Number of grid points or cells";
parameter Integer qss=1
"First-order space derivative (qss 1: second-order, 2: fourth-order, 3: sixth-order)";
parameter Integer u_xx=1
"Second-order space derivative(u_xx Method 1: second-order, 2: fourth-order)";
parameter Integer gcl = 2 "|Finite Volume Method| Number of left ghost cells";
parameter Integer gcr = 2 "|Finite Volume Method| Number of right ghost cells";
parameter Real deltax = 1/n "|Finite Volume Method| Space interval";
parameter Real deltat = 0 "|Finite Volume Method| Time interval";
parameter Integer m = 0
"|Finite Volume Method| Flux Limiter: Number of unknowns in the system of equations";
parameter Integer fls=1
"|Finite Volume Method| Flux Limiter Method 1: Upwind, 2: Lax Wendroff, 3: Beam Warming, 4: Fromm, 5: van Leer";
end worldModel;