matlab selection.set selects the wrong edges
Hi all, I am using the selection.set function to make selection for some edges. Plotting the geometry directly in matlab and also saving a mph file and plotting in comsol gui shows some numbers...
View ArticleCOMSOL and MATLAB function
Dear All, I want to use a MATLAB function in COMSOL 4.4, my function is a simple example like: function out=myfunc(x) out=x; However, when I define a MATLAB fuction in COMSOL with name 'myfunc' and...
View ArticleRun Comsol Matlab using multi processors
Hi folks, I have a question about running Comsol Matlab using multi processors. I have a 3D application that involves turbulent air flow and mass transfer. My Comsol is installed on a cluster. For now...
View Articlematlab/comsol unit problem
My problem is Diffusion eq + Navier–Stokes eq I am solving diffusion equation which has unit (mm) in Matlab and Navier–Stokes eq in Comsol (SI unit). I could not decide how to get out of unit problem....
View ArticleHello
Hi, I am currently learning how to use COMSOL to perform CFD analysis on one of my 3D models and am facing similar problems with importing it into COMSOL. Could you please tell me if and how you...
View ArticleCompatibility
Hi, Does anyone have experience in transferring over models between various versions of COMSOL? I recently started using COMSOL 5.0, and before that was using 4.4, and before that started on 4.3. I...
View ArticleMultibody dynamics- Error while using Livelink with inventor
I have synchronised my model in inventor with comsol and ensured every parameter between both of them is perfectly matched, but the initial physics which comes like Linear Elastic Material and Initial...
View ArticleCannot extract data from two datasets properly
I'm using COMSOl 4.4 LiveLink with Matlab (R2012b). I've run a time-dependent simulation with two studies, where I've implemented a stop condition for the first time-dependent study, and then used the...
View ArticleTime dependent alternating temperature/thermal insulation boundary conditions
Hi all, I am trying to setup alternating boundary conditions for a certain boundary based on the hours of each day. My model will run for about 2 months, and I would like to set the boundary condition...
View ArticleMATLAB parfor and Comsol server
Hi, I want to speed up my computations using the parfor loop in MATLAB (from Parallel Computing Toolbox). I run this on a Linux machine. My code so far: system('killall -9 comsollauncher java'); % kill...
View ArticleHow to get the mass matrix in comsol 3.5a
Dear all, I am conducting a simulation in COMSOL 3.5a with MATLAB through the RF module -- in plane waves -- eigenfrequency analysis. For some reasons, I need to get the element matrix or global matrix...
View ArticleRun a MATLAB function in COMSOL
Dear All, I want to use a MATLAB function in COMSOL 4.4, my function is a simple example like: function out=myfunc(x) out=x; However, when I define a MATLAB fuction in COMSOL with name 'myfunc' and...
View Articlemodel.param.set
Hi, Are there someone would like to give me some help about 'model.para.set'? I have three variables in comsol model, which are p_1, p_2, p_3. So in my matlab function, I worte model.para.set...
View ArticleVoronoi 2D network drawing in COMSOL 4.3b
Hi All I am just wondering whether anyone knows how to draw Voronoi 2D diagram in COMSOL. I also require the division to draw with thickness such that it becomes a boundary instead of line. Any...
View ArticleParallel Computing with MATLAB Livelink and COMSOL
Hi everyone, I am currently trying to use Matlab's Global Optimization tool (specifically using genetic algorithms) with my function. Every time my function evaluates, it loads a model file, modifies...
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 ArticleConvergence plots
Does anyone know if it is possible to show a convergence plot during a livelink with Matlab? I'm using version 4.4 and matlab R2013a. Thanks
View ArticleUser defined functions from Matlab for COMSOL simulation
Hi, I am trying to model turbulent flow as well as time-dependent species equation in a certain domain, where the species concentrations at some of the boundaries vary with time (NOT known in...
View ArticleDefining and perform matrix/array calculations in COMSOL
Dear all, Does anyone know if it is possible to define matrices/arrays as input parameters and perform simple evaluations such as obtaining the Trace of the matrix, conjugate transpose or matrix...
View ArticleHow to loop simulations in Comsol 4.2a with Matlab
Dear comsolers, here is an example on how to loop simulations. I'll let you decode it. 'Preprocessing' that I did before the loop: 1. Build a model in Comsol (attached). 2. Save As Model M-File...
View Article