Hqueue Distributed Simulations(Houdini分机解算)
2016-02-16 22:55
661 查看
Distributed Simulation
There are mainly two ways of distributing the simulation in Houdini.1. Distributing one frame per machine.
2. Distributing one frame of simulation on Multiple machine.
Distribution of the simulation is done using slicing, that is partitioning the effect into slices and then each slice is solved on a separate machine.
The slicing is done in different ways:-
1. Grid Based Simulation are distributed by slicing up the volume into equal size sub volumes.
2. Particle Based Simulation (particle Fluids), Cloth and Wire Simulation are sliced manually using cutting planes.
Other way of Distribution is using Clustered fluid Simulation for smoke and pyro simulation. Clustering partitions a large or sparsely-distributed smoke or pyro simulation
into multiple fluid boxes instead of one giant box. This works well and output volumes blend visually. Can be distributed to multiple processes and/or machines on a farm.
Setting up Slicing
Steps of Slicing for Particle fluid simulation1. Select the flip-fluid object inside AutoDopNetwork and click on one of the slicing tools found in the Particle Fluids Shelf shown in the image below. This will divide the particle fluid simulation.
![](http://www.dfx.co.jp/dftalk/wp-content/uploads/2014/02/0059_dfs_df_talk_slicingtool-300x71.jpg)
Slice by Plane Node is added after flipfluidobject node inside the AutoDopNetwork, Please check the below image for the change in the Network.
![](http://www.dfx.co.jp/dftalk/wp-content/uploads/2014/02/0059_dfs_df_talk_distribute_Particle_Tool_02-300x163.jpg)
2. After slicing is done, the next step is to choose the distribution method, for that click on the Distribute Particle Fluid Tool in Particle Fluid Shelf, It will ask to select the particle fluid or fluids to distribute.
![](http://www.dfx.co.jp/dftalk/wp-content/uploads/2014/02/0059_dfs_df_talk_distribute_Particle_Tool1-300x63.jpg)
3. A GUI will popup for Selecting Distribution Method.
If you specify no partitioning, it will simulate the entire simulation on one machine.
Slicing will partition the fluid into slices. As we are setting up slicing, please click on the Slicing Button.
![](http://www.dfx.co.jp/dftalk/wp-content/uploads/2014/02/0059_dfs_df_talk_distribute_Particle_Tool_021-300x163.jpg)
4. Step3 added few nodes in the network, These are the nodes added to the AutoDopNetwork, Distribute_flipfluidobject and Distribute_flipfluidobject_Controls, Please check the below image.
![](http://www.dfx.co.jp/dftalk/wp-content/uploads/2014/02/0059_dfs_df_talk_distribute_Particle_Tool_03-300x145.jpg)
5. Step3 added distribute_flipfluidobject node at the Obj Network
![](http://www.dfx.co.jp/dftalk/wp-content/uploads/2014/02/0059_dfs_df_talk_distribute_Particle_Tool_04-300x145.jpg)
6. Step3 added a render node in /out Network, distributedsim HQueue Simulation render node in /out Network to render the simulation with Hqueue.
![](http://www.dfx.co.jp/dftalk/wp-content/uploads/2014/02/0059_dfs_df_talk_distribute_Particle_Tool_05-300x195.jpg)
Select the distributesim node and go to the parameters pane. Write a job name in Job Name parameter text box. Leave the output drivers to their default value. Change the HQueue Server name to your HQueue server name. Change HFS path if $HQROOT is not pointing
to the shared houdini installation path. Next is to select the hip file you want to simulate, You can choose from the drop down menu which has three option that is Simulate Current HIP file,Simulate Target HIP File, or Copy Project Files to Shared Folder and
Simulate.
7. The image below shows the settings which I have changed. I’m using Target hip file instead of simulating the current HIP file, Also I have given an absolute path in the Target HFS parameter. Please check the below image.
![](http://www.dfx.co.jp/dftalk/wp-content/uploads/2014/02/0059_dfs_df_talk_distribute_Particle_Tool_06-300x214.jpg)
8. At the obj Network, change the Simulation frame range here in distribute_flipfluidobject Slicegeometry node.
![](http://www.dfx.co.jp/dftalk/wp-content/uploads/2014/02/0059_dfs_df_talk_distribute_Particle_Tool_07-300x162.jpg)
9. Launch the Render by using render button on distributedsim node, The job will appear on Hqueue Server.
![](http://www.dfx.co.jp/dftalk/wp-content/uploads/2014/02/0059_dfs_df_talk_distribute_Particle_Tool_08-300x113.jpg)
10. The Sliced simulation is assigned to different machines.
![](http://www.dfx.co.jp/dftalk/wp-content/uploads/2014/02/0059_dfs_df_talk_distribute_Particle_Tool_09-300x118.jpg)
11. Please note, once the step3 is done, the slicing is set up in your scene file. If you try playback of the Simulation.
The scene view will show only one slice of the Simulation.
![](http://www.dfx.co.jp/dftalk/wp-content/uploads/2014/02/0060_dfs_df_talk_distribute_Particle_Tool_01-300x137.jpg)
12. If you want to check the simulation without slicing after distribution (without simulation done on farm), Turn off Enable Distribution in DISTRIBUTE_flipfluidobject_CONTROLS and Bypass distribute_flipfluidobject.
![](http://www.dfx.co.jp/dftalk/wp-content/uploads/2014/02/0060_dfs_df_talk_distribute_Particle_Tool_02-300x139.jpg)
13. After the distributed simulation has finished on Hqueue. The loadslices node inside the distribute_flipfluid object, will load the finished sliced simulation from the Hqueue Farm.
![](http://www.dfx.co.jp/dftalk/wp-content/uploads/2014/02/0060_dfs_df_talk_distribute_Particle_Tool_03-300x153.jpg)
Setting up Distributed Clustered Simulation
1. Create a clustered smoke or pyro simulation using Pyro FX shelf’s Pyro Cluster or Smoke Cluster tools. The below image shows the clustered fire simulation which I’m using to show distribution.![](http://www.dfx.co.jp/dftalk/wp-content/uploads/2014/02/0061_dfs_df_talk_distributed_clustered-Simulation_01-300x155.jpg)
2. To create a distributed clustered fluid simulation, select the Distribute Container tool from Container Tools Shelf. Please check the next image .
![](http://www.dfx.co.jp/dftalk/wp-content/uploads/2014/02/0061_dfs_df_talk_distributed_clustered-Simulation_02-300x73.jpg)
3. The tool will ask you to select the container to distribute. Please select the fluid container inside the AutoDopNetwork, The tool will then ask for the distribution method. The dialog box will briefly explain the difference between slicing and clustering.
Because we are setting up distribution for clustered fluid object, please select Clustering.
![](http://www.dfx.co.jp/dftalk/wp-content/uploads/2014/02/0061_dfs_df_talk_distributed_clustered-Simulation_031-300x154.jpg)
4. The tool will create a Hqueue Simulation node in out Context, This is the same node created while setting up the sliced simulation. All the parameters are the same.
![](http://www.dfx.co.jp/dftalk/wp-content/uploads/2014/02/0061_dfs_df_talk_distributed_clustered-Simulation_04-300x285.jpg)
5. Specify the Job Name,HQueue Server name in the Hqueue Simulation Node, The below image shows the changes I made to the Hqueue Simulation Node. Target HFS and Target HIP are not compulsory.
![](http://www.dfx.co.jp/dftalk/wp-content/uploads/2014/02/0061_dfs_df_talk_distributed_clustered-Simulation_05-300x288.jpg)
6. These two nodes are also created by Distribute tool in Import Pyro Build Geometry Object
These are for Saving the Clustered Simulation and the Loading it back from the Shared Location.
![](http://www.dfx.co.jp/dftalk/wp-content/uploads/2014/02/0061_dfs_df_talk_distributed_clustered-Simulation_06-300x285.jpg)
http://www.dfx.co.jp/dftalk/%3Fp%3D11745 http://www.sidefx.com/docs/hqueue14.0/help/installation.html
相关文章推荐
- 关于Houdini flip的一些体会
- Python配置Houdini项目环境变量以及集成工具架
- Houdini bake particle instance otl工具介绍
- Houdini15 VOP Add Attribute参数传递错误,使用Bind Export替代
- Houdini低模解算转成高模关键帧动画并拆分碎块UV
- Houdini otl bake fracture animation Python程序
- Houdini添加HOUDINI_OTLSCAN_PATH环境变量的bat脚本
- VEX 常用的函数和语句(一)
- 如何打开Android X86对houdini的支持
- bulletsop 2.0.12 for houdini 13
- 3DS Max、Maya、SoftImage、houdini对比
- Houdini学习 —— 基于节点的过程化建模初探及思考
- Houdini学习 —— 使用音频驱动几何体变换之信号处理
- houdini节点ray的一点改进(原理
- houdini节点ray的一点改进(多图
- Houdini for Mac(电影视觉特效制作)附Houdini Mac破解教程 V16.0.633 破解版
- VEX in Houdini Laplacian and Taubin Smoothing
- UIPopoverController的使用
- Winform的ListBox的ValueMember和DisplayMember绑定的名称所属对象必须是Public的。
- DuiVision设计器预览版