Lars Gregersen
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
2 years ago
Sep 16, 2022, 7:51 a.m. EDT
Updated:
2 years ago
Sep 26, 2022, 9:11 a.m. EDT
The easiest way to achieve this is to add a Gaussian Pulse to your model by clicking on Global Definitions and selecting Functions->Gaussian Pulse. Fill in the necessary settings for your pulse (either usign hard coded numerical values or parameter names).
Update your settings in the model such that the newly created Gaussian Pulse is used.
Save your model as an M-file by selecting Save as on the File menu. In the drop down box Save as type select "Model file for Matlab".
Open the saved M-file in the Matlab editor. At the end of the file you can see the commands that corresponds to defining and using the Gaussian Pulse in your model.
-------------------
Lars Gregersen
Comsol Denmark
The easiest way to achieve this is to add a Gaussian Pulse to your model by clicking on Global Definitions and selecting Functions->Gaussian Pulse. Fill in the necessary settings for your pulse (either usign hard coded numerical values or parameter names).
Update your settings in the model such that the newly created Gaussian Pulse is used.
Save your model as an M-file by selecting Save as on the File menu. In the drop down box Save as type select "Model file for Matlab".
Open the saved M-file in the Matlab editor. At the end of the file you can see the commands that corresponds to defining and using the Gaussian Pulse in your model.
Please login with a confirmed email address before reporting spam
Posted:
2 years ago
Sep 23, 2022, 7:58 a.m. EDT
Dear Lars
Many thanks for your responce,
Yes I followed your advice and now my simulation works very well, thanks a lot.
Best regards,
Manal
Dear Lars
Many thanks for your responce,
Yes I followed your advice and now my simulation works very well, thanks a lot.
Best regards,
Manal