Saving geometry from within Matlab
Hi There Does anyone know if it is possible to save just the finalized geometry (.mphbin) from within Matlab? Thanks!
View Articlemphplot(model, 'pg1') command does not work
Hi, I am very new user of COMSOL. I am using COMSOL 51. and COMSOL 5.1 with Matlab. I have a comsol model in comsol GUI. It has a 2D plot with a tag <pg1>. I want to see the graph in matlab. At...
View ArticlePower Management on Real-Time Solution for Heat Transfer Model
Hi, I am building a bioheat transfer model. Generally speaking, I want to control the temperature change in human tissue by varying the power dissipation on microelectronics. I have already set the...
View ArticleDisplacing and rotating COMSOL model after importing
Hello Everyone, I have imported model to the COMSOL via Livelink for Creo Parametric, but the coordinates of the model in COMSOL have been chosen arbitrary. In the picture (refer to the attachment) you...
View ArticleSyntax Error
Hello, I am working on a Piezoresistivity, Boundary currents module and a time dependent study. I intend to apply a dynamic pressure load on a circular sensor. I have imported the goemetry from Creo...
View Articleconfuse in functions 'mphmeshstats' and 'mpheval'
Dear all, I was thinking about using COMSOL for mesh generation and results validation for which I used functions in 'COMSOL with MATLAB'. They are 'mphmeshstats' and 'mpheval', to be more specific. I...
View ArticleProblems Loading Pre-Stress/Perturbation Model into Matlab
I have created a model with 'Stationary' and 'Frequency-Domain, Perturbation' steps to create a 'pre-stressed' solid mechanics analysis. The model results seem reasonable, and I would like to load the...
View ArticleEvaluate parameter value in MATLAB
Hi, If I have a parameter, e.g.:>> model.param.set('outer_z', '((volume*formfactor^2)/(2*pi))^(1/3)'); How can I in the easiest way evaluate the value of this parameter (like the 'Value'-column...
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 ArticleDefining Newmann's boundary conditions in COMSOL
Dear experts, I am new in COMSOL, and having a lot of trouble getting used to the pre-defined form of the equations. In addition, since I can't find any good introductory tutorials (1D for example...)...
View ArticleHow to get the stiffness matrix without computing the whole solution?
Hey, I am a student major in geo-engineering and recently I am stuck with a Livelink for Matlab problem. As for a subsurface seepage flow problem, the default solver of Comsol seems very hard to...
View ArticleImport from Solidworks to compact notation API
Hi, I'm new at Comsol. I would like to know if it is possible to import a solidwork sketch to compact notation of Comsol. I pretend to build a matlab program that changes some parameters of a piece...
View ArticleParallel computing MatLab Comsol [warning -Identifier: root is not serializable]
Dear All, I am running COMSOL servers in parallel using parallel computation toolbox (Matlab) to solve optimization problem. For each time when the model gets loaded using parfor i get the below...
View ArticleError to initialize a physics interface created with Physics Builder in...
Hi all, I am trying to compile with LiveLink for Matlab (Matlab version MATLAB_R2012a) a Comsol model (Comsol version COMSOL 4.3.0.151) that uses a physics interface which I created with the Physics...
View ArticleAdd air box to a complex geometry via LiveLink for SolidWorks
Hi folks, According to LiveLink for SolidWorks Users Guide, the geometry sequence can only contain the LiveLink for SolidWorks, however, one needs to add an additional air box for some physics...
View ArticleBlocks vector defined in MATLAB 2014a
Hi all, I want to use MATLAB to drive Comsol Multiphysics to generate Blocks, the program generates the Blocks through circulation. for i = 1:nelx for j = 1:nely if x(i,j) == 0...
View ArticleHow do I get the nodes associated with a boundary.
Hi, I have a model (Solid Mechanics). I have one component in that model. 1. I have defined some constraints on some boundaries. 2. I have defined a boundary load as well. 3. I have a mesh...
View ArticleURGENT -Running COMSOL with MATLAB help needed
Hello, This is in reference to a post : May 3, 2011 8:51am EDT in response to captainmariah Re: Work on COMSOL through MATLAB? 2. You can start a Comsol server manually (from the Comsol Start menu...
View ArticleAccessing individual variables (source term, convection coeffs...) for...
Hi, I am using COMSOL Coefficient of PDE form. I want to implement Gauss Quadrature for Discrete ordinates method (discretization in angular space). The way I am doing it is: Each PDE equation...
View ArticleDefine or change domain number/name
Hello, I´m using Livelink with Matalb to do a simple study. In my code I generate 3 diferent geometrys with a while and when I try to define materials it gives an error because the domain number are...
View Article