This page provides information on the Simulation rollout of the Simulator.
The Simulation rollout contains the main panel for controlling the simulation process. It also displays statistical information like simulation times, and the content of the cache file for the current frame. The content can be grid channels such as Temperature, Velocity, etc., as well as particle groups. You can select which channels to export to the cache files from the Output Rollout, while the particle groups may be created by the Fire Source, as well as the Splash and Foam rollouts of the Simulator.
Most simulations require a long time to calculate and it's very convenient to let them run during the night. However, you still have to render the result in the morning, and this also consumes a lot of time. In this case, the Phoenix Scripting system can be helpful, since it enables you to execute any action at the end of the simulation, including rendering. You simply need to enable "Use Script" from the Simulation rollout, and specify the Mel or Python script file to use during the simulation. For more information, see the Nightly Simulation and Rendering section on the Tips and Tricks page.
UI Path: ||Select PhoenixFDSimulator|| > Attribute Editor > PhoenixFD Simulator > Simulation rollout |
Above the Simulation rollout are several actions for controlling the simulation.
|
Restore – Continues a simulation from the currently viewed frame on the timeline, or the latest Backup frame containing the full simulation state up to the current timeline frame, which is controlled by the Backup Interval parameter in the Output rollout. This way, a Phoenix simulation that has been stopped previously can be resumed from the point you left off, even after the software has been closed and reopened.
The ability to restore a sim is only possible when the full internal state of a Phoenix simulation has been exported. This is controlled by the Backup Interval parameter in the Output rollout, which determines how often the full simulation state is backed up. Frames with the full state are called Backup frames. When a Backup frame is currently viewed, the text "Can Restore From Here" appears in the Cache File Content list. The Restore command finds the latest Backup frame up to the current timeline frame, and continues the simulation from there. Note that restoring does not work for cache sequences imported from 3rd party software. |
Load – Loads the data from a single cache as an initial state for the simulation and starts simulating from the Start Frame the same way the Start action works. The cache can be of the .aur, .vdb, or .f3d formats and so can be imported from a 3rd party software into Phoenix. The loaded grid will be resized to fit the grid's dimensions at the Start Frame. The loaded cache does not need to be a Backup frame or to contain velocity at all - the simulator will load any available channels from the cache file and the rest of the simulated channels will be empty as when starting a brand new simulation. If you wish to smoothly continue a simulated sequence from a given frame, please use the Restore command instead.
Load Current – Same as the Load command, but instead of loading the initial state from a cache file, the currently viewed simulation data would be used.
Phoenix FD Template Dropdown – Sets the controls for the simulator. Advanced will show all the controls for the simulator, while Fire, Smoke, and Liquid will only show parameters related to those types of simulations.
|
|
This section of the UI displays information on the current simulation. |
|
Elapsed – The amount of time the simulation has run.
Estimated Left – Estimated time until the simulation reaches the set Stop frame.
Performance – How much time since the last frame was calculated and the frame calculated per second.
Used RAM – Shows how much RAM Phoenix is using while simulating.
Frame – Percentage of the current frame calculated.
Total – Percentage of total simulation complete.
Cached Frames – Shows the frame range which contains simulated caches.
This area displays information on the current simulation. Any data from channels that have been loaded into the simulator are shown. This includes the minimum and maximum ranges for each channel. Check the Grid Channel Ranges and Particle Channel Ranges pages for more information. |
Note that the Container Dimensions show the loaded cache size as seen in the scene, in the currently selected units. This size is not multiplied by the Scene Scale parameter from the Grid rollout. If you want to see how big the container is as seen by the Phoenix simulator when the Scene Scale parameter is used, check the Total Cells info in the Grid rollout.
|
For more information and examples, please see the Scripting documentation. |
|
Use Script | useScript – Enables using Mel or Python script during the simulation.
Script File | scriptFile – Specifies the Mel or Python script file to use during the simulation.
Python help in Script Editor – Shows quick usage information about the phxfd Python module inside the Script Editor.
Edit Script – Opens the script file in the default external editor.
|
Note: NUMA stands for Non-Uniform Memory Access and currently is available only on Windows. NUMA can be used to restrict the threads used for simulation based on the physical CPUs available on the system (in multiprocessor systems). In this way, better memory access can be achieved when multiple simulations are run on the same machine. |