OOF2: The Manual
Name
XYFunction (FuncTwoVectorFieldInit) — Initialize a two-vector field with a function of x and y.
Synopsis
FuncTwoVectorFieldInit(fx,fy)
Details
-
Base class:
TwoVectorFieldInit -
Parameters:
fx- The x component of the field as a function of x and y Type: A string defining a function of x and y.
fy- The y component of the field as a function of x and y Type: A string defining a function of x and y.
Description
FuncTwoVectorFieldInit objects are used as
the initializer argument in the OOF.Mesh.Initialize command when assigning
initial values to two-dimensional vector fields on a Mesh. The
fx and fy parameters must be
valid Python expression which depend on the variables
x and y. These functions
will be used to initialize the x and
y components of the field at each point in
the Mesh.
Examples.
All of the following are legal values for fx
or fy:
100*xcos(2*pi*x) + sin(pi*y)1.234-
wheref(x,y)fis a function defined in an input script or in the console window.
/* OOF home */ /* OOF2 home */ /* Send mail to the OOF Team */




