Dependent variable definition
Dear all, I am having trouble finding which variables the solver is solving for. I know that I can see all the variables if I activate the equation view. However, out of all these I am not sure which...
View ArticleStructural optimisation
Hi, I am using a livelink from Solidworks to Comsol in order to import 3D geometry and quickly define some geometry parameters. I've made a structural analysis with applying torque load to my model and...
View ArticleHow to select Boundaries by coordinates/boxes WHILE building the geometry in...
Hello, I am trying to automate my COMSOL model via the LiveLink interface and I am struggling at the geometry part, where I need to transform all my boundaries into "solid". I tried the following:...
View ArticleChanging geometry etc. between study steps
Hi, I've got a rather exotic problem at hand. I want to use the Livelink to Matlab of COMSOL 4.3b to simulate an evolving system. I am using the Diluted Species Package. So I start with a configuration...
View ArticleASK: easy functions in COMSOL4.3
Hi there, I am now trying to model a moving laser beam (as heat flux) on a steel plate. I try to do this by following steps: 1. build a solid block (domain 1) to represent the steel plate. 2. set 'heat...
View Articlehow to change material properties of a mesh element in a loop
Hi I am working with livelink to maltab and I have a geometry with three domains assigned with certain material properties. After solving my model for the first iteration, I take the results for each...
View ArticleCan 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 ArticleTrouble 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 ArticleExtracting 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 ArticleError 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 ArticleMatlab 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 Articlematlab 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 ArticleMoving 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 Articlehandling 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 ArticleExtracting 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 ArticleHow 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 ArticleLiveLink 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 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 ArticleGetting 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 ArticleCOMSOL 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