AngouriMath

Navigation

← Back to list of members

DimensionlessGroups​(System.​Collections.​Generic.​IReadOnlyList{AngouriMath.​Entity.​Variable},​System.​Collections.​Generic.​IReadOnlyDictionary{AngouriMath.​Entity.​Variable,​AngouriMath.​Core.​Dimension})

 Method (no overloads)

Summary

A basis of the dimensionless products of powers of variables:
the Buckingham π groups.

Parameter "variables"

The variables of the problem, each declared in dimensions.
Their order chooses the basis: the earlier ones are the repeating variables, and
each later variable appears to the first power in exactly one group.

Parameter "dimensions"

The dimension of each variable.

Returns

One group per variable beyond the rank of the dimension matrix, each written with
the smallest whole powers and each checked to be a pure number before it is
returned. An empty list means no product of these variables is dimensionless.

Remarks

A model whose output depends on these variables depends on them only through
the groups, which is what makes a scale model of a ship mean anything, and what
reduces the parameters a simulation has to be tuned over.

Example

using System;
using System.Collections.Generic;
using AngouriMath;
using AngouriMath.Core;
            
// Flow in a pipe: density, speed, diameter, viscosity.
var dims = new Dictionary<Entity.Variable, Dimension>
{
    ["rho"] = Dimension.Mass / Dimension.Length.Pow(3),
    ["v"] = Dimension.Length / Dimension.Time,
    ["d"] = Dimension.Length,
    ["mu"] = Dimension.Mass / (Dimension.Length * Dimension.Time),
};
foreach (var group in MathS.Dimensions.DimensionlessGroups(new Entity.Variable[] { "rho", "v", "d", "mu" }, dims))
    Console.WriteLine(group);

Prints
mu / (rho * v * d)

























Angouri © 2019-2026 · Project's repo · Site's repo · Octicons · Transparency · 6003 pages online