Files
openfoam/applications/test
Mark Olesen 8e6f2ca5de ENH: additional Field normalise method (#2444)
- for most field types this is a no-op, but for a field of floatVector
  or doubleVector (eg, vector and solveVector) it will normalise each
  element with divide-by-zero protection.

  More reliable and efficient than dividing a field by the mag of itself
  (even with VSMALL protection).
  Applied to FieldField and GeometricField as well.

  Eg,
      fld.normalise();
  vs.
      fld /= mag(fld) + VSMALL;

ENH: support optional tolerance for vector::normalise

- for cases where tolerances larger than ROOTVSMALL are preferable.
  Not currently available for the field method (a templating question).

ENH: vector::removeCollinear method

- when working with geometries it is frequently necessary to have a
  normal vector without any collinear components. The removeCollinear
  method provides for clearer, compacter code.

  Eg,
      vector edgeNorm = ...;

      const vector edgeDirn = e.unitVec(points());

      edgeNorm.removeCollinear(edgeDirn);
      edgeNorm.normalise();

  vs.
      vector edgeNorm = ...;

      const vector edgeDirn = e.unitVec(points());

      edgeNorm -= edgeDirn*(edgeDirn & edgeNorm);
      edgeNorm /= mag(edgeNorm);
2022-04-28 15:31:44 +02:00
..
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2021-11-26 12:24:35 +01:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2022-02-10 16:46:13 +01:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2020-10-07 09:17:00 +02:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2021-12-20 14:18:01 +00:00
2021-12-20 14:18:01 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2021-11-15 19:34:01 +01:00
2019-10-31 14:48:44 +00:00
2021-12-20 14:18:01 +00:00
2019-12-13 12:33:23 +01:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2019-10-31 14:48:44 +00:00
2021-12-20 14:18:01 +00:00