All posts by kiao

Examining mesh independence for flow dynamics in the human nasal cavity

Download Paper >Examining mesh independence for flow dynamics in the human nasal cavity.pdf< Scripts used in the paper with the velocity profile data on planes. 2D planar subtractions mesh independence (Python script ‘interPlanes.txt’) Data used for analysis (velocity on different planes) 3D volume subtraction for mesh independence (Matlab script  ‘calculateWholeRes.txt’) ABSTRACT: Increased computational resources provide…

Read More

Common Tables & Conversions

[fusion_builder_container hundred_percent=”no” hundred_percent_height=”no” hundred_percent_height_scroll=”no” hundred_percent_height_center_content=”yes” equal_height_columns=”no” menu_anchor=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=”” background_color=”” background_image=”” background_position=”center center” background_repeat=”no-repeat” fade=”no” background_parallax=”none” enable_mobile=”no” parallax_speed=”0.3″ video_mp4=”” video_webm=”” video_ogv=”” video_url=”” video_aspect_ratio=”16:9″ video_loop=”yes” video_mute=”yes” video_preview_image=”” border_size=”” border_color=”” border_style=”solid”][fusion_builder_row][fusion_builder_column type=”1_2″ layout=”1_2″ spacing=”” center_content=”no” link=”” target=”_self” min_height=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=”” background_color=”” background_image=”” background_position=”left top” undefined=”” background_repeat=”no-repeat” hover_type=”none” border_size=”0″ border_color=”” border_style=”solid” border_position=”all” padding_top=”” padding_right=”” padding_bottom=”” padding_left=””…

Read More

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