![]() When loading a Model Object from a MATLAB MAT-file, the parent folder of "+MCmatlab" needs to be on your MATLAB path: prior to loading the Model Object, either navigate to the parent folder of "+MCmatlab" in the "Current Folder" view of MATLAB, or use the command "addpath" to add the parent folder of "+MCmatlab" to your path. Model Objects can be saved to and loaded from a standard binary MATLAB MAT-file like any other MATLAB variable. One Model File can, if desired, generate multiple Model Objects with a different geometry and/or lightsource each. The Model Object is an instance of the class MCmatlab.model, i.e., it's of the class "model" in the MATLAB-package "MCmatlab". ![]() Model objectĪ "Model Object" stores all the parameters for a single Monte Carlo simulation: a single geometry and a single type of lightsource, together with all the results from the Monte Carlo (and optional heat transfer) simulation. A complete list of parameters that can be set is provided below. You can find some examples of Model Files to get you started in the parent folder of "+MCmatlab". In MCmatlab, you set up your model in a single m-file called "Model File". ![]() The source code is written in such a way that it can be compiled as either C or C++ code using either GCC, MSVC, clang or as CUDA source code using NVCC. Check out those two source-files on how to do so. If, however, you want to change the routine in either the MCmatlab.c source code or the finiteElementHeatPropagator.c source code (both located in the folder "+MCmatlab/src"), you will need to recompile the respective mex-files. The folders include all the executables necessary, so you don't need to compile anything. We recommend keeping the model files in a folder together with the "+MCmatlab" folder, such that you don't need to manually add the parent folder of "+MCmatlab" to your MATLAB path. You will not need to modify any of the contained files. ![]() (For GPU accelerated computation) A Windows PC with a CUDA-enabled graphics card and the MATLAB Parallel Computing ToolboxĪll the helper functions needed for running MCmatlab are located in the folder (MATLAB package) "+MCmatlab", and its parent folder therefore has to be on your MATLAB path when trying to run any MCmatlab model files.Windows 7, macOS 10.12 (Sierra) or newer or Linux.You should have received a copy of the GNU General Public LicenseĪlong with this program. GNU General Public License for more details. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This program is distributed in the hope that it will be useful,īut WITHOUT ANY WARRANTY without even the implied warranty of The Free Software Foundation, either version 3 of the License, or ![]() It under the terms of the GNU General Public License as published by This program is free software: you can redistribute it and/or modify If you publish results obtained with this software, we would be thankful if you cited its accompanying article: doi:10.1117/1.JBO.22 License You can find the latest version of MCmatlab on. Primarily targeted for tissue optics, but can be used in any environment with turbid media in which the wave nature of light (interference phenomena) is negligible and a ray-tracing model is appropriate. Included is also a finite element simulation for temperature increase and heat diffusion in the same voxel space. Fluorescence can optionally be simulated after simulation of the excitation light. MCmatlab is a Monte Carlo simulation for modeling light propagation in a 3D voxel space. Readme and User Manual for MCmatlab What is MCmatlab? ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |