I want to use the COMSOL model in Simulink. For this, I am exporting the model prepared in COMSOL into .m format.
However, I am trying to understand , how to use this .m file into S-function.
Can anyone help me in this?
thanks
IT can only possible if simulink is having the same solver which is used in comsol. You can run the comsol .m file through MATLAB via live link.
I assume you have a license which runs along with livelink for MATLAB.
Please check the below video link for how-to-do.
https://www.comsol.kr/video/livelink-matlab-demonstration
I have a tube with a fixed inside thickness. Now, I want to change thickness of some part of this tube to X mm and some part to Y mm. Rest of the part has no change. Moreover, the parts of...
02 March 2019 7,794 3 View
I recently saw an example of water-hammering effect example of COMSOL Multiphysics. The example shows that the sudden closing of a valve produces pressure-shock through out the pipe upstream to...
31 December 2018 1,553 3 View
I'm simulating a shell and tube heat exchanger in comsol . I am plugging some of the tubes within the structure to see its effect on del.P and temperature. When I plug 18 of 19 tubes, and one...
09 October 2018 9,912 4 View
Dear all, I want to know about the wall lift off in CFD simulations What's it's significance and why they are different in FEM and FVM? Moreover, if it only depends on meaning, then why in...
08 September 2018 4,895 0 View
I have a doubt: A : 1. If a parameter value (say 'x = 100 ') is changed in model via Matlab-Livelink (via Matlab coding) 2. model is run. After it, B : 1. Again the paramater value is changed...
07 August 2018 6,431 0 View
I have simulated a heat-exchanger in COMSOL. The same heat-exchanger is simulated (with the exact geometry ) in Aspen Plus. I'm facing following problems in above: 1. The results of Aspen Plus...
06 July 2018 6,118 0 View
I have a shell and tube heat exchanger (1-1 pass ). It has shell of 250 mm ID and tubes of 50 mm ID (# 19). Length is 500 mm. I want to know the time-constant for this heat-exchanger (approx....
05 June 2018 1,247 0 View
Hello, I want to add an external material to the COMSOL for simulation. How can we do it? thanks.
04 May 2018 4,149 0 View
Dear all, I am trying to connect a function-file in MATLAB to Simulink via 2nd level S-function. But I have a global variable defined in my function file. Can anyone let me know, how to declare...
03 April 2018 1,430 3 View
Dear all, I want to use the S-function in Simulink to connect it to COMSOL. I am able to use the Livelink and can import COMSOL model to MATLAB and can access the results. But my problem is as...
03 April 2018 9,752 1 View
I’m trying to reproduce the acousto-optic coupling simulation in the paper Frequency–angular resolving LiDAR using chip-scale acousto-optic beam steering. LNOI(lithium niobate on insulator) is...
13 August 2024 9,795 0 View
I have incorporated the dispersion effect for the OPBE functional by specifying the S6, SR6 and S8 parameters for GD3 in Gaussian G09 package. For this purpose, I have defined the environment...
05 August 2024 1,494 2 View
Hi there, I'm new to modelling with comsol. I would like to ask if it is possible for comsol to output linearly polarized (LP) modes? I tried modelling a simple single mode fiber with an enlarged...
23 July 2024 4,019 3 View
Undefined variable. - Variable: comp1.cNa - Géométrie: geom1 - Domaine: 1 Failed to evaluate expression. - Expression: comp1.cNa - Affichage: Graphique sur ligne 1
19 July 2024 1,938 2 View
Hi, everyone This figure depicts a simulation of an electrostatic energy harvesting system in COMSOL Multiphysics software. My question is regarding the relationship between the changes in...
19 July 2024 4,694 4 View
Hello, My name is Radu Jubleanu, I am a PhD student at the Politehnica University of Bucharest. I work in the field of magnetic storage in superconductors. I want to carry out a numerical study of...
15 July 2024 6,025 1 View
Dear All, I am trying to define the dispersion curves of a periodic unit cell in COMSOL Multiphysics with prescribed displacements. I am using two separate studies: - Study 1: Stationary, with...
13 July 2024 7,855 1 View
In this model clearly understanding how to active one layer to another layer and how to add powder material properties step by step.
08 July 2024 6,147 0 View
We aim to study an exothermic process and evaluate its temporal changes. Could you recommend suitable software for this purpose and explain how to conduct this analysis? What specific data is...
30 June 2024 8,413 1 View
Hello, Has anyone successfully modeled 2D argon plasma jet using the COMSOL? I would greatly appreciate any guidance on this matter.
30 June 2024 5,597 0 View