Matlab, parametric sweep and plotting
Hi, I'm running my comsol model with livelink for matlab but I cannot succeed the plotting... model.sol('sol1').create('t1', 'Time'); model.sol('sol1').feature('t1').set('tlist',...
View ArticleHow to simulate correctly the time-dependent problem in Comsol-Simulink...
I am trying to simulate the time-dependent problem in Comsol-Simulink. Two variables on every simulation step are entered into the S-function. On every simulation step the Comsol model integrated into...
View ArticleVariable modifications between solution iterations
I'm developing a transient model using the Livelink interface. The model first calculates an initial solution for the first time window, then I would like to modify the state variable values due to...
View ArticleSpeed of solver decreases in a parametric loop MATLAB
Hey all, I am new to comsol. I need to study effect of a parameter in a eigenfrequency problem. In MATLAB, I solve the problem for each value of the parameter (say for eg say some geometric parameter)....
View ArticleNow available: COMSOL 5.2a Update 2
Hello, I'm pleased to announce that COMSOL 5.2a update 2 is now available for download. This is a quick installation to keep your software current and stable. It applies to version 5.2a of COMSOL...
View ArticleWhere to find more documentation about physics interfaces for use in Livelink...
I have recently started working with the livelink for Comsol in Matlab. I was able to get things working with the help of the programming reference manual, the introduction to livelink for matlab and...
View ArticleExporting COMSOL data into MATLAB
Hi there, I am new to COMSOL and currently running a very basic simulation adding strain to a 2D custom geometry. I am just wondering how i would go about exporting the post processed stress map (the...
View ArticleID of physics in Livelink for matlab
Hi, Where can I find the ID of a physics feature? I for example want to make a prescribed displacement in Comsol. Usually it works to just make 'Terminal' of a terminal, but I tried...
View ArticleOverlap of Spatially Separated Quantities in Livelink
I want to calculate the modes of an array of weakly-coupled optical resonators by a tight binding method. The individual resonators making up my system are cylindrical, so I calculate their modes...
View ArticleAssigning materials to domains from MATLAB
Dear COMSOL experts, I am wondering how to assign materials to domains from a matlab script. For example, I create a block "my_block" with>> model.geom('geom1').feature.create('my_block',...
View ArticleExporting Comsol data to Matlab?
Hello everybody, I want to postprocess Comsol data in Matlab. Since Ascii files blow up in size and I get "out of memory error", I'm looking for some other way. I've no experience with Comsol-Matlab...
View ArticleInverse Heat Conduction to find thermal conductivity
Hello everybody. I'm a Comsol user (basic level) and I want to obtain numerically the thermal conductivity of a material, knowing boundary heat flux and temperature values in several points. I've read...
View ArticleSolidworks import via CAD Import Module
Hi Folks, It seems as though the CAD Import module cannot import Solidworks 2016 files, but LiveLink for SolidWorks can... is that a correct understanding? I am just about to have my SolidWorks...
View Articlemphglobal with Matlab returning multiple values
Hi there, I was using mphglobal successfully to pull parameters from my comsol model but now I have an issue. I made some changes to my model such as changing the mesh and adding some more variables...
View ArticleImporting ASCII Geometry
I am completely new to Comsol so I really am struggling. Can anybody explain how I can import some flat panel polygons I have defined as a series of x, y, z position vectors in ASCII into a Comsol file...
View ArticleTransmission line and scattering parameters
Hello. I want to model a transmission line and put some solutions above and compute the s-parameter variations. Can anybody help me if there are any PDF and applications that are useful? Thanks,
View Articleimporting from solid works
first of all hi , i am new to this so i could use all the help i could get . i watched a tutorial of how to design a wind turbine to solidworks . I try to import said geometry to comsol . The problem i...
View Articleextracting results from COMSOL using livelink for matlab
Hi everyone~ It is trying to do shape optimization involving stationary analysis. The code of optimization method was written by Matlab, and it needs to receive the simulation results from the COMSOL....
View Articlecomparison between two different fields
Dear all, suppose you have two different fields and you want to compare them in order to obtain a numerical value that reflects their similarity. Do you know a way to do this? My first approach was to...
View ArticleTake the surface average on the outlet and inlet boundaries
Dear All, I am trying to create a loop in MATLAB to control my COMSOL simulation. I am not good at using the COMSOL operators. Can any one tell me how to take the average of my variables at the...
View Article