error message when define interpolating function in matlab (other function...
Hello everybody, whenever I define an interpolation function in matlab with model.func.create('int1', 'Interpolation'); I get an error message (see below) - but if I write instead...
View Articlescript for exporting deformed geom from livlink matlab ?
Hi all, In GUI, I could remesh the deformed configuration from the results dataset, and from there i could export to a new geometry (xx.mphbin). But how can i do the same from matlab livelink ? I...
View ArticleHow to incorporate varying temperature with respect to time??
As the ambient temperature varies with time, I wish to add that variation pattern of temperature in COMSOL 4.3a. Is it possible? If possible, how can I add 1. using equations 2. using excel sheet for...
View Articlepartial derivative of external MATLAB function
Hi, I am modeling reactive transport in COMSOL and have external MATLAB function to solve the chemical reactions. MATLAB function is defined based on five COMSOL variables as follows; FUNCTION NAME:...
View ArticleAdding temperature varying with time
I want to enter temperature for calculating heat flux (temperature varies with time). Is there any method of entering the values? How can I use functions like interpolation, Rectangular etc,,,
View ArticleHow to determine face numbers (using matlab livelink) associated with an object
Hello again, I am trying to 'automatically' set my boundary conditions for a model generated in matlab with livelink. I know which objects need to have which boundary conditions based on a draw order...
View Articleconfusion between comsol 3.5a and 4.3a
hello everyone, It might be a noob question, but could anyone please tell me how this should work in comsol 4.3a. So in comsol 3.5a in order to save the normalized electric field i just did this:...
View ArticleStore solution and use as a boundary condition for the next run
Hi Does anybody knows how to apply the results obtained at the outlet of first run back to the inlet as an inlet bounrady condition? Actually the objective is to study a flow in a long clyinder by...
View ArticleExtracting sweep and solution properties with matlab livelink
Hello, I have created a parametric sweep in Comsol, sweeping e.g. frequency or a geometry parameter or many of those and for each setting solving the emw 2D mode. Now I am postprocessing with Matlab...
View Articlemislabeling of periodic boundary conditions with changing geometry
Hi Problem: I have a unit cell of a periodic lattice structure. The unit cell has Floquet periodic boundary conditions [PBC], and I am doing a parametric sweep of the geometry features of the basis...
View ArticleParallel computing MatLab Comsol
Hi, I am using Comsol 4.3 with Livelink for Matlab. I run an optimization code in Matlab where i call Comsol to perform frequency response simulations. Now i would like to start two parallel frequency...
View ArticleDefromed Mesh
Hi everyone. I designed a 2D rectangular object with a deformed mesh composed by a set of points interpolated between them in order to realize lines. How can I "move" such a structure in COMSOL 3.5a (I...
View ArticlePlotting specific eigensolutions
Hi Vincent, You reply about extracting the eigenfrequency solutions was very helpful for me. Thank you. I was wondering if you might be able to help me with a similar problem: Comsol gives me two...
View ArticleError using colormap Too many input arguments.
Hey everybody, Does anyone of you know the following error when working with the Matlab live link: mphplot(model,'pg1','rangenum',1); Error using colormap Too many input arguments. Error in...
View ArticleWear Model - Solving a contact problem with irregular geometry
Dear COMSOL, I wonder if you could help me in solving this contact model in COMSOL 4.3. I am implementing wear by solving a quasistatic contact model using the Structural Mechanics module, extracting...
View ArticleHow to know all the variables existing in MPH file via Matlab
Hi, I have a basic problem which may be simple for most users. I just want to do some further postprocessing for MPH results via Matlab. But, I don't know how to know all the variables existing in MPH...
View Articledoes a periodic boundary condition for u implement inflow u (boundary1) =...
Dear everyone, I have a question about the implementation of periodic boundary conditions for fluxes, so that the inflow through one boundary equals the outflow through the other. In comsol 3.5, this...
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 Articleparametrize the position of a point in the geometry gives an error message
Dear Comsolfriends, I want to do a parameter study for the size of my geometry, but I get the following error when trying to set the position of a POINT using a parameter defined before in MATLAB...
View Articlecomputing accurate fluxes with periodic boundary conditions?
Hi everybody, does anyone know if I can compute the fluxes accurately, as described in the user guide on page 308 ff. and file 0973 from the knowdledge database etc, when using periodic boundary...
View Article