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:
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 */




