Skip to content

Feature/scale

Issue/feature addressed

It is often the case that people have the mesh produced in a third party tool in a different dimension than the CAD (M vs mm) or have non-dimensionalized. Up to now we had to often iterate and tell them to mesh again from scratch to match the desired dimensions, which is pointless, given the simplicity the module.

Proposed solution

To scale the coordinates for vertices, edgeNodes and faceNodes.

Implementation

The user passes scaleX, scaleY and/or scaleZ and the module scales the coordinates. Then we loop over VertexSet, EdgeSet (m_edgeNodes), and faceSet (m_faceNodes).

Tests

1 HO NACA0012 3D mesh.

Suggested reviewers

@dmoxey

Notes

Note: the operator introduces round/machine precision error, hence not recommended for periodic cases.

Checklist

  • Functions and classes, or changes to them, are documented.
  • User guide/documentation is updated.
  • Changelog is updated.
  • Suitable tests added for new functionality.
  • Contributed code is correctly formatted. (See the contributing guidelines).
  • License added to any new files.
  • No extraneous files have been added (e.g. compiler output or test data files).
Edited by Kaloyan Kirilov

Merge request reports

Loading