openfoam/applications/solvers
Mark Olesen 2f86cdc712 STYLE: more consistent use of dimensioned Zero
- when constructing dimensioned fields that are to be zero-initialized,
  it is preferrable to use a form such as

      dimensionedScalar(dims, Zero)
      dimensionedVector(dims, Zero)

  rather than

      dimensionedScalar("0", dims, 0)
      dimensionedVector("zero", dims, vector::zero)

  This reduces clutter and also avoids any suggestion that the name of
  the dimensioned quantity has any influence on the field's name.

  An even shorter version is possible. Eg,

      dimensionedScalar(dims)

  but reduces the clarity of meaning.

- NB: UniformDimensionedField is an exception to these style changes
  since it does use the name of the dimensioned type (instead of the
  regIOobject).
2018-03-16 10:24:03 +01:00
..
basic STYLE: more consistent use of dimensioned Zero 2018-03-16 10:24:03 +01:00
combustion STYLE: more consistent use of dimensioned Zero 2018-03-16 10:24:03 +01:00
compressible STYLE: more consistent use of dimensioned Zero 2018-03-16 10:24:03 +01:00
discreteMethods GIT: Initial state after latest Foundation merge 2016-09-20 14:49:08 +01:00
DNS COMP: update lnInclude directories when building (issue #364) 2016-12-22 11:26:29 +01:00
doc STYLE: finiteArea doc and style updates 2017-12-18 11:25:53 +00:00
electromagnetics STYLE: more consistent use of dimensioned Zero 2018-03-16 10:24:03 +01:00
financial STYLE: more consistent use of dimensioned Zero 2018-03-16 10:24:03 +01:00
finiteArea STYLE: more consistent use of dimensioned Zero 2018-03-16 10:24:03 +01:00
heatTransfer STYLE: more consistent use of dimensioned Zero 2018-03-16 10:24:03 +01:00
incompressible STYLE: more consistent use of dimensioned Zero 2018-03-16 10:24:03 +01:00
lagrangian STYLE: more consistent use of dimensioned Zero 2018-03-16 10:24:03 +01:00
multiphase STYLE: more consistent use of dimensioned Zero 2018-03-16 10:24:03 +01:00
stressAnalysis STYLE: more consistent use of dimensioned Zero 2018-03-16 10:24:03 +01:00