Matlab scripts for MSD analysis for Comsol Mutliphysics's Particle Tracing module. Two data plots are available directly from the script. A classic plot and loglog plot. Each analysis is automatically saved to the current directory.
MSDsimple.m
Script for MSD analysis when one or multiple studies is used in Comsol Multiphysics.
Instructions:
-
Create a new empty working directory
-
Set path to the directory in the DataPath variable of the script (line 5)
-
Put CSV files with particle positions to the working directory
-
Name of the files must be in the following format: x_N.csv and y_N.csv where N is the consecutive number of study starting from 1. If you want to analyze only one study you will need following files in the directory: x_1.csv, y_1.csv
For analysing multiple studies: x_1.csv, y_1.csv, x_2.csv, y_2.csv...
-
Run the Matlab script
MSDparam.m
Script for MSD analysis when one parametric study is used in Comsol Multiphysics
Instructions:
- Create a new empty working directory
- Set path to the directory in the DataPath variable of the script (line 5)
- Put CSV files with particle positions to the working directory
- Name of the files MUST BE x_param.csv and y_param.csv!
- Run the Matlab script
This code was developed as part of a Bachelor's thesis titled 'Microrheology modeling with COMSOL Multiphysics package' at the Faculty of Chemistry, Brno University of Technology. The full thesis can be accessed at https://www.vut.cz/en/students/final-thesis/detail/156714.