How to loop simulations in Comsol 4.2a with Matlab
Dear comsolers, here is an example on how to loop simulations. I'll let you decode it. 'Preprocessing' that I did before the loop: 1. Build a model in Comsol (attached). 2. Save As Model M-File...
View ArticleVariable exchange between Matlab and Comsol
Hello everyone, I am running Comsol using the LiveLink with Matlab and am trying to do the following: I have a value, dt, which is 0 everywhere in the beginning. (I can either use dt=0, make an...
View ArticleState Space Export
Hi , i have build a simple cantilever beam model using time depented model. after defining the points of forces and parameters, i want to export the model to matlb (State Space Matrices) so i could...
View ArticleBug in matlab livelink, 2D cut line 'genpoints'
Hi just want to give a heads up to anyone experiencing problems with retrieving data from a 2D cut-line in matlab. My objective: To get average air gap magnetic field over one pole span, by using 2D...
View Articlejava.lang.ClassCastException when using LiveLink from MATLAB
Hi there, I've been successfully using COMSOL and LiveLink for a few months now for generating and simulating electromagnetic models. However, yesterday I ran the same MATLAB code as I always do, but...
View ArticleTime dependent alternating temperature/thermal insulation boundary conditions
Hi all, I am trying to setup alternating boundary conditions for a certain boundary based on the hours of each day. My model will run for about 2 months, and I would like to set the boundary condition...
View ArticleComsol Import Module Troubleshooting
Recently I had the IT department set up a single floating license of the Comsol Import Module for my university and I'm having difficulty accessing it. When trying to import .igs or .step files into...
View ArticleEigenvalue calculation of a dipole antenna
Hello, I built a simple dipole antenna to study the feature of the Livelink for MATLAB. The dipole is built as a 2D axisymmetric structure. Both eigenvalue solver and eigenfrequency solver are adopted...
View ArticleGeometry import - Assembly Identity Pair Problem
Hi, after importing a cylindric CATIAV5 Part with to bodies it is not possible to build proper Identity Edge Pairs at the edge of the circular top. (two cylindric objects are stacked together). When I...
View ArticleAccessing database
Hello, Is it possible to access the database of a study and modify the value of a dependent variable? I am running v4.3b with Matlab. In my Comsol model, I have two studies; general form PDE and...
View Articledependent variables: sweep over "initial values" and "variables not solved for"?
Hello all- I have 2 Studies in my 2D model: Study 1 solves for various fields within my geometry. These fields are different for each wavelength (lam0). Study 2 takes the lam0-dependent fields from...
View ArticleParallel Computing with MATLAB Livelink and COMSOL
Hi everyone, I am currently trying to use Matlab's Global Optimization tool (specifically using genetic algorithms) with my function. Every time my function evaluates, it loads a model file, modifies...
View Articleboundary condition dependent on dependent variable
Hello everybody, In a coupled heat and mass transfer problem, I would like a pressure BC to get updated at each time step. Let's call this pressure pv. pv depends on the temperature and pressure...
View ArticleAccess depenant variable in Matlab code
Hi I am trying to develop a diffusion-reaction model using COMSOL - MATLAB interface. My model requires access to dependent variables during the execution so that they can be passed to an external...
View ArticleDerivative of a dependent variable
Hello, I am using the values of a dependent variable 'phi' and its derivative in Matlab. For some reason, the numbers of nodes are different between the original dependent variable and its derivative....
View ArticleSpecifying location of an import CAD in the simulation
Hello Everyone, I've been searching for a while, but I have been unable to find a way to specify where in the design space you would like an import CAD to be located. Any help would be greatly...
View Articlequestion on livelink with matlab
Hi all, In fact, I am coming up with a wired simulation result. The problem lies in that, if I change the value of "tumor_radius" in the m.file, the location of the left point source, which apparently...
View ArticleLivelink for Pro-Engineer error: ... PRO_COMM_MSG_EXE ...
Hi All, I have installed live link for Pro-Engineer 4.0. On the Comsol model builder right click and Livelink for Pro-Engineer. As i click on synchronize, an error report was appear: Failed to connect...
View ArticleCOMSOL with MATLAB crashing with trapezoidal integration
HI everyone My LiveLink for Matlab for COMSOL 4.2a, with Matlab R2011b works fine. I have a script in Matlab that works perfectly fine in Matlab alone and Matlab with COMSOL. This script doesn't...
View Articleflload not working
Hi everyone, i'm new to comsol and I have a problem with COMSOL-with-MATLAB. I have the 4.2a release and matlab 2011b. I need to use a .mph file in matlab and my colleague suggested me to use the...
View Article