cfd_range

Synopsis

The cfd_range User Macro processes multi-block data, setting the min/max elements of each block to either the true global values or to user-defined values.

Input Ports

Name Type Description

&in Node_Data[] Input multi-block array

Parameters

The following lists all of the parameters found in the parameter block _NAME_Params, which are accessed by the module _NAMELL_ and the UI Macro _NAMEUI_.

Name Type Description UI Control

min double user range min value Min
max double user range max value Max
lock_mode int set range mode toggle Lock to User Range

Output Ports

Name Type Description

out Node_Data[] Output multi-block array

Description

The cfd_range User Macro is a true multi-block module, the C code takes an array of blocks in and out. Actually, the output is CONNECTED to the input in V, so this is a pure reference pass-through module. It modifies the data inplace.

If locked mode is off, it scans ALL the data in ALL the blocks, and finds each data component range. It then SETS the min/max subelement in EACH block to be this value, to force global consistancy. The first data element in the first component is shown on the user-interface.

If lock mode is on, then the user type-in values on the interface or parameter block are used to force this range on all data components. This is likely to work best on just a single component, and is intended to have extract_component_ARR upstream.

Input Ports

&in

The input mult-block array of NodeData.

Parameters

&CFDRangeParams

Reference to the parameter block, which contains real instances of the min, max and lock_mode parameters.

min

User-defined min value for data if lock_mode is on.

max

User-defined max value for data if lock_mode is on.

lock_mode

Toggle the lock_mode. If on, the min/max values of the multi-block data is set to the user-defined values. If off, the true global value from the input blocks is used.

Output Ports

out

The output multi-block node data array with the min/max subelements set accordingly.

Utility Macros

The user interface is provided in the CFDRangeUI macro, and this is combined with the low-level CFDRangeNodeData module to form the User Macro cfd_range.

Example

An example application is not provided.

Files

iac_proj/cfdrange_/cfdrmacs.v contains the cfd_range User Macro and the CFDRangeUI UI Macro V definitions.

Other Notes

The CFDRangeMacs library inherits its process. As this library contains no procedural code, the process is not important. The low-level CFDRangeNodeData module, executes under the process specified in its library, not the process defined in the high-level library.

Authors

Ian Curington

Modifications

Paul G. Lever

Contact

International AVS Centre
Manchester Visualization Centre
Manchester Computing
University of Manchester
Oxford Road
Manchester
United Kingdom
M13 9PL

See Also

CFDRangeParams, CFDRangeUI, CFDRangeNodeData