6: 2015-02-01 (日) 16:58:28 iseki |
現: 2023-08-18 (金) 11:15:33 iseki |
- | ** Wind Module [#efefa4d9] | + | ** FSFW (Simple Fluid Solver Wind) Module [#rc0a4833] |
- | - under construction | + | - This is a Wind module for OpenSim |
| + | - Project Manager is H.Nishimura |
| + | - System Constructor is Fumi.Iseki (Fumi.Hax) |
| + | |
| + | - This module uses Simple Fluid Solver program code by Jos Stam |
| + | - This module uses [[AForge.NET>http://www.aforgenet.com/]] for FFT |
| + | #br |
| + | |
| + | *** Demo [#taece34d] |
| - [[YouTube Demo>http://youtu.be/yfppzAzG3L0]] | | - [[YouTube Demo>http://youtu.be/yfppzAzG3L0]] |
| | | |
- | &ref(SFSWindS.png); | + | &ref(SFSWind.png,40%); |
| #br | | #br |
| | | |
- | *** Simple Fluid Solver for Wind [#yd68d9b0] | + | *** Theory of Simple Fluid Solver for Wind [#yd68d9b0] |
| | | |
- | **** Original Source Code [#l55ba92b] | + | **** Theory and Original Source Code [#l55ba92b] |
| - by Jos Stam | | - by Jos Stam |
| -- http://www.dgp.utoronto.ca/people/stam/reality/Research/pub.html | | -- http://www.dgp.utoronto.ca/people/stam/reality/Research/pub.html |
| #br | | #br |
| | | |
- | *** DLLs [#q19fb2de] | + | ** DownLoad [#mf524c48] |
- | // - for 0.8.0 http://www.nsl.tuis.ac.jp/DownLoad/SoftWare/OpenSim/Modules/0.8.0/SimpleFluidSolverWind.dll | + | |
- | // - for 0.8.1 http://www.nsl.tuis.ac.jp/DownLoad/SoftWare/OpenSim/Modules/0.8.1/SimpleFluidSolverWind.dll | + | |
| | | |
- | // - AForge.Math.dll http://www.nsl.tuis.ac.jp/DownLoad/SoftWare/OpenSim/Modules/0.8.1/AForge.Math.dll | + | *** Binary DLL [#q19fb2de] |
| + | |
| + | **** v1.0.0 [#qdfe6ffa] |
| + | - for OpenSim-0.9.2.2 (Mono) [[SimpleFluidSolverWind.dll>http://www.nsl.tuis.ac.jp/DownLoad/SoftWare/OpenSim/Modules/0.9.2.2/SimpleFluidSolverWind.dll]] (12288Byte) |
| + | - for OpenSim-0.9.3Dev (net6.0) [[SimpleFluidSolverWind.dll>http://www.nsl.tuis.ac.jp/DownLoad/SoftWare/OpenSim/Modules/0.9.3/SimpleFluidSolverWind.dll]] (24576Byte) |
| + | |
| + | - AForge.Math.dll [[http://www.nsl.tuis.ac.jp/DownLoad/SoftWare/OpenSim/Modules/AForge.Math.dll]] (68096Byte) |
| | | |
| #br | | #br |
| | | |
| *** Source Code [#g60cd64d] | | *** Source Code [#g60cd64d] |
- | **** Release Version [#u4ad78e6] | + | **** Subversion Repository [#ue12301e] |
- | - This is beta test version, yet now | + | -- svn co http://www.nsl.tuis.ac.jp/svn/opensim/opensim.modules/trunk/Wind |
| #br | | #br |
| | | |
- | **** Development Version [#z7017d02] | + | **** Compile Source Code (Linux) [#m95e9eb2] |
- | - Subversion Repository | + | [Download WindModule-x.y.z.tgz] (x, y, z are integer number) |
- | -- http://www.nsl.tuis.ac.jp/svn/opensim/opensim.modules/trunk/World | + | # cp WindModule-x.y.z.tgz [OpenSim directory]/bin |
| + | # cd [OpenSim directory]/bin |
| + | # zcat WindModule-x.y.z.tgz |tar xfv - |
| + | # cd WindModule-x.y.z |
| + | # ./build.sh (if you use 0.9.2, execute ./build.sh 0.9.2) |
| + | # cp bin/SimpleFluidSolverWind.dll .. |
| + | # cp AForge.NET/AForge.Math.dll .. |
| + | |
| + | ** Install & Settings [#ac74a06b] |
| + | *** Install [#r5969727] |
| + | **** Download SimpleFluidSolverWind.dll [#rfbb5f17] |
| + | + Download ''SimpleFluidSolverWind.dll'' at this page. |
| + | + Copy downloaded ''SimpleFluidSolverWind.dll'' to OpenSim ''bin'' folder or directory. |
| #br | | #br |
| | | |
- | *** Compile and Install on Linux [#u92f1b3f] | + | **** Download AForge.NET [#wa747e61] |
- | **** Dev Version onLinex (ex. Centos) [#h3a7b456] | + | + Please download AForge.NET from [[AForget.NET Download Page>http://www.aforgenet.com/framework/downloads.html]]. My recommendation is ''[ Download Libraries Only ]'' |
- | [Stop OpenSim] | + | + Extract downloaded zip file. |
- | # yum -y install fftw fftw-devel | + | + Copy ''AForge.Math.dll'' to OpenSim ''bin'' folder or directory (only AForge.Math.dll). |
- | # cd [OpenSim Directory] | + | #br |
- | # svn co http://www.nsl.tuis.ac.jp/svn/opensim/opensim.modules/trunk opensim.modules | + | |
- | # cd opensim.modules/World | + | |
- | # ./build.sh | + | |
- | # cd ../../ | + | |
- | # vi bin/OpenSim.ini [ add "wind_plugin = SimpleFluidSolverWind" on [Wind] Section] | + | |
- | [Start OpenSim] | + | |
| | | |
- | **** OpenSim.ini (Example) [#k51ddef4] | + | *** Settings [#l65a9120] |
| + | - Please Edit bin/''OpenSim.ini'' |
| + | -- Sample |
| [Wind] | | [Wind] |
| ;# {enabled} {} {Enable wind module?} {true false} true | | ;# {enabled} {} {Enable wind module?} {true false} true |
| ;; Enables the wind module. | | ;; Enables the wind module. |
| enabled = true | | enabled = true |
| + | |
| ;# {wind_update_rate} {enabled:true} {Wind update rate in frames?} {} 150 | | ;# {wind_update_rate} {enabled:true} {Wind update rate in frames?} {} 150 |
| ;; How often should wind be updated, as a function of world frames. | | ;; How often should wind be updated, as a function of world frames. |
| ;; Approximately 50 frames a second | | ;; Approximately 50 frames a second |
| wind_update_rate = 100 | | wind_update_rate = 100 |
| + | |
| ;; The Default Wind Plugin to load | | ;; The Default Wind Plugin to load |
| ;wind_plugin = SimpleRandomWind | | ;wind_plugin = SimpleRandomWind |
| wind_plugin = SimpleFluidSolverWind | | wind_plugin = SimpleFluidSolverWind |
| + | .......... |
| + | [XEngine] |
| + | ........... |
| + | AllowOSFunctions = true |
| | | |
- | *** Memo [#j8125c2f] | + | ** Support Script [#ze0d3973] |
- | - OpenSim/Region/CoreModules/World/Wind | + | *** SFSW_controller.lsl [#dfd4343f] |
- | - WindModule.cs から plugins 下のプラグインを読み込む | + | - [[SFSW_controller.lsl>http://www.nsl.tuis.ac.jp/svn/opensim/opensim.modules/trunk/Wind/lsl/SFSW_controller.lsl]] |
| + | - When you touch it, object Says module parameters |
| + | #br |
| | | |
- | OpenSim/Region/CoreModules/World/Wind/WindModule.cs -+--- Plugins/ConfigurableWind.cs | + | **** Commands [#gacf0737] |
- | | | + | |
- | +--- Plugins/SimpleRandomWind.cs | + | ***** /6000 force value [#dd290e68] |
| + | - Set a kind of the external force |
| + | - value |
| + | -- 0 : Random Wind (default) |
| + | -- 1 : North Wind |
| + | -- 2 : East Wind |
| + | -- 3 : South Wind |
| + | -- 4 : West Wind |
| + | -- 5 : Rotational Wind |
| + | |
| + | ***** /6000 period value [#t05329c6] |
| + | - Set period of the external force |
| + | - When this Wind module is called times of this value, Wind module restarts. |
| + | - If set 0, Wind module never restart by period. |
| + | |
| + | ***** /6000 strength value [#c995f4ad] |
| + | - Set Wind strength |
| + | - Default is 1.0 |
| + | |
| + | ***** /6000 damping value [#r73d534c] |
| + | - Set damping rate of the external force |
| + | - Default is 0.85 |
| + | |
| + | ***** /6000 wind_visc value [#jcf9fe7c] |
| + | - Set (scaled) viscosity coefficient of the wind |
| + | - Default is 0.001 |
| + | |
| + | ***** /6000 wind_eps value [#n1e54e56] |
| + | - Set lower limit of the energy variation rate. |
| + | - When the energy variation rate is under this value, Wind module restarts. |
| + | -- energy variation rate = (Previous Wind Energy - Current Wind Energy)/(Current Wind Energy) |
| + | - If set 0.0, Wind module never restart by energy variation rate. |
| + | - Default is 0.004 |
| + | |
| + | ***** /6000 region value [#k74c233d] |
| + | - Set size of the region |
| + | - Normally, the region is automatically set |
| + | |
| + | ***** /6000 stop [#ce74eb34] |
| + | - Stop the wind |
| + | ***** /6000 reset [#n4f2b142] |
| + | - Stop the wind and reset script |
| + | ***** /6000 help [#pe008f84] |
| + | - Show the help messages |
| + | #br |
| + | |
| + | ** [[Memo>./Memo]] [#rd24f4bb] |
| + | #br |