How to find entities of expelicit selection in the Work plane of a 3D model...
Hi I have created a geometry in the work plane of a 3D geometry (which is obviously in 2D mode at this stage). and i have created explicit selection feature and set the selection object as well. when I...
View ArticleExtract state space matrix
I run this command in Matlab but it has error M = mphstate(model,'sol1','out',{'MA' 'MB' 'C' 'D'},... 'input', {'Heat1','Heat2'}, 'output', {'mod1.ppb1','mod1.ppb2','mod1.ppb3'}); Error: Error using...
View Articlehow to construct geometry using excel files
hi I have a geometry figure in excel file which contains the coordinates of my geometry how will I convert this to a geometry in COMSOL using excel livelink Rabia
View ArticleHow can the assembly in Solidworks be edited after being imported into Comsol...
Hi all, I imported an assembly from Solidworks to Comsol using Livelink. I have a few questions as follows: 1. Where can I see and change the x, y, z position of the imported model? I want to add...
View ArticleSetting view / camera position for exported plots
I wrote a .m file that creates and solves my model and generates the result plots, and until now I have then opened the model in COMSOL and manually exported the plots that I need. Now am trying to...
View Articlehow to optimize the result of comsol with matlab??
Hello everyone! I want to know how to optimize my problem. already i got the result from matlab using the m.file which is from Comsol. Afterthat, I don't know how to solve that... Because I didn't use...
View Articlecould anyone send me this file? permanent_magnet.mphbin
i am looking for this file, comsol 4.3/ acdc module/ permanent_magnet.mphbin could anyone send me this? i have the 4.4 version which don't contain permanetn magnet tutorial thanks
View Article"Java exception" problem during multiple iterations in Livelink for MATLAB
Hi everyone, this forum is great and it helped a lot to grow in COMSOL world. Anyway, now i am trying to calculate/simulate a phase growth process considering the mass transfer through the interfaces,...
View ArticleProblem setting up multigrid
Dear all, I'm building a 3D CFD model of a airplane wing. I'm modeling turbulence with the SST approximation. The problem is that when I build a default mesh the results are not accurate enough to got...
View ArticlegetTableData(fullprecision)
Hi all, I'm using livelink and I've gone through the 'Livelink for Matlab users guide.' I have a table that I created using derived values and I want to collect the numbers in the table, 'tbl1'....
View ArticleImport of "Equation Driven Curve"- variables/parameters from SolidWorks to...
Hi COMSOL community I have an equation representing a parabola, which i'm using in a sketch in SolidWorks with the use of "Equation Driven Curve" (Tools -> Sketch Entities -> Equation Driven...
View Articlesaving comsol model from matlab livelink
Hi, Until 3.5a, there used to be nice flsave which would save fem structure as comsol's model file. Can somebody tell what is its counterpart in 4.x series? May be I missed something but looking into...
View ArticleSaving plot from mphplot() to disk
Hi, I'm having a hard time trying to save a plot which comes from mphplot(). What I'm trying is: figure; mphplot(model,'pg3'); saveas(gcf,'result_plot.tiff'); But it just produces an error 'Warning:...
View ArticleProblems with sweep mesh
Hi, I have been trying to sweep mesh a domain (3-D). It will be like a small straight tube of rectangular cross section and having turns at right angles (like a serpentine). I tried to mesh the source...
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 ArticleError when call a Matlab function
Hi, I have created a matlab function, function[r]= vel(w1,w2), to the velocity of reaction in a reacting flow model. The function has two inputs, w1 and w2, the mass fractions of the reagents, which...
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 ArticleSet of Data
Hello, I'm modeling the heat profile of Sugar beet pile, I have data for more than 120 days. I insert the data for each day manually, and that is wasting of time. How can I input this data as excel...
View ArticleMATLAB LiveLink
Hi! I am trying to model a smart material called Magnetorheological Elastomers. It can change it's stiffness when a magnetic field is present. To do this, I would like to use a MATLAB function that can...
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 Article