I am working on a Lua script that involves creating a number of plane waves with different parameters. While I could find how to modify the direction of a plane wave easily, I can't find documentation on how to modify the phase and amplitude from the Lua API. I'm sure there's an easy way to do this, I couldn't find anything in the manual or example guide that explained this.
Thanks in advance,
CE
Hello Christopherson,
You are indeed correct that this is easy. There are two ways to go about finding out how to do things in the CADFEKO API. The one is to find the object in the API and see what options it provides (properties, methods) or using the example for that object if it does roughly what you need. The other way is to use script recording - record the actions and then see the code it generated and modify it to your requirements.
Below is a section that I script recorded. I simply created a plane wave source with default options and then modified it, changing the magnitude, phase and also angles of incidence.
If you look at the 'PlaneWave' object in the API reference, you will see similar info (obviously the links won't work in my extract below):
I hope the info helps.