Inconsistency between 'mphinterp' and 'mphplot'
Hello, I am having an issue with the MATLAB-Livelink function 'mphinterp'. What I am basically trying to do is plot 2D slice plots of data from the model solution. I am operating on solutions from...
View ArticleCorrect syntax for creating domain selection in the JAVA Api?
I am trying to follow the busbar tutorial using Comsol + Matlab. To create a variable representing multiple boundaries to avoid redundancy the following code is given:<code> sel1 =...
View ArticleSame model, different solutions?
Hello, Community, I'm doing phase change simulation with phase change HT module. Currently I have a problem with COMSOL: The same model gives different results in different runs! I use Matlab Livelink...
View ArticleUsage of set method in LiveLink for MATLAB
Hi, I am tying to understand the heat_transient_axi example to export state space matrices to MATLAB from COMSOL. The following lines are from the example model = mphload('heat_transient_axi');"Create...
View ArticleHow to find entities of expelicit selection in the Work plane of a 3D model...
Hi I have created a geometry in the work plane of a 3D geometry (which is obviously in 2D mode at this stage). and i have created explicit selection feature and set the selection object as well. when I...
View ArticleWork on COMSOL through MATLAB?
Hi, I would like to run COMSOL through MATLAB but don't understand how? For example when I have saved a COMSOL simulation as M-file and tries to open it in MATLAB it won't open and I am not sure how to...
View Article[Q] a functional MATLAB file based on COMSOL parametric model
Hi I’m new to COMSOL and for now using COMSOL 4.2 with MATLAB 2010b, trying to build a CFD model of a PEM fuel cell in COMSOL and optimize it’s channel parameters using MATLAB. As you know, to use...
View Articlescript for exporting deformed geom from livlink matlab ?
Hi all, In GUI, I could remesh the deformed configuration from the results dataset, and from there i could export to a new geometry (xx.mphbin). But how can i do the same from matlab livelink ? I...
View ArticleMatlab function
Hello, I have a problem with importing matlab-functions in comsol (version 4.3b in Linux). After I have inserted the function name, variables and the range, I get the following error-message: "Matlab...
View ArticleProfiling/Optimizing Comsol Simulations
Hi everyone, I was wondering if anyone has tips/suggestions for optimizing solution times in Comsol 4.4? I have produced a model, which is taking far longer to solver than I would like, and I'm trying...
View ArticleUsing MATLAB code as a COMSOL physics interface
Hi all, I was wondering if it was possible to use a MATLAB script as a COMSOL physics interface. I have a working two-phase flow CFD model (phase field method). Coupling additional physics has been...
View ArticleRotordynamics, eigenvalues and frequency domain
Hi everybody, I have two questions about rotordynamics modelling. First of all, I'm modelling a rotor using a parametric sweep on angular velocity to find its eigenvalues. After that I would like to...
View Articleproblem with convert image to geometry with the function mphimage2geom in...
hello, i was very happy to find that with the function 'mphimage2geom' provided in Matlab LiveLink it's possible to convert a grey scale image into geometry. It's quite cool. A comsol model can be...
View ArticleUploading to MATLAB
Hi, This is probably a very basic question, but I would like to try working with the livelink to MATLAB and was following the instructions for how to load my model into MATLAB but MATLAB does not seem...
View Articleaccess eigenmode displacement for mesh nodes?
Hi! This is my first post to this forum. I have a simple mechanical structure (say, a clamped clamped beam) where I have been trying to extract, via LiveLink, the displacements for the actual mesh...
View ArticleSolidworks COMSOL fluid flow (air) simulation
Hi everyone, I was wondering if anyone here knows if COMSOL can simulate Solidworks models straight from import. Here's the scenario: 1. import solidworks model of a pipe with a hollow x-diameter 2....
View ArticleSimulation time does not scale with processor
Hello all, Just as a preface, I do not have significant experience with Comsol in general, and the bulk of my manipulations are occurring within Matlab, but my question is of a general sort. I am...
View ArticleJava API - InputMatrix
Hallo everyone, I try to solve simple heat transfer problem and I would like to change stiffness matrix in my simulation. I tried to use function InputMatrix which is available in Java API interface....
View Articlehow to connect comsol to matlab.
Hi. My comsol version is 3.5a and matlab is R2012a. I made a M-file through comsol. And I tried to open it in matlab. But it didnt work. So i wonder what the problem is. When i ran m-file in matlab i...
View ArticleValue type of the control variable in the Optimization interface through...
Dear all, I'm working with the optimization interface through LiveLink for Matlab. I would like to know how to specify the value type of the control variable. The dependent variables in my problem are...
View Article