OOF2: The Manual

Name

OOF.Subproblem.Field.Define — Define a Field on a Subproblem. Only defined Fields may be given values.

Synopsis

OOF.Subproblem.Field.Define(subproblem,field)

Details

  • Parent Menu: OOF.Subproblem.Field
  • Callback: function _defineField in module ooflib.engine.IO.subproblemmenu
  • Parameters:

    subproblem
    Type: The path to an existing SubProblem object.
    field
    Type: A Field object.

Description

Defining a Field on a Mesh means that the Field has values that can be computed on the Mesh: memory is allocated to store the components of the Field at the nodes of the Mesh, and values can be interpolated within the Mesh elements.

When a Field is first defined, its components are all zero everywhere. To assign Field values, use OOF.Mesh.Set_Field_Initializer and OOF.Mesh.Apply_Field_Initializers. To solve for Field values, the Field must be activated, an Equation involving the Field must be activated, and the Mesh must be solved.