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 ArticleCOMSOL 4.2a with MATLAB (COMSOL 3.5a compatibility) error
Hi, I'm trying to use COMSOL 4.2a with MATLAB (COMSOL 3.5a compatibility) and I obtained the following error: Undefined variable "com" or class "com.femlab.jni.FlNativeUtil.ensureLibIsLoaded". Error in...
View Articlewhat is wrong with the ALE
(all are in the .doc attachment. Thanks) Hi,everyone, I ‘m building a simple model based on the “heat transfer” module and the “ALE” module. The geometry is a simple rectangle. In the heat transfer...
View ArticleCommunication between Comsol and Matlab
Hello Forum, I encounter a problem when I try to use a Matlab function within Comsol. I can plot the function in Comsol. But when I try to run the study, I receive the error attached: "Failure loading...
View ArticleWhile Loops and Converge Criteria for pseudo steady state model
Hello, I am attempting to create a series of simulations whose aim it is to examine the influence of my model's physics on the models geometry. What I have is a vascular geometry , which has a certain...
View ArticleUpdate Interpolation function in each simulation step
Hello Everyone, I am trying to set up a time-dependent simulation in COMSOL v4.3a. It's a structural mechanics model and the material properties are defined by an interpolation function which is read...
View Articlecomsol with matlab
Hi, I encountered a problem while using comsol. when I open the icon comsol with matlab, I got "??? Undefined variable "com" or class "com.comsol.model.util.ModelUtil.connect"." Any ideas on what is...
View Articleset path of the external matlab function
Hello all, I am trying to run a Matlab script of my model which in turn uses an external Matlab function. When I run the model from matlab, comsol opens a new Matlab process and tries to call the...
View ArticleSolidworks model meshing issue
I created geometry of a saddle coil pair in Solidworks and then I imported it to COMSOL using the geometry import option. When I build meshes, it gives error of meshing around edges and corners. COMSOL...
View ArticleAssign number of processors to a Comsol server
Hi, the option -np sets the maximum number of processors that Comsol is allowed to use. When Comsol is started in server mode this option seems to be ignored. For example Comsol server is started...
View Article[SOLVED] "Solution not initialized" when using Livelink for Matlab
(Documenting for others' possible benefit.) This error happened: ============================================================ Error using com.comsol.model.impl.SolverSequenceImpl/getPVals Java...
View Articleopen .mat file in comsol
Hi all, I got couple of files which are in version of 3.5a, and the file extensions are .fl and .mat. I can open .fl through comsol, but I don't know how to open .mat in comsol, which can be opened...
View Articlecomsol default solver parameters
Hello all, I am generating a matlab-script based comsol model and want to be able to run it from within Matlab. I am simulating a time-dependent study of a vibration problem. From my understanding of...
View ArticleList expressions and predefined quantities in Maltab or Java
Hello everyone, I'm looking for a way to find the "expressions and predefined quantities" a model offers within matlab or java. Via COMSOL-GUI, this is simply possible by clicking one of the two...
View ArticleProblem "To extract COMSOL data "
Hi I try to follow all the steps that is mentioned in the LIVELINK FOR MATLAB USER GUIDE"Start to load the model busbar from the COMSOL model library, enter the command: model = mphload('busbar'); To...
View ArticleLivelink for Matlab
Hi, I would like to create a simple model using API in Matlab. When I type the command "shell.feature.create('fc1', 'FixedConstraint') ", errors "Unkonwn feature ID#FixedConstraint" exsit. I have...
View Articleimpose a local young's modulus on many subdomains
hi everybody i want to make a script (matlab) to impose a local young's modulus on many subdomains (attached image of my subdomain) someone have any idea how to make it ? thank you very much
View ArticleCoupled solutions using LiveLink
Hello, I have created two models on the COMSOL server. One solves the steady-state heat equation and returns T(r,z). I can access this solution from MATLAB using mphgetu. I'd like to feed this T(r,z),...
View ArticleState Space Export
Hi , i have build a simple cantilever beam model using time depented model. after defining the points of forces and parameters, i want to export the model to matlb (State Space Matrices) so i could...
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 Article