Usage 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 ArticleExtract state space matrix
I run this command in Matlab but it has error M = mphstate(model,'sol1','out',{'MA' 'MB' 'C' 'D'},... 'input', {'Heat1','Heat2'}, 'output', {'mod1.ppb1','mod1.ppb2','mod1.ppb3'}); Error: Error using...
View Articlehow to construct geometry using excel files
hi I have a geometry figure in excel file which contains the coordinates of my geometry how will I convert this to a geometry in COMSOL using excel livelink Rabia
View ArticleHow can the assembly in Solidworks be edited after being imported into Comsol...
Hi all, I imported an assembly from Solidworks to Comsol using Livelink. I have a few questions as follows: 1. Where can I see and change the x, y, z position of the imported model? I want to add...
View Articlestate space export
Hi, I'm trying to export a state space model for the microresistor beam example. Can anyone tell me how to export a state space model of the displacement as a function of temperature? A tutorial in 4.1...
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 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 ArticleInconsistency 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 Article