hello,now i have writeen the script of Laguerre Gauss beam with Matlab.i used txt to convert it into mat format,which cannot be
run in FDTD software.Please help me to convert it into mat format,which can be imported into FDTD?
Hello @luhuimin ,
The simplest way to create a source based on a script would be to write the script as a Lumercial LSF script file instead of Matlab (the syntax for writing the equations should be almost identical to Matlab script, so converting the script shouldn't be a problem). This page has an example script that you can use as a starting point:
You could also import the EM field data from the TXT file ( for example using the "readdata" script command: https://support.lumerical.com/hc/en-us/articles/360034411234-readdata) and save it in a rectilinear dataset. This page describes the format for doing that:
However I think the first option would be easier.
I have seen the rxample you give me.the format is .fsp,which is imported into fdtd software.there are only two formats,.mat and .fld.i want to ask how can i convert to matlab data file(*mat)?
Ansys customers with active commercial software licenses can access the customer portal and submit support questions. You will need your active account number to register.