How to determine domain number from a given block name.
Hi I'm currently working with a project where I have to prepare a model to be illuminated in the RF module by microwawes and ultimately being able to determine the location of tumors in human tissue....
View ArticleAutomatically import parameters and export simulation data
Hi! I'd like to do the following. I would like my Comsol model to automatically import simulation parameters (e.g. geometrical dimensions, charge density on a surface, etc.), run an auxiliary sweep and...
View ArticleComsol with Matlab
Hello, I saved my comsol model as a matlab file, to run it in matlab using liveLink but then I have this error. Java exception occurred: Exception: com.comsol.util.exceptions.FlException: Invalid...
View ArticleImplement temperature variant properties using Matlab functions and Obtaining...
Dear All, I have defined several properties which are temperature dependent, through user defined MATLAB functions. So as during computing the properties can be calculated in MATLAB and retrieve the...
View ArticleIs there an easy way to create a high number of geometric components with a...
Hi all, I am using COMSOL 4.3 to simulate a 2D photonic crystal waveguide made of air holes in a dielectric (using the emw study of the RF module), and I wish to look at how roughness around the holes...
View ArticleMass matrix is Zero
Hello, I have built a model using pressure acoustic frequency domain module. I have tried to extract state space matrices using MATLAB Livelink. The problem is my mass matrix turns to null matrix. As I...
View ArticleExtracting of the state space matrices
Hello, I am trying to export the state space matrices of a model which I have built in COMSOL using Acoustic module. The problem is when I extract {A} and {B} matrices, I face the singular matrices but...
View ArticleIs the LiveLink command mphint2 appropriate using the cut line dataset?
In Livelink application for MATLAB there is the command mphint2 using it to evaluate the results. In the evaluation of Derived Values I want to use the selection Cut Line 1 {cln1} instead of the...
View ArticleError when using Livelink for Matlab
Hi I need to call a Matlab function and it works fine if i try it in the simple Matlab Command Window, but when i run the simulation and try to pass probe values to the function (I use it as objective...
View Articlecharge particle tracing link with matlab
In charge particle tracing, I use 'release from data file' to release particles. Now I want to use matlab to change the data file. Seem it changed from the comsol desktop. It looked same as before. But...
View ArticleHow to re-order two different solutions (Livelink MATLAB)
There are two ways to get a vector of solution data, I know. 1. Using "getU" and index. That is: temp1 = model.sol(<soltag>).getU; data1 = temp(index); 2. Using the function, "mpheval" directly....
View ArticleCan I extract the algorithm that corresponds to the COMSOL solution?
Hi! I would like to extract the code of a COMSOL file so that I can interfere when ever I want, How can I do that? Is there any idea? Thank you in advance! PD
View ArticleCOMSOL - MatLab combination without LiveLink( for MatLab)
Hi, I use a class kit license COMSOL version which doesn't include the livelink for MatLab. However I want to run a loop in MatLab using some COMSOL outputs. Specifically I want to write a MatLab code...
View ArticleErrors in COMSOL with Matlab
When I launch COMSOL with MATLAB I get the following errors. Have any of you had this problem or know what is wrong? 2016-02-12 00:34:55.590:INFO:oejs.Server:jetty-8.y.z-SNAPSHOT 2016-02-12...
View ArticleCOMSOL with MATLAB
Hi, does anybody know how to change the length unit of a geometry in MATLAB, i.e set um or nm on the MATLAB script in order to set the desired length unit in the model geometry in COMSOL
View ArticleAdvanced Closed-Loop Control of COMSOL Model using Matlab
Hi I'm an experienced user of Matlab where I usually do modelling and simulation of a desired control object. The problem is, that the object I'm about to control contains some complicated dynamics,...
View Articleintegrating a scalar field in one direction
The model that i am working on contains a plate that is locally heated. the temperature field is thus non-uniform over the whole domain. What i want is the average temperature in the Z direction...
View ArticleExporting Load functions applied in COMSOL to MATLAB
I want to export the edge load function data I applied in SOLID MECHANICS physics to MATLAB. I found the name as "solid.FperLengthy". When I try to extract data with help of...
View ArticleDegree of freedom from extracted state space model
Hi all I came to this problem. I have a simple joule heating model: an electrode sticking into a domain and flew through a current through the domain so that the mass was heated up by conductive...
View ArticleAdding MATLAB Livelink to COMSOL
Hey all! I am trying to link MATLAB with COMSOL 4.4, Is there anyone who knows how to activate Livelink for MATLAB in it? It seems that while installing COMSOL I did not give the path of the MATLAB...
View Article