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

load two models in the Matlab Livelink

Hello; I am new in Comsol and Matlab Livelink. my question is how can I load two models in Matlab Livelink? For example I try to run the following sample code, but it generates error which I am unable...

View Article


How to Generate Smooth Molecular Surface with COMSOL

Hello folks, I have COMSOL 4.3a and LiveLink for Matlab with me. And I have constructed a protein subunit of about 1000 atoms based on the coordinate data in the PDB file. I simulated each atom as a...

View Article


Problem of using femtime() in COMSOL 3.5a

Hello all, I use femtime() in matlab to solve a dynamic FE problem as follow: fem.sol = femtime(fem,'Tlist',tspan); where tspan is an equally distributed time list. tspan = [t0,t1,t2,...tn]. Now, I am...

View Article

Execute COMSOL Ribbon buttons with VBA

Does anyone know if there is a way to execute COMSOL ribbon buttons (for example, it 'clicks' the mesh button or it clicks plot group and selects the correct plot)? Basically, what I doing is creating...

View Article

How to duplicate solution in Matlab

Hi all, I am now using the COMSOL Livelink for Matlab. I create two solutions whose soltags are 'sol1' and 'sol2' respectively. I want to copy the solution from 'sol1' to 'sol2'. Here is what I am...

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

Can we impose a MINIMUM STEPSIZE AS A STOP CONDITION?

I loop thousands of transient simulations in matlab and I can't find a solver setting that will stop the solver when the step size becomes very small (history of the stepsize in log file) and the...

View Article

Trouble extracting a derived value into Matlab

Hello everyone! As the title says I got some trouble getting numerical values from my derived values into matlab variables when using the livelink for matlab. What I do is I create a model in comsol,...

View Article


Getting derived values into matlab variables

Hello! I have some trouble getting the value of an average operator into a matlab variable when using comsol through matlab. What I get when I translate the model into an .m file is this:...

View Article


LocalSelectionImpl/set error when using mphinterp

This is not a question, rather documentation for anyone who might encounter the same problem in the future. I followed these steps: 1. Build a model. 2. Delete everything non-essential. 3. File ->...

View Article

COMSOL with Matlab syntaxis (plotting and extraction datas while optimization...

hello. I'm trying to make belows these days. First, I've opened a 'Topology Optimization of a Loaded Knee Structure' from the model library that is aleady exist. And I clicked 'reset history' then...

View Article

Extracting effective index for computed mode

Hi, I am trying to get my head round the new (v4.0 and above) version of Matlab script language. I am mainly using RF module to compute modes of a given structure. When I use GUI, I specify number of...

View Article

Error in user-defined matlab function

I am using COMSOL matlab function, and I defined two functions: full_expression_PL(T,z), full_expression_PL_dT(T,z), where full_expression_PL_dT is the derivative respect to T of full_expression_PL. I...

View Article


Matlab with Comsol graphics mode

Hello guys, I am using Comsol 4.2a with Matlab for solving a piezoelectricity problem. There, I am excecuting a batch for a parameteric sweep where I would like to see graphical output while solving....

View Article

matlab coder C++ executable

Is there any work around for using the "import" function when coverting a matlab *.m file to a C++ executable? I'm trying to convert a COMSOL *.m file to an exe file and I have to use import...

View Article


Moving Mesh simulations of swelling (shrinking) circle and prescribing of...

Hello, I am currently running a boundary value simulation, using the general form PDE, which utilizes a moving mesh to account for a shrinking (or swelling, depending on Initial conditions and Boundary...

View Article

handling interpolation function on Matlab environment

Hi. i usually do turn on the check box 'use space coordinates as arguments' to interpolate functions on GUI environment. But, i encountered situation about disappearing messages on Matlab environment....

View Article


Extracting a table from a Comsol using Matlab livelink

Hello, I am having troubles in accessing a table that is created in comsol model using matlab livelink. When I use this command a = 120; b = 100; d = 100; model = waterDropsInOil(a,b,d); tabl =...

View Article

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

LiveLink for Matlab_Magnetic Buoyancy Force_Complicated force equation

Hi there! I am trying to simulate the transport of non magnetic particles using ferrofluids and magnetic fields. I have simulated the magnetic field, and I have now to do the particle tracing. Because...

View Article
Browsing all 2194 articles
Browse latest View live