Auto Creation Of M-files
Hi, Whenever I save a COMSOL model a MATLAB M-file is automatically created in the same directory with the same name but with "_history" added to the end. Does anyone know how to stop this or is it...
View ArticleHow to extract the stiffness Matrix for a certain element?
Dear all, Hi. I need to extract the stiffness Matrix for a certain element or node before assembling. The "mphmatrix" command gives me the results for whole geometry (After assembly). I wonder if there...
View ArticleHow to read m.files in comsol 4.2
Hi, How to read m.files in comsol 4.2 that generated previously from comsol 4.2? Any idea, everyone?
View ArticleFailed to find consistent initial value
Hi, everyone, I try to build a model based on the “Heat Transfer” module and the “ALE” module, just as the .mph attachment shown. When solving it, the following error occurs (just shown in the .png...
View ArticleHow to export data in excel format?
Hey Ivar, I want to export my figure into excel format. and replot it in matlab. Is it possible ? Thank you very much!! Baofeng
View ArticleSolving Self - Consistent Schrodinger and Poisson with MATLAB and COMSOL...
I'm a COMSOL 4.2a user. I need to solve 2D self-consistent Schrodinger and Poisson equation. Thus, I need to feed the potential values and the wavefunctions to the Schrodinger and Poisson equations as...
View ArticleUpdate Interpolation function in each simulation step
Hello Everyone, I am trying to set up a time-dependent simulation in COMSOL v4.3a. It's a structural mechanics model and the material properties are defined by an interpolation function which is read...
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 ArticleHow export data using MATLAB Link?
Hi All I need information, how I can export data by vertex using MATLAB? Before solve my problem, first I obtain information about mesh: nElem = model.mesh('mesh1').getNumElem; nVertex =...
View ArticleUsing Comsol with Live-link for matlab to get a jacobian matrix?
Hey there, I am currently working on a steady state resistivity/MMR problem, and Comsol has been great for a forward solver. I am wanting to do an inversion of data to get a model for the ground, and I...
View ArticleUpdating COMSOL variables at each time step
Hi all, I am trying to solve a model which requires updating a variable (something like a boundary condition) based on the solution at each TIME STEP. I am planning to use MATLAB LiveLink on order to...
View ArticleSimulation in Finned Tubes
How to do heat transfer and flow simulation in Finned Tubes I tried a lot ; but i could not able to give correct boundary conditions. Please help me to solve this problem.
View ArticleComsol "DATA" export
Recently I am working on a project modeling the soft tissue (blood veins) for evaluating the performance of targeted medicine. The model that I have developed is in Comsol and I am using Matlab...
View ArticleRun Comsol with Matlab Remotely
Hi, I'm trying to run a comsol with matlab script remotely using linux. I can get the simulation to run while I'm connected via ssh, but when I close my session or lose connectivity, I get a broken...
View Articleproblem with enabling graphics in matlab
Hi, I am trying to activate plot option from matlab but something is not working right. Here are the steps that I follow: - In a terminal window I run "comsolserver -graphics" - Open matlab and type...
View Articleinventor tube assembly to comsol
Hello everybody.I made a tube and pipe design in Autodesk inventor that contains 2 manifolds and several pipes(want to run a laminar flow simulation). When i transfer the file to comsol via livelink...
View ArticleExporting a geometry file (parasolid_binary) using MATLAB Livelink
Hello, I would like to export a geometry from COMSOL in parasolid_binary using MATLAB live link ? You can easily do this from COMSOL desktop, however, I could not do it using the Live link. Please,...
View ArticleExtracting Global Stiffness and Load vecor Matrices with LiveLink for MATLAB
Hi Suresh I didn't get any feedback from support so I'm sending this question for you. Seems that you have experience with Livelink for MATLAB. I have a question regarding the stiffness Matrix...
View Articleoutputs from mphgetu and mphmatrix
Hello, I'm looking at a time-dependent 1D 'Coefficient Form PDE' problem. I mesh the line with 4 element (5 nodes). So I have 5 degrees of freedom, the relevant system matrices are also 5x5. Also to...
View ArticleAdd air box to a complex geometry via LiveLink for SolidWorks
Hi folks, According to LiveLink for SolidWorks Users Guide, the geometry sequence can only contain the LiveLink for SolidWorks, however, one needs to add an additional air box for some physics...
View Article