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

    TypeNameDefaultDescription
    PDE.World.worldModelworldModel1
    Modelica.Blocks.Sources.RealExpressionBCLu
    Modelica.Blocks.Sources.RealExpressionBCLv
    Modelica.Blocks.Sources.RealExpression[worldModel1.n]ICv
    WaveICwaveIC
    Modelica.Blocks.Math.Product[worldModel1.n]product
    Modelica.Blocks.Sources.RealExpression[worldModel1.n]Friction
    Modelica.Blocks.Math.Add[worldModel1.n]add
    WaveAnalyticwaveAnalytic
    Modelica.Blocks.Math.Product[worldModel1.n]product1
    Modelica.Blocks.Sources.RealExpression[worldModel1.n]alpha2
    PDE.MOL.SpaceDerivative.Derivatives.u_xxu_xx
    Integrator.UniversalIntegratoru
    Integrator.UniversalIntegratorv