OOF2: The Manual

Name

XYFunction (FuncScalarFieldInit) — Initialize a scalar field with a function of x and y.

Synopsis

FuncScalarFieldInit(function)

Details

  • Base class: ScalarFieldInit
  • Parameters:

    function
    A function of x and y Type: A string defining a function of x and y.

Description

FuncScalarFieldInit objects are used as the initializer argument in the OOF.Mesh.Initialize command when assigning initial values to scalar fields on a Mesh. The function parameter must be a valid Python expression which depends on the variables x and y. This function will be used to initialize the field at each point in the Mesh.

Examples.  All of the following are legal values for function:


/* OOF home */ /* OOF2 home */ /* Send mail to the OOF Team */