LiveLink™ for MATLAB®
Image made using the COMSOL Multiphysics® software and is provided courtesy of COMSOL.
Example illustrating the modeling of a spring-loaded centrifugal governor. All plots that can be shown in COMSOL Multiphysics® can also be shown as MATLAB® figures.
LiveLink™ for MATLAB®
Seamlessly integrate COMSOL Multiphysics® with MATLAB® to extend your modeling with scripting programming in the MATLAB environment. LiveLink™ for MATLAB® allows you to utilize the full power of MATLAB and its toolboxes in preprocessing, model manipulation, and postprocessing:
MATLAB is a registered trademark of The MathWorks, Inc. All other trademarks are the property of their respective owners. For a list of such trademark owners, see http://www.comsol.com/tm. COMSOL AB and its subsidiaries and products are not affiliated with, endorsed by, sponsored by, or supported by these trademark owners.
This model simulates convective heat transfer in a channel filled with water. To reduce memory requirements, the model is solved repeatedly on a pseudo-periodic section of the channel. Each solution corresponds to a different section, and before each solution step the temperature at the outlet boundary from the previous solution is mapped to the inlet boundary.
Heating of an object from alternating regions is one example where the modeling technique of activating and deactivating physics on domains can be useful. This model demonstrates how you can apply this technique using LiveLink™ for MATLAB®.
This model illustrates how to simulate a periodic homogenization process in a space dependent chemical reactor model. This homogenization removes concentration gradients in the reactor at a set time interval.
The model demonstrates a technique by which you can first stop the time-dependent solver, then restart it with an initial value obtained based on the solution.
This is a template MPH-file containing the physics interfaces and the parameterized geometry for LiveLink™ for MATLAB® modeling example.
This example solves for the temperature distribution inside a vacuum flask holding hot coffee. The main purpose is to illustrate how to use MATLAB functions to define material properties and boundary conditions.