post feko script for export Cartesian plot
I have 2 models for which, E field (Y axis) is plotted against a given 'Y position' in X axis (Independent axis).
In fixed category: Freq - single/one, X position --> 10 positions, Z position --> 1 position.
I need script (a) To plot, all X position 10 positions (same for both models) for 2 models for given Y position (b) export plotted curves into single *.dat file
Data from *.out file & creating plot in spread sheet takes more time.
Answers
-
Hi Jey
You should be able to do this using the POSTFEKO API. The API object you require is called CartesianGraph. (Depending on your installation directory) You can find more details on using this object and an example of creating such a graph and adding a trace in the POSTFEKO API documentation at:
file:///C:/Program%20Files/Altair/2020/help/feko/html/topics/feko/user_guide/appendix/api_postfeko_auto_generated/object/reference_api_postfeko_object_cartesiangraph_feko_r.htm
To modify the traces to show the required quantities over the required axes you should access the ResultTrace object. See file:///C:/Program%20Files/Altair/2020/help/feko/html/topics/feko/user_guide/appendix/api_postfeko_auto_generated/object/reference_api_postfeko_object_resulttrace_feko_r.htm for such an example.
Finally, with all the traces set up as required, you could use the ExportTraces method (applied to the CartesianGraph object). (Similar to the ExportImage method used in the CartesianGraph example mentioned above.
Alternatively, you could export the field data to Feko's native (text-based) EFE file format by selecting the option under the Nearfield request in CADFEKO. If you do not want to rerun our Feko simulation to achieve this, it is also possible to export these files directly from POSTFEKO.
It is also possible to export a result set directly to a MAT file using the ExportMatFile function under the MatIO namespace:
file:///C:/Program%20Files/Altair/2020/help/feko/html/topics/feko/user_guide/appendix/api_postfeko_auto_generated/namespace/reference_api_postfeko_namespace_matio_feko_r.htm
Kind regards,
Johan H
0 -
Thanks Johan. It helped. If 'Record Macro' option made available in POST FEKO will help beginners.
0