OOF2: The Manual
Name
XYTFunction (FuncSymmetricTensorFieldInit) — Initialize a symmetric tensor field with a function of x, y, and t.
Synopsis
FuncSymmetricTensorFieldInit
(fxx
,fyy
,fzz
,fyz
,fxz
,fxy
)
Details
-
Base class:
SymmetricTensorFieldInit
-
Parameters:
fxx
- The xx component of the field as a function of x, y, and t Type: A string defining a function of x and y.
fyy
- The yy component of the field as a function of x, y, and t Type: A string defining a function of x and y.
fzz
- The zz component of the field as a function of x, y, and t Type: A string defining a function of x and y.
fyz
- The yz component of the field as a function of x, y, and t Type: A string defining a function of x and y.
fxz
- The xz component of the field as a function of x, y, and t Type: A string defining a function of x and y.
fxy
- The xy component of the field as a function of x, y, and t Type: A string defining a function of x and y.
Description
FuncSymmetricTensorFieldInit
objects are used
as the initializer
argument in the OOF.Mesh.Set_Field_Initializer command when
assigning initial values to symmetric tensor fields on a
Mesh
. The parameters must be valid Python expression
which depend on the variables x
,
y
, and t
. These functions
will be used to initialize the x,
y, and z components of
the Field
at each point in the Mesh
.
![]() |
Note |
---|---|
The variable |
Examples. All of the following are legal values for the parameters:
"100*x"
-
"cos(2*pi*x) + sin(pi*(k*y+t))
where
k
is a constant defined in an input script or in the console window. "1.234"
-
where"f(x,y)"
f
is a function defined in an input script or in the console window.
The functions are character strings, and must therefore be enclosed in quotation marks in OOF2 scripts. When entering functions in the GUI, the quotation marks should not be included.