![]() |
![]() |
![]() |
![]() |
DVextr_scalar
Synopsis
extract a scalar data element from a field's vector component
module DVextr_scalar {/* extract scalar data from a field */
Node_Data+Iparam &in {/* input field */
nnodes+req;
};
int+Iparam component; /* which component to extract */
Node_Data+Oparam out; /* output field */
method+notify_val+notify_inst upd_extr_scalar<status=1> =
"DVextr_scalar_update";
};Description
DVextr_ scalar extracts a single scalar data element from a vector component of a field with Node_Data.([a, b, c]) --> select second vector element --> (b)
Input
A reference to a field with Node_Data. The Node_Data can contain only one component. (See DVextract_comp to obtain a single component.) This component can be scalar or vector.
Output
Example
Libraries.Main.Filters.extract_scalar
File
modules/extr_scl.cUtility DVM macrosDVMextract_scalar_param, ExtractScalar
See also
![]() |
![]() |
![]() |
![]() |