This package contains advection equation solved with the Finite Volume Methods by using the Lax-Wendroff flux.
Release Notes:
| Name | Description |
|---|---|
| AdvectionLW |
Implements the advection equation
where c is speed, with the Lax-Wendroff numerical flux. The initial condition is
and boundary condition at the left is
The analytical solution of this problem is implemented in AdvectionAnalytic block
Release Notes:
model AdvectionLW
PDE.FiniteVolume.FVMIntegrator.FVIntegrator Advection(
bcl=0, bcr=0);
Modelica.Blocks.Sources.RealExpression BCL[worldModel1.gcl](y=cos(-0.1
*time));
Modelica.Blocks.Sources.RealExpression BCR[worldModel1.gcr];
Modelica.Blocks.Sources.RealExpression velocity(y=0.1);
MOL.Examples.Diffusion.DiffusionIC diffusionIC;
inner World.worldModel worldModel1(deltat=0.2, n=40);
PDE.FiniteVolume.Fluxes.LaxWendroffFlux.LaxWendroff lW1_1;
equation
connect(BCR.y, Advection.u4);
connect(BCL.y, Advection.u3);
connect(diffusionIC.y, Advection.u2);
connect(Advection.y, lW1_1.u);
connect(velocity.y, lW1_1.u1);
connect(lW1_1.y, Advection.u);
end AdvectionLW;