modelWaveEquation
Information
Wave equation
Implements the wave equation
where c is a constant value. The initial conditions are
and boundary conditions are
Because the integrator block cannot accept the equation in this form, we transform the PDE above into two first-order PDEs:
The first equation is implemented in u block, the second in v block.
The analytical solution of this problem is implemented in WaveAnalytic block.Release Notes:
Components
| Type | Name | Default | Description |
|---|---|---|---|
| PDE.World.worldModel | worldModel1 | ||
| Modelica.Blocks.Sources.RealExpression | BCLu | ||
| Modelica.Blocks.Sources.RealExpression | BCLv | ||
| Modelica.Blocks.Sources.RealExpression[worldModel1.n] | ICv | ||
| WaveIC | waveIC | ||
| Modelica.Blocks.Math.Product[worldModel1.n] | product | ||
| Modelica.Blocks.Sources.RealExpression[worldModel1.n] | Friction | ||
| Modelica.Blocks.Math.Add[worldModel1.n] | add | ||
| WaveAnalytic | waveAnalytic | ||
| Modelica.Blocks.Math.Product[worldModel1.n] | product1 | ||
| Modelica.Blocks.Sources.RealExpression[worldModel1.n] | alpha2 | ||
| PDE.MOL.SpaceDerivative.Derivatives.u_xx | u_xx | ||
| Integrator.UniversalIntegrator | u | ||
| Integrator.UniversalIntegrator | v |