Variable 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 ArticleExtracting data during simulation for each iteration
Hi, In my model, I want to have the amount of pressure at specific grid points (1D model) at each iteration, and use this value to manipulate another variable which is used in the next iteration. I was...
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 ArticlePCB w/ Components simulation
Can i take my PCB w/ all the components and simulate in Comsol? My PCB is simple PCB generaly w/ Fet driver that drives a PCB planner coil
View ArticleCOMSOL Inventor Interface
I receive the error code: Internal JNI error when trying to open .mph in Inventor. My overall goal is to export the geometry in COMSOL: so that I can create a mask. I need the final file format to be...
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 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 ArticleHow 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 Article