Hello,
I found a bug that causes POSTFEKO to crash with a critical error when exporting a dataset using the script editor's
DataSet: ExportMatFile() function. It only occurs when we export the dataset for composite structures (i.e., made up of metallic and dielectric regions). The export function works perfectly in purely metallic or purely dielectric cases.
The case we studied (attached) was a coated sphere (radius = 0.5m), where the interior is a metal sphere (radius = 0.25m) enveloped by a dielectric sphere (epsilon_r = 2.56). It is illuminated by a plane wave and solved at 250MHz. Below is the LUA code we used to export the surface currents dataset to a .mat file.
app = pf.GetApplication() app:NewProject() app:OpenFile([[project_location\coated_sphere.fek]]) -- Set up the file details absPath = [[\project_location\]] -- HIGHLY recommended to hard code the absolute path! -- Find all possible data files names = pf.SurfaceCurrentsAndCharges.GetNames() --Get current as a dataset currents = pf.SurfaceCurrentsAndCharges.GetDataSet(names[1]) --Export to .mat file --DataSet:ExportMatFile currents:ExportMatFile("coated_sphere_FEKO_data.mat", "currents")
The critical error is as follows:
POSTFEKO 2020-372425 (x64)
e:\installation\utilities\luascript\include\common_DataValueVariantCastToVisitor.h (75): Assertion failed: 0
Thanks!