material_mapping

material_mapping_mod.jpg

 

General Module Function

This module can re-assign data corresponding to:

for the purpose of grouping. This provides great flexibility for exploding models or coloring.

 

Module Input Ports

material_mapping has one input port which accepts a field containing geologic layers, materials IDs, or other integer nodal or cell data.

 

Module Output Ports

material_mapping has one output port which contains the field with modified data

 

material_mapping_panel.jpg

Module Control Panel

material_mapping has two types of controls.  

  1. The Material Type radio selector determines the type of data to be modified (remapped)

  2. There are 12 groups of type-ins.  Each group has:

    1. An "unnamed" ACTIVE toggle.  Only groups that are toggled on will process your data.

    2. From: specifies the integer starting value for that group

    3. To: specifies the integer ending value for that group

    4. Map To: specifies the integer that the range (from-to) maps to for that group

Groups are processed from Top to Bottom.  You can have overlapping groups or groups whose range falls inside a previous group.  In that event, the lower groups override the values mapped in a higher group.  

 

For example, if you have ten material ids (0 through 9) and you want to have them all be 0 except for 5 & 6 which should be 1, this can be accomplished with two groups:

  1. From 0 to 9 Map to 0

  2. From 5 to 6 Map to 1

 

Please note that in the animator, you can animate these values.  Each group has From, To and Map To values that are numbered zero through eleven (e.g. From0, MapTo5)