Draft: AMI - added caching of weights and addressing
Applicable to rotational cases:
- stores AMI weights and addressing on the first revolution
- cached evaluations performed on subsequent revolutions to reduce computational costs
Cached values are stored in angular bins, specified using the [optional]
cacheSize entry when defining the patch in the polyMesh/boundary file, e.g.
AMI1
{
type cyclicAMI;
AMIMethod faceAreaWeightAMI;
neighbourPatch AMI2;
cacheSize 360; // New entry
transform rotational;
rotationAxis (0 0 1);
rotationCentre (0 0 0);
}
Note that the transform must also be set to rotational; the additional
rotationAxis and rotationCentre entries are used to construct a local AMI
co-ordinate system to determine the rotation angle as the mesh moves.
360 bins are created in the example above, equating to a uniform bin width of 1 degree.