Monthly Archives: August 2018

uv unwrapping method for respiratory airflows

introduced in: Surface mapping for visualization of wall stresses during inhalation in a human nasal cavity. Respiratory Physiology and Neurobiology (2014) 190(1): p.54-61. Also applied in the following: Dong, J., Shang, Y., Inthavong, K., Chan, H.-K., & Tu, J. (2018). Numerical Comparison of Nasal Aerosol Administration Systems for Efficient Nose-to-Brain Drug Delivery. Pharmaceutical research, 35(1), 5. Dong, J.,…

Read More

Convert a single cine file to sequentially numbered tiffs

Convert a single cine file to sequentially numbered tiffs ================================================================ credit: “https://wiki.brown.edu/confluence/display/ctx/Convert+a+single+cine+file+to+sequentially+numbered+tiffs” ================================================================ In Phantom cine viewer open the cine file, for example “Kia_cam1_run33.cine” Click on “Convert” button, in the lower right hand of the screen. Choose the type of tiff: 8 or 12 or 16 bit tiff (the second number after the comma is…

Read More

Using a batch file to automatically compress files of the same type or folders using 7-zip

Compressing files of the same type =============================== @echo off cd /d %~dp0 rem 7z.exe path set sevenzip= if “%sevenzip%”==”” if exist “%ProgramFiles(x86)%\7-zip\7z.exe” set sevenzip=%ProgramFiles(x86)%\7-zip\7z.exe if “%sevenzip%”==”” if exist “%ProgramFiles%\7-zip\7z.exe” set sevenzip=%ProgramFiles%\7-zip\7z.exe if “%sevenzip%”==”” echo 7-zip not found&pause&exit set extension=.xls for %%a in (*%extension%) do “%sevenzip%” a -mx “%%~na.7z” “%%a” pause Change the extension for the…

Read More

Ansys-Fluent-CFD-Post-Scripts

How-to-remove-partition-line-in-figures Pre-setup commands for saving images How to compile FLUENT 64-bit UDFs using Visual Studio Express 2010 and the 7.1 SDK Extracting data from Fluent Extract numerical values from Fluent xy-plot files using Matlab Looping through cfx .trn files and exporting figures and data Looping through cfx .trn files and exporting figures and data Script…

Read More

Tecplot Tips

Extract Images =========================== import os os.chdir(r’F:\images\planes-bend’) import glob flist=glob.glob(‘*planes.plt’) #flist = flist[0:5] # just for testing on 5 files and not all of them! import tecplot as tp from tecplot.exception import * from tecplot.constant import * # Uncomment the following line to connect to a running instance of Tecplot 360: tp.session.connect() #fname = ‘p0.01_b0.02_planes.plt’ #…

Read More