To_litre

block To_litre "Convert from cubic metre to litre"
    extends Modelica.Blocks.Interfaces.PartialConversionBlock(u(unit = "m3"), y(unit = "l"));
equation
    y = SI.Conversions.to_litre(u);

    annotation (
        Icon(
            coordinateSystem(
                preserveAspectRatio = true,
                extent = {
                    {-100, -100}, 
                    {100, 100}}),
            graphics = {
                Text(
                    extent = {
                        {-20, 100}, 
                        {-100, 20}},
                    textString = "m3"), 
                Text(
                    extent = {
                        {100, -20}, 
                        {20, -100}},
                    textString = "litre")}),
        Documentation(info = "<html>\n<p>\nThis block converts the input signal from metre to litre and returns\nthe result as output signal.\n</p>\n</html>"));
end To_litre;