实例介绍
sph的简单C程序,适用于学习,并在次基础上建立自己的代码
【实例截图】
【核心代码】
4744302543024558927.rar
└── isph-code
├── AUTHORS
├── bin
│ └── tmp
│ └── console
│ ├── BuildLog.htm
│ ├── cl.command.1.tlog
│ ├── CL.read.1.tlog
│ ├── CL.write.1.tlog
│ ├── console.Build.CppClean.log
│ ├── console.lastbuildstate
│ ├── console.unsuccessfulbuild
│ ├── console.write.1.tlog
│ ├── vc100.idb
│ └── vc100.pdb
├── build
│ └── vs2010
│ ├── console.vcxproj
│ ├── console.vcxproj.user
│ ├── ipch
│ │ └── isphlib-a75e5fa
│ │ └── isphlib-5fec78e6.ipch
│ ├── isphlib.vcxproj
│ ├── isphlib.vcxproj.filters
│ ├── isphlib.vcxproj.user
│ ├── isph.sdf
│ ├── isph.sln
│ └── isph.suo
├── COPYING
├── data
│ ├── cavity.xml
│ ├── circular-drop.xml
│ ├── dam1.xml
│ ├── dam_dry_bed.xml
│ ├── dam_hu.xml
│ ├── dam_initial_wet.xml
│ ├── dam_initial.xml
│ ├── dam_wet_bed.xml
│ ├── dam_zhou.xml
│ ├── drop.xml
│ ├── entry.xml
│ ├── exit.xml
│ ├── hydrostatic.xml
│ ├── logo.png
│ ├── patch.xml
│ ├── square-drop-2.xml
│ ├── square-drop.xml
│ ├── square.xml
│ └── tar.exe
├── doc
│ └── doxyfile
├── isphlib
│ ├── bodyforcewriter.cpp
│ ├── bodyforcewriter.h
│ ├── cldevice.cpp
│ ├── cldevice.h
│ ├── clglobalbuffer.cpp
│ ├── clglobalbuffer.h
│ ├── clkernelargument.cpp
│ ├── clkernelargument.h
│ ├── cllink.cpp
│ ├── cllink.h
│ ├── cllocalbuffer.cpp
│ ├── cllocalbuffer.h
│ ├── clplatform.cpp
│ ├── clplatform.h
│ ├── clprogramconstant.cpp
│ ├── clprogramconstant.h
│ ├── clprogram.cpp
│ ├── clprogram.h
│ ├── clsubprogram.cpp
│ ├── clsubprogram.h
│ ├── clsystem.cpp
│ ├── clsystem.h
│ ├── clvariable.cpp
│ ├── clvariable.h
│ ├── csvwriter.cpp
│ ├── csvwriter.h
│ ├── extern
│ │ ├── clpp
│ │ │ ├── clppContext.cpp
│ │ │ ├── clppContext.h
│ │ │ ├── clppCount.cpp
│ │ │ ├── clppCount.h
│ │ │ ├── clpp.cpp
│ │ │ ├── clpp.h
│ │ │ ├── clppProgram.cpp
│ │ │ ├── clppProgram.h
│ │ │ ├── clppScan_Default_CLKernel.h
│ │ │ ├── clppScan_Default.cpp
│ │ │ ├── clppScan_Default.h
│ │ │ ├── clppScan_GPU_CLKernel.h
│ │ │ ├── clppScan_GPU.cpp
│ │ │ ├── clppScan_GPU.h
│ │ │ ├── clppScan.h
│ │ │ ├── clppSort_BitonicSort_CLKernel.h
│ │ │ ├── clppSort_BitonicSort.cpp
│ │ │ ├── clppSort_BitonicSortGPU_CLKernel.h
│ │ │ ├── clppSort_BitonicSortGPU.cpp
│ │ │ ├── clppSort_BitonicSortGPU.h
│ │ │ ├── clppSort_BitonicSort.h
│ │ │ ├── clppSort.cpp
│ │ │ ├── clppSort.h
│ │ │ ├── clppSort_RadixSort_CLKernel.h
│ │ │ ├── clppSort_RadixSort.cpp
│ │ │ ├── clppSort_RadixSortGPU_CLKernel.h
│ │ │ ├── clppSort_RadixSortGPU.cpp
│ │ │ ├── clppSort_RadixSortGPU.h
│ │ │ └── clppSort_RadixSort.h
│ │ ├── pugixml
│ │ │ ├── pugiconfig.hpp
│ │ │ ├── pugixml.cpp
│ │ │ └── pugixml.hpp
│ │ └── tinythread
│ │ ├── tinythread.cpp
│ │ └── tinythread.h
│ ├── general
│ │ ├── max_vel.cl
│ │ ├── obj_pos.cl
│ │ ├── obj_pos_vel.cl
│ │ ├── obj_vel.cl
│ │ └── types.cl
│ ├── geometry.cpp
│ ├── geometry.h
│ ├── integrators
│ │ ├── wcsph_corrector.cl
│ │ ├── wcsph_euler.cl
│ │ ├── wcsph_predictor.cl
│ │ ├── wcsph_rkstep41.cl
│ │ ├── wcsph_rkstep42.cl
│ │ ├── wcsph_rkstep43.cl
│ │ └── wcsph_rkstep44.cl
│ ├── isph
│ │ ├── bicgstab_update_conjugate_0.cl
│ │ ├── bicgstab_update_conjugate_1.cl
│ │ ├── bicgstab_update_result.cl
│ │ ├── build_rhs.cl
│ │ ├── calc_volumes.cl
│ │ ├── cg_update_conjugate.cl
│ │ ├── cg_update_result.cl
│ │ ├── correct.cl
│ │ ├── div_vel.cl
│ │ ├── dot.cl
│ │ ├── dummy_scalar_copy.cl
│ │ ├── dummy_vector_copy.cl
│ │ ├── fix_pressure.cl
│ │ ├── shifting.cl
│ │ ├── shifting_update.cl
│ │ ├── spmv_product.cl
│ │ ├── temp_positions.cl
│ │ └── temp_velocities.cl
│ ├── isph.h
│ ├── isphsimulation.cpp
│ ├── isphsimulation.h
│ ├── kernels
│ │ ├── correction.cl
│ │ ├── cubic.cl
│ │ ├── delta_p.cl
│ │ ├── gauss.cl
│ │ ├── gaussmod.cl
│ │ ├── quadratic.cl
│ │ ├── quintic.cl
│ │ └── wendland.cl
│ ├── loader.h
│ ├── log.cpp
│ ├── log.h
│ ├── Makefile
│ ├── particle.cpp
│ ├── particle.h
│ ├── probemanager.cpp
│ ├── probemanager.h
│ ├── scene
│ │ ├── grid_cellids.cl
│ │ ├── grid_cellstart.cl
│ │ ├── grid_clear.cl
│ │ ├── grid_utils.cl
│ │ └── out_of_bounds.cl
│ ├── simulation.cpp
│ ├── simulation.h
│ ├── stdwriter.cpp
│ ├── stdwriter.h
│ ├── timer.cpp
│ ├── timer.h
│ ├── utils.cpp
│ ├── utils.h
│ ├── vec.cpp
│ ├── vec.h
│ ├── version.h
│ ├── vtkwriter.cpp
│ ├── vtkwriter.h
│ ├── wcsph
│ │ ├── acceleration.cl
│ │ ├── accelerations_colagrossi.cl
│ │ ├── cfl.cl
│ │ ├── continuity.cl
│ │ ├── continuity_colagrossi.cl
│ │ ├── init.cl
│ │ ├── MLS_post.cl
│ │ ├── MLS_pre.cl
│ │ ├── read_probes_scalar.cl
│ │ ├── read_probes_vector.cl
│ │ ├── set_masses.cl
│ │ ├── shepard_filter.cl
│ │ ├── tait_eos.cl
│ │ └── tait_eos_inv.cl
│ ├── wcsphsimulation.cpp
│ ├── wcsphsimulation.h
│ ├── writer.cpp
│ ├── writer.h
│ ├── xmlloader.cpp
│ └── xmlloader.h
├── lib
│ └── x86
│ └── tmp
│ ├── BuildLog.htm
│ ├── cl.command.1.tlog
│ ├── CL.read.1.tlog
│ ├── CL.write.1.tlog
│ ├── isphlib.Build.CppClean.log
│ ├── isphlib.lastbuildstate
│ ├── isphlib.unsuccessfulbuild
│ ├── isphlib.write.1.tlog
│ ├── log.obj
│ ├── pugixml.obj
│ ├── timer.obj
│ ├── tinythread.obj
│ ├── utils.obj
│ ├── vc100.idb
│ ├── vc100.pdb
│ └── vec.obj
├── Makefile
├── README
└── tools
├── console
│ ├── main.cpp
│ └── Makefile
└── Makefile
26 directories, 211 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论