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,711 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,411 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,825 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,778 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,347 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,033 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,172 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,035 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,345 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,674 1 View
Hi, im trying to make a projection in a 3d comsol model. I have a non uniforme chanel and my intention is to get the average tempreture in the y-z cross section and se the average tempreture...
02 March 2021 4,624 4 View
How to do Piezoelectric coupling in ANSYS-APDL or COMSOL between tapered substrate and rectangular piezoelectric patch? Piezoelectric coupling between the rectangular substrate and rectangular...
02 March 2021 9,833 3 View
I have been trying to simulate heat transfer problem in Comsol 5.5 for long time but it always throw an error stating: "Failed to find a solution. Maximum number of Newton iterations...
28 February 2021 8,626 3 View
I've used the "export data" option in Vesta software to convert my unit cell into a cif file however when I use that cif in atomsk it shows error such as "can't read the position of atom 0". If I...
28 February 2021 4,966 3 View
I want to measure change of capacitance due to relative displacement between two parallel plates in COMSOL. Distance between two plates changes with time. So I'm using a time dependent study but...
26 February 2021 8,567 3 View
I have set up a qPCR run on MxPro with SYBR green and ROX as a reference, however, when I go to the analysis section the program seems to only collect data for the dissociation curves and not the...
25 February 2021 8,039 1 View
Dear respected researchers, while performing CFD analysis in Comsol it's showing like this Error: Nonlinear solver did not converge. The maximum number of Newton iterations reached can...
24 February 2021 249 3 View
I understand there are a lot of software programs that can simulate DED by going through specific modeling, simulation, and commands. For me, that was time consuming and results were not accurate....
24 February 2021 4,428 3 View
Here I am facing this problem. I don't find any effect of this type of parameters. I am a beginner user of COMSOL.
23 February 2021 9,086 3 View
I am using COMSOL Multiphysics 5.5. I am trying to simulate the tensile test of PCL scaffolds. However, regardless of the strain, I have the elastic region all the time which is not true when it...
23 February 2021 4,050 1 View