Handling of multiple files/folders
Show older comments
Hi,
I'm currently if the process of postprocessing data from 100 CFD simulations for the flow over a flat plate. Each simulation produce 20 datafiles (.csv) that I require to calculate the boundary layer thickness along the plate, and I've created a program that import the 20 files from one simulation (using importfile) and then calculates the BL thickness from the data. The problem is that it can only handle data from one simulation at a time and I'm not to keen on running the program 100 times, changing file locations between each run manually.
The file structure I have consists of 10 folders (Bump1, ..., Bump10) with 10 subfolders each (Reynoldsnmb1, ..., Reynoldsnmb10) and then in each subfolder i have the 20 csv files.
What I want the program to do first is go into /Bump1/Reynoldsnmb1/, import the data and do all the calculations. Move on to Reynoldsnmb2 and do all calculations etc. and then do this process for Bump1-10.
Do you have any suggestions on how this could be done?
/Andreas
Accepted Answer
More Answers (0)
Categories
Find more on Fluid Mechanics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!