Skip to content

Fields and Variables #231

@wdeconinck

Description

@wdeconinck

I have a proposal for the Fields and Variables.

I would propose to have only 1 variable per field.
This would really improve the handling of fields and variables.

  • All variables in the "dictionary" have a unique name
    --> function-parsers could automatically use these unique variable names as arguments
  • Lengths of variables are trivial
  • A field has only 1 variable type
  • Operations on fields are now identical to operations on variables.

A field would be defined to have only one of following variable-types:
SCALAR: 1 column
VECTOR_2D: 2 columns
VECTOR_3D: 3 columns
TENSOR_2D: 4 columns
TENSOR_3D: 9 columns
ARRAY: variable columns

There is of course the "issue" of the solution-field consisting in principle out of many variables. This is really more of an exception than a rule.
I propose to just keep that field as 1 variable "solution" of the ARRAY variable-type consisting of e.g. 5 columns in the 3D Navier-Stokes case. The solution variables (e.g. rhoE ) are usually not as important as more tangible variables such pressure and temperature.
This solution-field should then be seen as a more intermediate field, just to arrive to a set an updated set of variables. A physics module or python script is then responsible for translations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions