Quantcast
Channel: Latest Discussions - COMSOL Forums
Browsing all 428 articles
Browse latest View live

When i use...

When i use the matlab function feature node in comsol 5.1 desk, the comsol alwarys prompt “Failure loading MATLAB libraries. This model requires that MATLAB is available.”

View Article


Error while using Matlab LiveLink

I'm facing a problem while using Matlab LiveLink. -------------------------------------------------------------------------- geom1 = model.geom.create('geom1', 2); c1 = geom1.create('c1', 'Circle');...

View Article


Invoke parameters from comsol in matlab

Hi everyone, I would like to invoke parameters from comsol in matlab, the code is as follows model.param.set('N', '5'); num=model.param.N; Error in num=model.param.N; And how to invoke the parameter...

View Article

assemble external force vector rather than the residual vector by comsol

Hi all, In a simple linear elastic problem, a FE equation can be written as K*U=F, I would like to know if comsol can assemble and output this "F" vector? In the documentation, it seems that comsol can...

View Article

How to call external MATLAB functions from COMSOL?

Hello everyone, I have a problem with calling an external MATLAB function from COMSOL model and I would be grateful for any assistance. When I try to call an external MATLAB function from COMSOL I get...

View Article


Comsol+Matlab on Linux cluster: "No user name and password could be obtained"

A problem I had and its solution, for the record. (Just seeing as nobody reported these error messages yet.) Just tried running Comsol+Matlab on a cluster, using what seemed to work before: $ \comsol...

View Article

CAD Import Module Error...

Hi, I have created a CAD model and tried to import it into COMSOL, but I was encountered with this error: ''Feature: Import 1 CAD Import Module functionality is not installed. Note: CAD Import Module...

View Article

Variable boundary conditions

Hi all, I'm using the API to run my COMSOL model multiple times in a loop in MATLAB with different initial and boundary conditions. I was just wondering if it would be possible to set the initial...

View Article


1GB MPH file resulting from importing a 4KB Image via MPHIMAGE2GEOM... Why?!

We are trying to import the attached small image into COMSOL using the mphimage2geom command in Matlab Livelink (relevant piece of code is below for your reference). The resulting mph file is over 1GB...

View Article


Solidworks 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 Article

problem about comsol can't plot an external Matlab function that Nested a...

Hi, everyone: I have a problem about using an external matlab function that it nested another matlab function but comsol can't plot it. this is my function:>> function out = rho_x(T)...

View Article

mphinterp - Read data from model fails: Error in meshextend: GC overhead...

Hello, I have encountered an error which I can not explain myself. I am calculating multiple models one after another with Matlab and read out data at specific coordinates. This is part of my...

View Article

MATLAB Function and Automating M-Script File with Comsol: mphinterp Command

I have used the command syntax: mphinterp(model,'p','coord',coord1a) to extract pressure values at the stated coordinates: coord1a=[x1;y1]. The study is in 2D; but I have been getting an empty matrix...

View Article


simulating an imported mesh (from matlab)

Hi, I'm trying to simulate a prescribed displacement (one end is fixed and the other one displaced) of a mesh created in matlab (the geometry is from a microCT image). The problem is comsol dons't...

View Article

COmsol - Matlab Variable linking.

Hi all, I am Looping simulations over matlab with different sets of values matlab calculates. I am looking for changing the variable values. I have found for Parameter as model.param.set() for changing...

View Article


I want to know whether my license is allowed to set up the comsol operated on...

I do not know whether my license is allowed to set up the comsol operated on a computer cluster

View Article

How to define for comsol to use only one cpu for the solution? Also using the...

When I run Comsol Sometimes I need it to work only with one CPU. Is there any option anywhere to do that or Comsol automatically decides on that? Also for some solutions, I noticed my CPU is at 87% and...

View Article


Same model, different solutions?

Hello, Community, I'm doing phase change simulation with phase change HT module. Currently I have a problem with COMSOL: The same model gives different results in different runs! I use Matlab Livelink...

View Article

Variable 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 Article

Extraction at Arbitrary Points and NaN

I have gone through the matlab-comsol livelink manual, and I understand that the NaN output value occurs when the extraction point is outside of the computation domain; but in this case the point is...

View Article
Browsing all 428 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>