Skip to content

Tutorial 5

Eric Kerfoot edited this page Feb 8, 2017 · 2 revisions

This tutorial covers loading a time-dependent mesh which varies spatial in time with a time-dependent field. The following steps will load the data from files, the equivalent code to do the same is in tutorial5.py. The script file tutorial5a.py will produce the same results through procedural generation where the mesh is first constructed and then the field calculated.

  1. Start Eidolon and select from the menu "Import" -> "Cheart Time Series".

  2. The first step is to load the mesh topology which each timestep will use. Click the "Choose..." button in the "Topology" section and select "LinBox.T" from the tutorial/MeshData directory. Choose the "Hexahedron" geometry option.

  3. For each timestep a separate node file will be loaded containing different position values for each node in the topology. Click the "Add Node Files..." button and select every "LinBox*.X" file. Each file contains absolute node positions. If they instead contained displacements from an initial set of position values, the file containing the initial positions would be chosen by clicking the "Choose..." button and the radio option "Displacement Values" would be selected.

  4. For each timestep a data file for a field will be loaded containing field values at each timestep. Click the "Add Field Files..." button and select every "LinBox_LenSq*.D" file. This is a field of scalar values only so the dimensions values stays at 1. The loaded field will be called "LenSq" and will use the spatial topology as its own topology since none is being specified here. If one were needed it would be loaded like the spatial topology by clicking the "Choose..." button in the "Data Field Keyframes" section and setting the appropriate geometry/basis/order properties.

  5. The filled out dialog should appear like that below. Click "OK" and wait for the data to load.

  1. Click on the loaded object and create a volume representation with a refinement of 10 and "External Only" checked so that internal faces are not generated. A time-dependent representation object will be created since Eidolon automatically detects that the original object contains multiple datasets corresponding to each timestep.

  2. Once the representation loads click "See All" and then select the representation.

  3. In the "Material" section of the representation select the field "LenSq" and material name "Rainbow" and click "Apply".

  4. Notice that the "Time" box came up when the representation loaded, this is used to control playing the animation sequence. Click the button "|>" to start playing with these settings.

  5. The Frames/s value indicates the number of times Eidolon tries to redraw per second, assuming each redraw can be done quickly enough. The Steps/s value indicates how many timesteps will elapse per second, ie. how fast the data is animated. Change this to 2 and hit enter to observe the data being rendered twice as fast.

Clone this wiki locally