-
Notifications
You must be signed in to change notification settings - Fork 5
Tutorial 5
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.
-
Start Eidolon and select from the menu "Import" -> "Cheart Time Series".
-
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.
-
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.
-
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.
-
The filled out dialog should appear like that below. Click "OK" and wait for the data to load.
-
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.
-
Once the representation loads click "See All" and then select the representation.
-
In the "Material" section of the representation select the field "LenSq" and material name "Rainbow" and click "Apply".
-
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.
-
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.