用卷积滤波器matlab代码-bfield_piv:粒子图像测速,脚本和工具链

  • a0_137511
    了解作者
  • 100.4MB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-04-01 13:17
    上传日期
用卷积滤波器matlab代码bfield_piv(用于粒子图像测速的工具链) 该代码利用MatPIV工具箱执行速度场的PIV计算。 否则,这里的大部分Matlab代码将执行 原始图像的预处理-利用ImageJ宏来改善流中粒子的可见性,并平衡图像对之间的强度级别 处理-设置输入结构以运行MatPIV和过滤器,然后计算速度场 后处理-从PIV速度场计算其他流量统计信息,并创建人物和电影 只要有可能,bfield_Piv将并行运行以大大提高性能,并将充分利用所有CPU内核,并在超级计算机的无头模式下运行。 用法示例-用户输入和设置-批处理 在该示例中的实验对应于海洋流体动力学涡轮的湍流尾流的PIV。 这是示例中的涡轮机图像; 有趣的功能包括从叶片尖端拖尾的螺旋形涡流以及尾流的扩展。 这是摄影,通过PIV计算的速度场和涡度场的比较。 数字 要使用bfield_piv,请创建一个新目录,然后创建一个子文件夹名称“ raw”,其中包含原始相机图像。 此代码运行后,将产生以下目录结构: “原始”目录包含未编辑的摄像机图像 “ post”目录包含经过ImageJ处理改进后的摄像机图像,这些是执行PIV
bfield_piv-master.zip
内容介绍
# bfield_piv (toolchain for Particle-Image-Velocimetry) This code utilizes the MatPIV toolbox to perform the PIV calculations of velocity field. Otherwise, the bulk of Matlab code here is to perform * pre-processing of raw images - utilizes ImageJ macros to improve visibility of particles in the flow, and balance intensity levels between image pairs * processing - sets up the input structures to run MatPIV and filters, and then computes the velocity fields * post-processing - computes other flow statistics from the PIV velocity fields, and creates figures and movies Wherever possible, bfield_Piv will run in parallel to drastically speed-up performance, and will fully utilize all CPU cores and run in headless mode for supercomputers. # Example Usage - User Inputs and Setup - Batch Processing The experiment in this example corresponds to PIV of turbulent wakes of marine-hydrokinetic-turbines. Here is an image of the turbine in example; the interesting features include helical vortex trailing from blade tips, and expansion of the wake. Here is a comparison of the photography, and velocity and vorticity fields computed via PIV. FIGURE To use bfield_piv, create a new directory, and then a subfolder name "raw" which holds your raw camera images. After this code runs, it will result in the following directory structure: FIGURE * The "raw" directory contains the unedited camera images * The "post" directory contains the camera images after improved by ImageJ processing, these are the images that PIV is performed upon * The "vectors/raw" directory contains the results of MatPIV calculation of velocity fields * "raw" is the instantaneous velocity vectors, without any PIV filtering applied * "instantaneous" contains the velocity vectors, and "fluctuating" removes the mean flow component (now both folders have PIV filters applied) * "stats" contains statistical information, such as turbulence characteristics and mean velocity profiles (computed from the filtered fields) * "vtk" contains the vector fields now converted into VTK format (for processing outside Matlab) * The "figures" folder contains the final image sequences and movies Now, back to the initial setup ... the file "bfield_piv_inputs.m" shows how to setup the OPTIONS structure. As you may have guessed, OPTIONS provides the complete set of User Inputs needed to drive the program. Once you have setup the user inputs within OPTIONS, it is easy to batch process a series of experiments. For example, in each experiment, I save the raw camera images into a unique directory, such as "test_1" and "test_2", and I can modify any of the OPTIONS in-between test cases. For example: CODE CODE CODE # Advanced Usage - macro "like" Review the main program, bfield_piv.m. The flow of the bfield_piv program resembles a set a macros, such that each step does not always need to be performed in the same order. For example, the most computationally expensive step is the calculation of velocity fields during the call to MatPIV toolbox; but once the raw velocity fields exist the user is free to experiment with different filters, statistics, figures, movies, etc. Here is an example use case: % name of the directory with raw images dir_casename = 'asdf' piv_bfield % all of the "raw vectors" are saved, but say I want to change appearance of the figures. % Next I would edit the "asdf.m" file, then re-run the toolchain, skipping the MatPIV step now: CODE CODE % I want to try different filtering methods, so edit the "asdf.m" file and then re-run the scripts: CODE CODE CODE # Visualization To create movies, the VTK format is produced in the "vtk" folder, and can be loaded into Visit or ParaView. Some macros for ParaView are included, the "paraview_*.pvsm" files, to visualize Line-Integral-Convolution of the velocity fields. FIGURE # Supercomputer batch processing And finally, if you want to run this on a supercomputer to do batch processing, see the example "submit-job-Hyak-bfield_piv.sh". This PBS script will run in headless mode on a supercomputer, and can be run like: qsub asdf.sh
评论
    相关推荐
    • Matlab合集
      冈萨雷斯数字图像处理MATLAB版.中文版+数字图像处理第二版中文版(冈萨雷斯)+MATLAB-R2014a完全自学一本通+MATLAB R2016a完全自学一本通 素材文件+[模式识别与智能计算:MATLAB技术实现(第2版)].杨淑莹.扫描版
    • MATLAB教程
      MATLAB教程MATLAB教程MATLAB教程MATLAB教程MATLAB教程MATLAB教程
    • MATLAB
      MATLAB 该项目是在matlab上完成的,涉及创建和移动宇宙飞船和机器人。 太空飞船和机器人是使用Matlab中的简单几何形状创建的,并通过连续变换矩阵进行移动。 这个项目教我如何使用变换矩阵(旋转,平移等)的概念...
    • MATLAB基础
      一本学习matlab的一本好书
    • MATLAB编译器
      基于MATLAB 2018b版本介绍MATLAB编译器。介绍如何利用编译器将MATLAB代码编译为独立应用程序或组件,并在没有安装MATLAB的计算机上进行部署。
    • matlabruntime
      通过奇点容器运行您的matlab项目 可以在没有MATLAB的容器中运行matlab代码。 为此,我们首先需要通过Matlab编译器在本地构建相应的Matlab代码的独立应用程序,然后使用具有Matlab运行时( 的容器)运行该应用程序 )...
    • matlab实现
      matlab实现 matlab实现matlab实现matlab实现matlab实现
    • matlab 教程
      matlab 信号处理资料,里面包含信号处理pdf文档,一些杂乱的程序和命令等
    • matlab教程
      matlab教程,PPT格式,包含 matlab基本知识、matlab入门、matlab作图、线性规划、无约束优化、非线性规划、统计工具箱、差值、微分方程等多项知识点,并且每个知识点独立成为PPT,内还含有matlab信号处理详解等文档...
    • matlab简介
      1.MATLAB 开发环境 1.1 MATLAB 的视窗环境 进入MATLAB之后,会看到一个视窗MATLAB Command Window称为指令视窗,它是你键入指令的地方同时 MATLAB也将计算结果显示在此。 1.2 简易计算 我们先从MATLAB的...