thliebig / openems-project Goto Github PK
View Code? Open in Web Editor NEWopenEMS is a free and open electromagnetic field solver using the FDTD method.
openEMS is a free and open electromagnetic field solver using the FDTD method.
Hello guys,
I hope that this is the right place to post this.
Since i discovered OpenEMS project i want to try it to make my own simulation, but the thing is, i can't for the life of me getting working with python (i want to use it with python in order to create animation with blender and for easy post processing), is there a real real beginner tutorial on how to install it correctly and use it with python ? (i get lost when i comes to environnement and stuff)
I tried to use the visual code thing, but when i try to launch an example it says that i don't have library (openEMS, pypli...etc)
please send me some help !
The links to the sub-projects do not point to the head of the respective master branches. Thus, a recursive clone does not result in the current development version.
Some packages seems to be outdated in the installation requirement on Xubuntu 18.04.3 LTS. See code below:
~ $ sudo apt-get install build-essential cmake git libhdf5-dev libvtk5-dev libboost-all-dev libcgal-dev libtinyxml-dev libqt4-dev libvtk5-qt4-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libvtk5-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libvtk7-dev:i386 libvtk6-dev:i386 libvtk7-dev libvtk6-dev
Package libvtk5-qt4-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libvtk5-dev' has no installation candidate
E: Package 'libvtk5-qt4-dev' has no installation candidate
Also there is a problem with tinyxml. OpenEMS is not bulit. The log reveals the error message:
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find TinyXML (missing: TinyXML_LIBRARY TinyXML_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
cmake/Modules/FindTinyXML.cmake:65 (find_package_handle_standard_args)
CMakeLists.txt:90 (find_package)
The issue was not solved by manually installing - multiple versions of - tinyxml:
/tmp/openEMS $ dpkg -l | grep tinyxml
ii libtinyxml-dev:amd64 2.6.2-4 amd64 TinyXml library - header and static library
ii libtinyxml2-6:amd64 6.0.0+dfsg-1 amd64 C++ XML parsing library
ii libtinyxml2-dev:amd64 6.0.0+dfsg-1 amd64 TinyXML2 library - header and static library
ii libtinyxml2.6.2v5:amd64 2.6.2-4 amd64 C++ XML parsing library
Hi!
Not sure if this is the right place, but the hyp2mat repo is archived. I am not sure if this is a conversion problem in hyp2mat
or if I'm making a mistake in openEMS. If this is not the right place, feel free to simply close the issue.
When exporting the above simple structure from Kicad 6.0.5 using their Hyperlynx exporter, I obtain the attached hyp-file, which according to a Kicad developer with access to the Hyperlynx software is correctly opening in the commercial product (cf. here).
{VERSION=2.14}
{UNITS=ENGLISH LENGTH}
{BOARD "/home/localadmin_cweickhm/Dokumente/Circuits/kicad/openEMS-export/simple_test_1/simple_test_1.kicad_pcb"
(PERIMETER_SEGMENT X1=2.637795276 Y1=2.125984252 X2=0.787401575 Y2=2.125984252)
(PERIMETER_SEGMENT X1=0.787401575 Y1=2.125984252 X2=0.787401575 Y2=1.574803150)
(PERIMETER_SEGMENT X1=0.787401575 Y1=1.574803150 X2=2.637795276 Y2=1.574803150)
(PERIMETER_SEGMENT X1=2.637795276 Y1=1.574803150 X2=2.637795276 Y2=2.125984252)
}
{STACKUP
(SIGNAL T=0.00137795 P=0 C=1.724e-08 L="F.Cu" M=COPPER)
(DIELECTRIC T=0.0610236 C=4.5 L="DE_F.Cu" M="FR4")
(SIGNAL T=0.00137795 P=0 C=1.724e-08 L="B.Cu" M=COPPER)
}
{DEVICES
(? REF="J1" L="F.Cu")
(? REF="C1" L="F.Cu")
(? REF="R1" L="F.Cu")
(? REF="J2" L="F.Cu")
(? REF="L1" L="F.Cu")
}
{PADSTACK=0, 0.059055118
("MDEF", 0, 0.080708661, 0.080708661, 180.0, M)
}
{PADSTACK=1, 0.066929134
("MDEF", 0, 0.088582677, 0.088582677, 180.0, M)
}
{PADSTACK=2, 0.000000000
("F.Cu", 1, 0.046259843, 0.057086614, 180.0, M)
}
{PADSTACK=3, 0.000000000
("F.Cu", 1, 0.040354331, 0.055118110, 180.0, M)
}
{PADSTACK=4, 0.000000000
("F.Cu", 1, 0.045275591, 0.055118110, 180.0, M)
}
{NET="GND"
(PIN X=1.1629921260 Y=1.9503937008 R="J1.2" P=1)
(PIN X=1.1629921260 Y=1.7503937008 R="J1.2" P=1)
(PIN X=0.9629921260 Y=1.7503937008 R="J1.2" P=1)
(PIN X=0.9629921260 Y=1.9503937008 R="J1.2" P=1)
(PIN X=2.2622047244 Y=1.9503937008 R="J2.2" P=1)
(PIN X=2.4622047244 Y=1.7503937008 R="J2.2" P=1)
(PIN X=2.4622047244 Y=1.9503937008 R="J2.2" P=1)
(PIN X=2.2622047244 Y=1.7503937008 R="J2.2" P=1)
}
{NET="Net-(C1-Pad1)"
(PIN X=1.0629921260 Y=1.8503937008 R="J1.1" P=0)
(PIN X=1.4931102362 Y=1.8503937008 R="C1.1" P=2)
(SEG X1=1.4931102362 Y1=1.8503937008 X2=1.0629921260 Y2=1.8503937008 W=0.0098425197 L="F.Cu")
}
{NET="Net-(C1-Pad2)"
(PIN X=1.5748031496 Y=1.8503937008 R="C1.2" P=2)
(PIN X=1.6907480315 Y=1.8503937008 R="L1.1" P=4)
(SEG X1=1.5748031496 Y1=1.8503937008 X2=1.6907480315 Y2=1.8503937008 W=0.0098425197 L="F.Cu")
}
{NET="Net-(L1-Pad2)"
(PIN X=1.8778543307 Y=1.8492125984 R="R1.1" P=3)
(PIN X=1.7714566929 Y=1.8503937008 R="L1.2" P=4)
(SEG X1=1.8766732283 Y1=1.8503937008 X2=1.8778543307 Y2=1.8492125984 W=0.0098425197 L="F.Cu")
(SEG X1=1.7714566929 Y1=1.8503937008 X2=1.8766732283 Y2=1.8503937008 W=0.0098425197 L="F.Cu")
}
{NET="Net-(R1-Pad2)"
(PIN X=1.9497047244 Y=1.8492125984 R="R1.2" P=3)
(PIN X=2.3622047244 Y=1.8503937008 R="J2.1" P=0)
(SEG X1=1.9497047244 Y1=1.8492125984 X2=1.9508858268 Y2=1.8503937008 W=0.0098425197 L="F.Cu")
(SEG X1=1.9508858268 Y1=1.8503937008 X2=2.3622047244 Y2=1.8503937008 W=0.0098425197 L="F.Cu")
}
I use the following script to do the import in openEMS:
close all
clear
clc
physical_constants;
f_max = 400e6;
CSX = InitCSX();
%% CSX = ImportHyperLynx(CSX, '../kicad/T 218MHz RF Test Circuits/main/main.hyp');
CSX = ImportHyperLynx(CSX, '../kicad/openEMS-export/simple_test_1/simple_test_1.hyp');
Sim_Path = 'tmp';
Sim_CSX = 'brd.xml';
[status, message, messageid] = mkdir(Sim_Path);
FDTD = InitFDTD();
FDTD = SetGaussExcite(FDTD, f_max/2, f_max/2);
WriteOpenEMS([Sim_Path '/' Sim_CSX], FDTD, CSX);
CSXGeomPlot([Sim_Path '/' Sim_CSX]);
The result looks okay when the filled zones are removed:
But if they are included, the result looks broken:
I am not sure if this is a conversion problem in hyp2mat
or if I'm making a mistake in openEMS.
In case anyone is wondering why I need that top ground layer anyways: If you design CPW or GCPW lines, this is necessary and by far the most convenient way to design this in Kicad.
I'm running into build issues while installing OpenEMS using the Installing Ready-Made Packages for macOS.
Has anyone seen the following build error?
Machine: MacBook Pro M3 Max
macOS: Sonoma 14.1.2
Build error occurs while running brew install --HEAD openems
:
[100%] Built target AppCSXCAD
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/Cellar/openems/HEAD-d3c31d2/bin/AppCSXCAD
-- Installing: /usr/local/Cellar/openems/HEAD-d3c31d2/bin/AppCSXCAD.sh
cd /tmp/openems-20240302-56497-tesfah/AppCSXCAD-prefix/src/AppCSXCAD-build && /usr/local/Cellar/cmake/3.28.3/bin/cmake -E touch /tmp/openems-20240302-56497-tesfah/AppCSXCAD-prefix/src/AppCSXCAD-stamp/AppCSXCAD-install
[ 95%] Completed 'AppCSXCAD'
/usr/local/Cellar/cmake/3.28.3/bin/cmake -E make_directory /tmp/openems-20240302-56497-tesfah/CMakeFiles
/usr/local/Cellar/cmake/3.28.3/bin/cmake -E touch /tmp/openems-20240302-56497-tesfah/CMakeFiles/AppCSXCAD-complete
/usr/local/Cellar/cmake/3.28.3/bin/cmake -E touch /tmp/openems-20240302-56497-tesfah/AppCSXCAD-prefix/src/AppCSXCAD-stamp/AppCSXCAD-done
[ 95%] Built target AppCSXCAD
make: *** [all] Error 2
If reporting this issue please do so to (not Homebrew/brew or Homebrew/homebrew-core):
thliebig/openems
/usr/local/Homebrew/Library/Homebrew/utils/github/api.rb:356:in `raise_error': Validation Failed: [{"message"=>"The listed users and repositories cannot be searched either because the resources do not exist or you do not have permission to view them.", "resource"=>"Search", "field"=>"q", "code"=>"invalid"}] (GitHub::API::ValidationFailedError)
from /usr/local/Homebrew/Library/Homebrew/utils/github/api.rb:272:in `open_rest'
from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:178:in `search'
from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:182:in `search_results_items'
from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:36:in `search_issues'
from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:62:in `issues_for_formula'
from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:482:in `fetch_issues'
from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:477:in `issues'
from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:533:in `dump'
from /usr/local/Homebrew/Library/Homebrew/brew.rb:143:in `rescue in <main>'
from /usr/local/Homebrew/Library/Homebrew/brew.rb:131:in `<main>'
/usr/local/Homebrew/Library/Homebrew/formula.rb:2832:in `block in system': Failed executing: make (BuildError)
from /usr/local/Homebrew/Library/Homebrew/formula.rb:2768:in `open'
from /usr/local/Homebrew/Library/Homebrew/formula.rb:2768:in `system'
from /usr/local/Homebrew/Library/Taps/thliebig/homebrew-openems/openems.rb:26:in `install'
from /usr/local/Homebrew/Library/Homebrew/build.rb:177:in `block (3 levels) in install'
from /usr/local/Homebrew/Library/Homebrew/extend/kernel.rb:493:in `with_env'
from /usr/local/Homebrew/Library/Homebrew/build.rb:139:in `block (2 levels) in install'
from /usr/local/Homebrew/Library/Homebrew/formula.rb:1410:in `block in brew'
from /usr/local/Homebrew/Library/Homebrew/formula.rb:3000:in `block (2 levels) in stage'
from /usr/local/Homebrew/Library/Homebrew/extend/kernel.rb:493:in `with_env'
from /usr/local/Homebrew/Library/Homebrew/formula.rb:2999:in `block in stage'
from /usr/local/Homebrew/Library/Homebrew/resource.rb:129:in `block (2 levels) in unpack'
from /usr/local/Homebrew/Library/Homebrew/download_strategy.rb:121:in `chdir'
from /usr/local/Homebrew/Library/Homebrew/download_strategy.rb:113:in `stage'
from /usr/local/Homebrew/Library/Homebrew/resource.rb:125:in `block in unpack'
from /usr/local/Homebrew/Library/Homebrew/mktemp.rb:75:in `block in run'
from /usr/local/Homebrew/Library/Homebrew/mktemp.rb:75:in `chdir'
from /usr/local/Homebrew/Library/Homebrew/mktemp.rb:75:in `run'
from /usr/local/Homebrew/Library/Homebrew/resource.rb:226:in `stage_resource'
from /usr/local/Homebrew/Library/Homebrew/resource.rb:124:in `unpack'
from /usr/local/Homebrew/Library/Homebrew/resource.rb:98:in `stage'
from /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/forwardable.rb:238:in `stage'
from /usr/local/Homebrew/Library/Homebrew/formula.rb:2979:in `stage'
from /usr/local/Homebrew/Library/Homebrew/formula.rb:1403:in `brew'
from /usr/local/Homebrew/Library/Homebrew/build.rb:133:in `block in install'
from /usr/local/Homebrew/Library/Homebrew/extend/kernel.rb:493:in `with_env'
from /usr/local/Homebrew/Library/Homebrew/build.rb:125:in `install'
from /usr/local/Homebrew/Library/Homebrew/build.rb:229:in `<main>'
I am trying to build openEMS and encountering some errors with CAGL. The build log is as follows:
-- The CXX compiler identification is GNU 9.4.0
-- Check for working CXX compiler: /bin/c++
-- Check for working CXX compiler: /bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using CMAKE_INSTALL_PREFIX: /home/kunqian/opt/openEMS
-- Build AppCSXCAD: YES
-- with MPI: 0
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/tmp.yOQQ35sfXI
Scanning dependencies of target fparser
[ 2%] Creating directories for 'fparser'
[ 5%] No download step for 'fparser'
[ 7%] No patch step for 'fparser'
[ 10%] No update step for 'fparser'
[ 12%] Performing configure step for 'fparser'
-- The CXX compiler identification is GNU 9.4.0
-- Check for working CXX compiler: /bin/c++
-- Check for working CXX compiler: /bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/tmp.yOQQ35sfXI/fparser-prefix/src/fparser-build
[ 15%] Performing build step for 'fparser'
Scanning dependencies of target fparser
[ 33%] Building CXX object CMakeFiles/fparser.dir/fparser.cc.o
[ 66%] Building CXX object CMakeFiles/fparser.dir/fpoptimizer.cc.o
[100%] Linking CXX shared library libfparser.so
[100%] Built target fparser
[ 17%] Performing install step for 'fparser'
[100%] Built target fparser
Install the project...
-- Install configuration: "Release"
-- Installing: /home/kunqian/opt/openEMS/lib/libfparser.so.4.5.1
-- Up-to-date: /home/kunqian/opt/openEMS/lib/libfparser.so.4
-- Up-to-date: /home/kunqian/opt/openEMS/lib/libfparser.so
-- Up-to-date: /home/kunqian/opt/openEMS/include/fparser.hh
[ 20%] Completed 'fparser'
[ 20%] Built target fparser
Scanning dependencies of target CSXCAD
[ 22%] Creating directories for 'CSXCAD'
[ 25%] No download step for 'CSXCAD'
[ 27%] No patch step for 'CSXCAD'
[ 30%] No update step for 'CSXCAD'
[ 32%] Performing configure step for 'CSXCAD'
-- Found Git repository, CSXCAD version tag: v0.6.2-124-gb5919a6
-- FPARSER_ROOT_DIR: /home/kunqian/opt/openEMS
-- fparser_INCLUDE_DIR: /home/kunqian/opt/openEMS/include
-- TinyXML_ROOT_DIR
-- TinyXML_INCLUDE_DIR: /usr/include
-- TinyXML_LIBRARY: /usr/lib/x86_64-linux-gnu/libtinyxml.so
-- HDF5: Using hdf5 compiler wrapper to determine C configuration
-- Using header-only CGAL
-- Targetting Unix Makefiles
-- Using /bin/c++ compiler.
-- Found Boost: /lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found suitable version "1.71.0", minimum required is "1.48")
-- Boost include dirs: /include
-- Boost libraries:
-- Using gcc version 4 or later. Adding -frounding-math
-- Found Boost: /lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found suitable version "1.71.0", minimum required is "1.46") found components: thread system date_time serialization chrono
-- The imported target "vtkParseOGLExt" references the file
"/usr/bin/vtkParseOGLExt-7.1"
but this file does not exist. Possible reasons include:
-- The imported target "vtkRenderingPythonTkWidgets" references the file
"/usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so"
but this file does not exist. Possible reasons include:
-- The imported target "pvtk" references the file
"/usr/bin/pvtk"
but this file does not exist. Possible reasons include:
-- Found package VTK. Using version 7.1.1
-- vtk libraries vtkIOGeometryvtkCommonCorevtksysvtkCommonDataModelvtkCommonMathvtkCommonMiscvtkCommonSystemvtkCommonTransformsvtkCommonExecutionModelvtkIOCore/usr/lib/x86_64-linux-gnu/libz.sovtkIOLegacyvtkIOPLY
-- Configuring done
CMake Error in src/CMakeLists.txt:
Imported target "CGAL" includes non-existent path
"/include"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
The path was deleted, renamed, or moved to another location.
An install or uninstall procedure did not complete successfully.
The installation package was faulty and references files it does not
provide.
CMake Warning at src/CMakeLists.txt:86 (add_library):
Cannot generate a safe runtime search path for target CSXCAD because files
in some directories may conflict with libraries in implicit directories:
runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
/home/kunqian/anaconda3/lib
runtime library [libmpfr.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
/home/kunqian/anaconda3/lib
runtime library [libgmp.so.10] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
/home/kunqian/anaconda3/lib
Some of these libraries may not be found correctly.
CMake Error in src/CMakeLists.txt:
Imported target "CGAL" includes non-existent path
"/include"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
The path was deleted, renamed, or moved to another location.
An install or uninstall procedure did not complete successfully.
The installation package was faulty and references files it does not
provide.
-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.
make[2]: *** [CMakeFiles/CSXCAD.dir/build.make:108: CSXCAD-prefix/src/CSXCAD-stamp/CSXCAD-configure] Error 1
make[1]: *** [CMakeFiles/Makefile2:138: CMakeFiles/CSXCAD.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
Originally posted by XDAChen May 19, 2023
I want to obtain information about an antenna's far-field phase change relative to its phase center at a unit radius, r using OpenEMS. In HFSS I had done it with far-field result --> rE --> cang_ang. I am not sure if openEMS can provide the same information.
While I am looking at the nf2ff documentation, if I understand correctly, I set my antenna's phase center as default [0,0,0], and I can compute the electric field strength at a radius r. If it is a complex number I can post-process the complex field strength to find the angle, which would be the phase shift relative to the antenna phase center?
Anyone had done a similar thing before?
Hello everybody,
I'm starting to use OpenEMS for the HF simulation of flexible circuit boards. Because those are bent, I definitely need to import geometries as STL data. Sadly, this feature doesn't seem to work as I get the following error:
The files are definitely there and get shown correctly in CSXCAD. Still, after starting OpenEMS, the error pops up and those messages are also output in Octave (I will change over to Python in the future using CSPrimPolyhedronReader):
CSPrimPolyhedronReader::ReadFile: file invalid or empty, skipping ...
CSPrimPolyhedronReader::ReadFromXML: Failed to read file.
CSPrimPolyhedronReader::ReadFile: file invalid or empty, skipping ...
CSPrimPolyhedronReader::ReadFromXML: Failed to read file.
CSPrimPolyhedronReader::ReadFile: file invalid or empty, skipping ...
CSPrimPolyhedronReader::ReadFromXML: Failed to read file.
Warning: Invalid primitive found in property: RO4350B!
Warning: Invalid primitive found in property: CPW!
Warning: Invalid primitive found in property: GND!
I would be very pleased if you could help me out. Thanks a lot in advance! (:
best wishes,
Nico
PS: Project data can be found here
Hello,
I stumbled over this:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "myplace/StripLine2MSL.py", line 154, in <module>
p.CalcPort( Sim_Path, f, ref_impedance = 50.0)
File "$HOME/.local/lib/python3.9/site-packages/openEMS-0.0.33-py3.9-linux-x86_64.egg/openEMS/ports.py", line 130, in CalcPort
self.ut_inc = 0.5 * ( self.ut_tot + self.it_tot * self.Z_ref )
AttributeError: 'MSLPort' object has no attribute 'ut_tot'
When invoking CalcPort as
CalcPort( Sim_Path, f, ref_impedance = 50.0)
Using an integer 50 instead of the float 50.0 fixes the traceback.
The issue seems to be in ports.py somewhere here
if type(self.Z_ref) == float:
self.ut_inc = 0.5 * ( self.ut_tot + self.it_tot * self.Z_ref )
self.it_inc = 0.5 * ( self.it_tot + self.ut_tot / self.Z_ref )
self.ut_ref = self.ut_tot - self.ut_inc
self.it_ref = self.it_inc - self.it_tot
```
I'm trying to install openEMS using Homebrew on OS X 14.4.1, Intel i7 CPU, following the installation guide. The install gets stuck. I completely wiped the Homebrew installation and tried again, to the same result.
Is there a fix for this?
brew tap thliebig/openems https://github.com/thliebig/openEMS-Project.git
brew install --HEAD openems
[...]
`==> Installing openems from thliebig/openems
==> cmake .
==> make
Last 15 lines from /Users/hp/Library/Logs/Homebrew/openems/02.make:
-- TinyXML_LIBRARY: /usr/local/lib/libtinyxml.dylib
-- Unable to determine HDF5 C flags from HDF5 wrapper.
CMake Error at /usr/local/Cellar/cmake/3.29.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find HDF5 (missing: HDF5_LIBRARIES HDF5_HL_LIBRARIES) (found
suitable version "1.14.3", minimum required is "1.8")
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.29.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
/usr/local/Cellar/cmake/3.29.0/share/cmake/Modules/FindHDF5.cmake:1025 (find_package_handle_standard_args)
CMakeLists.txt:103 (find_package)
-- Configuring incomplete, errors occurred!
make[2]: *** [CSXCAD-prefix/src/CSXCAD-stamp/CSXCAD-configure] Error 1
make[1]: *** [CMakeFiles/CSXCAD.dir/all] Error 2
make: *** [all] Error 2
If reporting this issue please do so to (not Homebrew/brew or Homebrew/homebrew-core):
thliebig/openems
/usr/local/Homebrew/Library/Homebrew/utils/github/api.rb:378:in raise_error': Validation Failed: [{"message"=>"The listed users and repositories cannot be searched either because the resources do not exist or you do not have permission to view them.", "resource"=>"Search", "field"=>"q", "code"=>"invalid"}] (GitHub::API::ValidationFailedError) from /usr/local/Homebrew/Library/Homebrew/utils/github/api.rb:272:in
open_rest'
from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:178:in search' from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:182:in
search_results_items'
from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:36:in search_issues' from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:62:in
issues_for_formula'
from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:482:in fetch_issues' from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:477:in
issues'
from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:533:in dump' from /usr/local/Homebrew/Library/Homebrew/brew.rb:149:in
rescue in
<main>' /usr/local/Homebrew/Library/Homebrew/formula.rb:2833:in
block in system': Failed executing: make (BuildError)open' from /usr/local/Homebrew/Library/Homebrew/formula.rb:2769:in
system'install' from /usr/local/Homebrew/Library/Homebrew/build.rb:179:in
block (3 levels) in install'with_env' from /usr/local/Homebrew/Library/Homebrew/build.rb:139:in
block (2 levels) in install'block in brew' from /usr/local/Homebrew/Library/Homebrew/formula.rb:3001:in
block (2 levels) in stage'with_env' from /usr/local/Homebrew/Library/Homebrew/formula.rb:3000:in
block in stage'block (2 levels) in unpack' from /usr/local/Homebrew/Library/Homebrew/download_strategy.rb:121:in
chdir'stage' from /usr/local/Homebrew/Library/Homebrew/resource.rb:125:in
block in unpack'block in run' from /usr/local/Homebrew/Library/Homebrew/mktemp.rb:75:in
chdir'run' from /usr/local/Homebrew/Library/Homebrew/resource.rb:226:in
stage_resource'unpack' from /usr/local/Homebrew/Library/Homebrew/resource.rb:98:in
stage'stage' from /usr/local/Homebrew/Library/Homebrew/formula.rb:2980:in
stage'brew' from /usr/local/Homebrew/Library/Homebrew/build.rb:133:in
block in install'with_env' from /usr/local/Homebrew/Library/Homebrew/build.rb:125:in
install'<main>'
Following instructions at link :
setx OPENEMS_INSTALL_PATH C:\opt\openEMS
pip install .\CSXCAD-0.6.3-cp311-cp311-win_amd64.whl
The following exceptions are raised while trying to import either of both CSXCAD and OpenEMS Modules :
Open EMS traceback
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm Community Edition 2023.1.1\plugins\python-ce\helpers\pydev\pydevconsole.py", line 364, in runcode
coro = func()
^^^^^^
File "<input>", line 1, in <module>
File "C:\Program Files\JetBrains\PyCharm Community Edition 2023.1.1\plugins\python-ce\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\maxim\python\ml2023\Lib\site-packages\openEMS\__init__.py", line 7, in <module>
import CSXCAD
File "C:\Program Files\JetBrains\PyCharm Community Edition 2023.1.1\plugins\python-ce\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\maxim\python\ml2023\Lib\site-packages\CSXCAD\__init__.py", line 19, in <module>
from CSXCAD.CSXCAD import ContinuousStructure
File "C:\Program Files\JetBrains\PyCharm Community Edition 2023.1.1\plugins\python-ce\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: DLL load failed while importing CSXCAD: Le module spรฉcifiรฉ est introuvable.
CSXCAD traceback
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm Community Edition 2023.1.1\plugins\python-ce\helpers\pydev\pydevconsole.py", line 364, in runcode
coro = func()
^^^^^^
File "<input>", line 1, in <module>
File "C:\Program Files\JetBrains\PyCharm Community Edition 2023.1.1\plugins\python-ce\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\maxim\python\ml2023\Lib\site-packages\CSXCAD\__init__.py", line 19, in <module>
from CSXCAD.CSXCAD import ContinuousStructure
File "C:\Program Files\JetBrains\PyCharm Community Edition 2023.1.1\plugins\python-ce\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: DLL load failed while importing CSXCAD: Le module spรฉcifiรฉ est introuvable.
Several of the dependencies are not available on the latest Ubuntu. Please suggest the replacements for the repositories:
sudo apt-get install build-essential cmake git libhdf5-dev libvtk5-dev libboost-all-dev libcgal-dev libtinyxml-dev libqt4-dev libvtk5-qt4-dev
libvtk5-dev has been replaced by libvtk7-dev; Libraries libqt4-dev and libvtk5-qt4-dev are not available.
I am running openEMS on Python 3.11.9. My OS is Windows 11 Enterprise. When I run the following code, adapted from this tutorial, I get the results shown below the code. The file containing the invalid float is port_it_0
, and it is copied below the output. The program also does not write the xml file rect_wg.xml
import os, tempfile
from pylab import *
# Add dll folder to trusted locations
dll_directory = 'C:\\Users\\KyleBeatty\\Downloads\\openEMS_v0.0.36\\openEMS\\python'
os.add_dll_directory(dll_directory)
from CSXCAD import ContinuousStructure
from openEMS import openEMS
from openEMS.physical_constants import *
now = datetime.datetime.now()
now_string = now.strftime('%m-%d_%H-%M')
Sim_Path = os.path.join(os.getcwd(), 'Rect_WGi_{}'.format(now_string))
post_proc_only = False
unit = 1e-6
a = 10700
b = 4300
length = 50000
f_start = 20e9
f_0 = 24e9
f_stop = 26e9
lambda0 = C0/f_0/unit;
TE_mode = 'TE10'
mesh_res = lambda0 / 30
FDTD = openEMS(NrTS=1e4)
FDTD.SetGaussExcite(0.5 * (f_start+f_stop), 0.5 * (f_stop-f_start))
FDTD.SetBoundaryCond([0, 0, 0, 0, 3, 3])
# set up geometry and mesh
CSX = ContinuousStructure()
FDTD.SetCSX(CSX)
mesh = CSX.GetGrid()
mesh.SetDeltaUnit(unit)
mesh.AddLine('x', [0, a])
mesh.AddLine('y', [0, b])
mesh.AddLine('z', [0, length])
# apply the waveguide port
ports = []
start = [0, 0, 10*mesh_res]
stop = [a, b, 15 * mesh_res]
mesh.AddLine('z', [start[2], stop[2]])
ports.append(FDTD.AddRectWaveGuidePort(0, start, stop, 'z', a*unit, b*unit, TE_mode, 1))
start = [0, 0, length- 10*mesh_res]
stop = [a, b, length - 15 * mesh_res]
mesh.AddLine('z', [start[2], stop[2]])
ports.append(FDTD.AddRectWaveGuidePort(0, start, stop, 'z', a*unit, b*unit, TE_mode))
mesh.SmoothMeshLines('all', mesh_res, ratio=1.4)
# Define dump box
Et = CSX.AddDump('Et', file_type=0, sub_sampling=[2, 2, 2])
start = [0, 0, 0]
stop = [a, b, length]
Et.AddBox(start, stop)
# Run simulation
if True: # debugging only
CSX_file = os.path.join(Sim_Path, 'rect_wg.xml')
if not os.path.exists(Sim_Path):
os.mkdir(Sim_Path)
print('writing to xml')
CSX.Write2XML(CSX_file)
print('written to xml')
#from CSXCAD import AppCSXCAD_BIN
#os.system(AppCSXCAD_BIN + ' "{}"'.format(CSX_file))
if not post_proc_only:
FDTD.Run(Sim_Path, cleanup=True)
# post-processing and plotting
freq = linspace(f_start, f_stop, 201)
for port in ports:
#print('{} {}'.format(Sim_Path, freq))
port.CalcPort(Sim_Path, freq)
writing to xml
written to xml
----------------------------------------------------------------------
| openEMS 64bit -- version v0.0.36
| (C) 2010-2023 Thorsten Liebig <[email protected]> GPL license
----------------------------------------------------------------------
Used external libraries:
CSXCAD -- Version: v0.6.3
hdf5 -- Version: 1.12.0
compiled against: HDF5 library version: 1.12.0
tinyxml -- compiled against: 2.6.2
fparser
boost -- compiled against: 1_72
vtk -- Version: 8.2.0
compiled against: 8.2.0
Create FDTD operator (compressed SSE + multi-threading)
FDTD simulation size: 27x12x132 --> 42768 FDTD cells
FDTD timestep is: 5.18459e-13 s; Nyquist rate: 37 timesteps @2.60648e+10 Hz
Excitation signal length is: 1842 timesteps (9.55001e-10s)
Max. number of timesteps: 10000 ( --> 5.42888 * Excitation signal length)
Create FDTD engine (compressed SSE + multi-threading)
Running FDTD engine... this may take a while... grab a cup of coffee?!?
[@ 4s] Timestep: 3546 || Speed: 37.9 MC/s (1.129e-03 s/TS) || Energy: ~2.14e-30 (-81.53dB)
Time for 3546 iterations with 42768.00 cells : 4.01 sec
Speed: 37.86 MCells/s
file: C:\Users\KyleBeatty\python\mwe\Rect_WGi_06-17_13-09\port_ut_0
file: C:\Users\KyleBeatty\python\mwe\Rect_WGi_06-17_13-09\port_it_0
Traceback (most recent call last):
File "C:\Users\KyleBeatty\python\mwe\script.py", line 91, in <module>
port.CalcPort(Sim_Path, freq)
File "C:\Users\KyleBeatty\AppData\Local\Programs\Python\Python311\Lib\site-packages\openEMS\ports.py", line 379, in CalcPort
super(WaveguidePort, self).CalcPort(sim_path, freq, ref_impedance, ref_plane_shift, signal_type)
File "C:\Users\KyleBeatty\AppData\Local\Programs\Python\Python311\Lib\site-packages\openEMS\ports.py", line 105, in CalcPort
self.ReadUIData(sim_path, freq, signal_type)
File "C:\Users\KyleBeatty\AppData\Local\Programs\Python\Python311\Lib\site-packages\openEMS\ports.py", line 96, in ReadUIData
self.i_data = UI_data(self.I_filenames, sim_path, freq, signal_type )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\KyleBeatty\AppData\Local\Programs\Python\Python311\Lib\site-packages\openEMS\ports.py", line 44, in __init__
tmp = np.loadtxt(os.path.join(path, fn),comments='%')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\KyleBeatty\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\lib\npyio.py", line 1373, in loadtxt
arr = _read(fname, dtype=dtype, comment=comment, delimiter=delimiter,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\KyleBeatty\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\lib\npyio.py", line 1016, in _read
arr = _load_from_filelike(
^^^^^^^^^^^^^^^^^^^^
ValueError: could not convert string '-04.4.92535963379e-12' to float64 at row 0, column 3.
% time-domain current mode matching by openEMS v0.0.36 @Mon Jun 17 13:09:10 2024
% start-coordinates: (0.000411538,0.000390909,0.0437543) m -> [1,1,111]
% stop-coordinates: (0.0102885,0.00390909,0.0437543) m -> [25,10,111]
% t/s current mode_purity
2.5922945441e-13 -0 -04.4.92535963379e-12 -0 -0
9.59148981317e-12 -0 -0
1.42576199926e-11 -0 -0
1.89237501719e-11 -0 -0
2.35898803513e-11 -0 -0
2.82560105307e-11 -0 -0
3.29221407101e-11 -0 -0
3.75882708895e-11 -0 -0
4.22544010688e-11 -0 -0
4.69205312482e-11 -0 -0
5.15866614276e-11 -0 -0
5.6252791607e-11 -0 -0
6.09189217864e-11 -0 -0
6.55850519657e-11 -0 -0
7.02511821451e-11 -0 -0
7.49173123245e-11 -0 -0
7.95834425039e-11 -0 -0
8.42495726833e-11 -0 -0
8.89157028626e-11 -9.78133874256e-35 -0.996632614438
9.3581833042e-11 -4.06149317204e-31 -0.996633920959
9.82479632214e-11 -6.94492110087e-28 -0.996633920774
1.02914093401e-10 -5.25238438687e-25 -0.996633922279
1.0758022358e-10 -1.84560944446e-22 -0.996633927562
1.1224635376e-10 -3.1072505977e-20 -0.9966339204
1.16912483939e-10 -2.53540224643e-18 -0.996633921914
1.21578614118e-10 -9.89358009134e-17 -0.996633924393
1.26244744298e-10 -1.74597994974e-15 -0.996633918863
1.30910874477e-10 -1.1785180562e-14 -0.996633922419
1.35577004656e-10 -1.07156186645e-14 -0.99663392561
1.40243134836e-10 8.29699031628e-14 -0.996633921011
1.44909265015e-10 4.31538573206e-14 -0.996633910141
1.49575395195e-10 -8.29425240999e-14 -0.996633912157
1.54241525374e-10 -1.21917971136e-13 -0.996633926314
1.58907655553e-10 -7.7342996372e-14 -0.996633916907
1.63573785733e-10 -1.26308532363e-14 -0.996633955125
1.68239915912e-10 1.5271536217e-13 -0.996633925794
1.72906046091e-10 2.40379805083e-13 -0.996633917287
1.77572176271e-10 2.09558083533e-13 -0.996633916899
1.8223830645e-10 3.35789393529e-14 -0.996634010794
1.8690443663e-10 -2.01066359515e-13 -0.996633931928
1.91570566809e-10 -4.26921822911e-13 -0.996633920558
1.96236696988e-10 -5.04811906028e-13 -0.996633921362
2.00902827168e-10 -3.12314169773e-13 -0.996633913376
2.05568957347e-10 1.30772375019e-13 -0.996633844227
2.10235087527e-10 6.72892556075e-13 -0.996633929968
2.14901217706e-10 1.04102258953e-12 -0.996633917071
2.19567347885e-10 9.66112444278e-13 -0.996633922856
2.24233478065e-10 3.30241509135e-13 -0.996633903903
2.28899608244e-10 -7.18628364766e-13 -0.99663390448
2.33565738423e-10 -1.74927871925e-12 -0.996633919679
2.38231868603e-10 -2.18742759067e-12 -0.996633926975
2.42897998782e-10 -1.58722630032e-12 -0.996633909565
2.47564128962e-10 7.78420550591e-14 -0.996634059614
2.52230259141e-10 2.25973458186e-12 -0.996633914352
2.5689638932e-10 3.94763844017e-12 -0.996633921329
2.615625195e-10 4.07063707261e-12 -0.996633920882
2.66228649679e-10 2.06234026719e-12 -0.996633918709
2.70894779858e-10 -1.6715867424e-12 -0.996633911313
2.75560910038e-10 -5.67011788359e-12 -0.996633918436
2.80227040217e-10 -7.88217848348e-12 -0.996633930115
2.84893170397e-10 -6.5935163258e-12 -0.996633908129
2.89559300576e-10 -1.44887496834e-12 -0.996633999856
2.94225430755e-10 5.95759145747e-12 -0.996633931963
2.98891560935e-10 1.23694536051e-11 -0.996633922638
3.03557691114e-10 1.41297973709e-11 -0.996633919268
3.08223821294e-10 9.01362868119e-12 -0.996633919384
3.12889951473e-10 -2.19475221285e-12 -0.99663388903
3.17556081652e-10 -1.52951760745e-11 -0.99663392228
3.22222211832e-10 -2.39700739852e-11 -0.996633924722
3.26888342011e-10 -2.25497264097e-11 -0.996633916902
3.3155447219e-10 -9.1579819106e-12 -0.996633924871
3.3622060237e-10 1.23326702967e-11 -0.996633904659
3.40886732549e-10 3.28740181305e-11 -0.996633925206
3.45552862729e-10 4.1672414178e-11 -0.996633918249
3.50218992908e-10 3.13724677525e-11 -0.996633923857
3.54885123087e-10 2.69489648512e-12 -0.996634029116
3.59551253267e-10 -3.40315457678e-11 -0.996633924361
3.64217383446e-10 -6.19705770626e-11 -0.996633916981
3.68883513625e-10 -6.4958378226e-11 -0.996633923086
3.73549643805e-10 -3.59490063391e-11 -0.996633922807
3.78215773984e-10 1.73762902607e-11 -0.996633904337
3.82881904164e-10 7.33560069114e-11 -0.996633916151
3.87548034343e-10 1.04423437256e-10 -0.99663391976
3.92214164522e-10 8.98870662286e-11 -0.99663391447
3.96880294702e-10 2.78176419094e-11 -0.996633962367
4.01546424881e-10 -6.0230911081e-11 -0.996633937975
4.0621255506e-10 -1.35496826262e-10 -0.996633920498
4.1087868524e-10 -1.58212969878e-10 -0.996633925863
4.15544815419e-10 -1.07376486875e-10 -0.996633914165
4.20210945599e-10 5.2856202661e-12 -0.996633626408
4.24877075778e-10 1.35283966401e-10 -0.996633916726
4.29543205957e-10 2.21766536485e-10 -0.996633921101
4.34209336137e-10 2.14948873683e-10 -0.996633918433
4.38875466316e-10 1.02663279501e-10 -0.996633918546
4.43541596496e-10 -7.74370890534e-11 -0.996633937223
4.48207726675e-10 -2.48462430481e-10 -0.996633921773
4.52873856854e-10 -3.25993109762e-10 -0.996633919894
4.57539987034e-10 -2.58397596894e-10 -0.996633917424
4.62206117213e-10 -5.70173349185e-11 -0.996633921965
4.66872247392e-10 2.00225211444e-10 -0.996633928572
4.71538377572e-10 3.97422452385e-10 -0.996633927519
4.76204507751e-10 4.31847911072e-10 -0.996633914279
4.80870637931e-10 2.65603239117e-10 -0.996633930412
4.8553676811e-10 -4.75943599878e-11 -0.99663394181
4.90202898289e-10 -3.76792623472e-10 -0.996633920696
4.94869028469e-10 -5.67465576703e-10 -0.99663392204
4.99535158648e-10 -5.13065583475e-10 -0.996633920267
5.04201288827e-10 -2.11663450637e-10 -0.996633927758
5.08867419007e-10 2.21430079001e-10 -0.996633919582
5.13533549186e-10 5.96162433005e-10 -0.996633916277
5.18199679366e-10 7.30535120818e-10 -0.996633922861
5.22865809545e-10 5.38001239323e-10 -0.996633922506
5.27531939724e-10 7.77816212637e-11 -0.996633980043
5.32198069904e-10 -4.59625061801e-10 -0.996633932084
5.36864200083e-10 -8.30703739204e-10 -0.996633929582
5.41530330263e-10 -8.49194863465e-10 -0.996633921912
5.46196460442e-10 -4.78424794407e-10 -0.996633917398
5.50862590621e-10 1.39716930578e-10 -0.996633873026
5.55528720801e-10 7.37862324333e-10 -0.996633927168
5.6019485098e-10 1.03917770459e-09 -0.996633923333
5.64860981159e-10 8.85839025071e-10 -0.996633920538
5.69527111339e-10 3.20128223029e-10 -0.996633898648
5.74193241518e-10 -4.23065379219e-10 -0.996633948065
5.78859371698e-10 -1.01410284667e-09 -0.996633920853
5.83525501877e-10 -1.17596598946e-09 -0.996633919796
5.88191632056e-10 -8.14731245425e-10 -0.996633929524
5.92857762236e-10 -7.13393736698e-11 -0.996634013633
5.97523892415e-10 7.33081964178e-10 -0.996633925422
6.02190022594e-10 1.23737755415e-09 -0.996633921627
6.06856152774e-10 1.20421377862e-09 -0.996633921334
6.11522282953e-10 6.32501933985e-10 -0.996633920325
6.16188413133e-10 -2.35246516209e-10 -0.996633935951
6.20854543312e-10 -1.01700569777e-09 -0.996633929763
6.25520673491e-10 -1.36157445838e-09 -0.996633923377
6.30186803671e-10 -1.10826280801e-09 -0.996633929642
6.3485293385e-10 -3.62446337741e-10 -0.996633935432
6.3951906403e-10 5.48844434032e-10 -0.996633913646
6.44185194209e-10 1.22234506601e-09 -0.996633917166
6.48851324388e-10 1.35943074316e-09 -0.996633913922
6.53517454568e-10 9.00238809106e-10 -0.996633911264
6.58183584747e-10 5.00355072148e-11 -0.996633835366
6.62849714926e-10 -8.13884328574e-10 -0.996633920861
6.67515845106e-10 -1.31194004198e-09 -0.996633917009
6.72181975285e-10 -1.23125575552e-09 -0.996633920122
6.76848105465e-10 -6.17689508974e-10 -0.996633913715
6.81514235644e-10 2.49322236589e-10 -0.996633933831
6.86180365823e-10 9.8557803091e-10 -0.996633913973
6.90846496003e-10 1.27449493257e-09 -0.996633913723
6.95512626182e-10 1.00477647421e-09 -0.996633927831
7.00178756361e-10 3.12847205899e-10 -0.99663392957
7.04844886541e-10 -4.8580759965e-10 -0.9966339387
7.0951101672e-10 -1.04189034587e-09 -0.996633915594
7.141771469e-10 -1.12660901214e-09 -0.996633922627
7.18843277079e-10 -7.26221231906e-10 -0.996633909787
7.23509407258e-10 -3.76367314647e-11 -0.996633897143
7.28175537438e-10 6.28182387659e-10 -0.996633910587
7.32841667617e-10 9.87630969583e-10 -0.996633922948
7.37507797796e-10 9.05922063844e-10 -0.996633920613
7.42173927976e-10 4.46347107936e-10 -0.996633924736
7.46840058155e-10 -1.69866382745e-10 -0.996633926303
7.51506188335e-10 -6.69738577934e-10 -0.996633920593
7.56172318514e-10 -8.49835205779e-10 -0.996633918646
7.60838448693e-10 -6.58625797719e-10 -0.99663392409
7.65504578873e-10 -2.06873377776e-10 -0.99663390172
7.70170709052e-10 2.92912238921e-10 -0.996633907835
7.74836839232e-10 6.25944629072e-10 -0.996633916085
7.79502969411e-10 6.67143268958e-10 -0.996633931726
7.8416909959e-10 4.2643003896e-10 -0.996633924998
7.8883522977e-10 3.19381821319e-11 -0.996633673371
7.93501359949e-10 -3.35851615624e-10 -0.996633932489
7.98167490128e-10 -5.25941438093e-10 -0.996633926192
8.02833620308e-10 -4.7780929433e-10 -0.996633932786
8.07499750487e-10 -2.37476394241e-10 -0.996633938243
8.12165880667e-10 7.35160219883e-11 -0.996633852152
8.16832010846e-10 3.17831495482e-10 -0.996633884298
8.21498141025e-10 4.02015262972e-10 -0.996633907349
8.26164271205e-10 3.106376634e-10 -0.996633913119
8.30830401384e-10 1.03341264414e-10 -0.996633824882
8.35496531563e-10 -1.19486160174e-10 -0.996633991321
8.40162661743e-10 -2.63930927018e-10 -0.996633931996
8.44828791922e-10 -2.80991631113e-10 -0.996633928228
8.49494922102e-10 -1.81064450739e-10 -0.996633937201
8.54161052281e-10 -2.15248732742e-11 -0.996634195722
8.5882718246e-10 1.23702382682e-10 -0.996633844612
8.6349331264e-10 1.97239299056e-10 -0.996633869311
8.68159442819e-10 1.79681177464e-10 -0.996633894817
8.72825572999e-10 9.20236028847e-11 -0.996633915062
8.77491703178e-10 -1.91380681066e-11 -0.996634125158
8.82157833357e-10 -1.04823721166e-10 -0.996633898355
8.86823963537e-10 -1.34275528807e-10 -0.996633901065
8.91490093716e-10 -1.04733235485e-10 -0.996633913959
8.96156223895e-10 -3.80115242407e-11 -0.996633873745
9.00822354075e-10 3.2550362346e-11 -0.996633870745
9.05488484254e-10 7.77346194412e-11 -0.996633901674
9.10154614434e-10 8.37297595308e-11 -0.996633943576
9.14820744613e-10 5.51044053932e-11 -0.99663398073
9.19486874792e-10 9.67546135411e-12 -0.996633586181
9.24153004972e-10 -3.11664453569e-11 -0.996634047996
9.28819135151e-10 -5.18495667465e-11 -0.996633903535
9.3348526533e-10 -4.78913897654e-11 -0.996633875653
9.3815139551e-10 -2.56308218097e-11 -0.996633839599
9.42817525689e-10 2.42705843298e-12 -0.99663383911
9.47483655869e-10 2.38951421953e-11 -0.996633950564
9.52149786048e-10 3.15120009597e-11 -0.996633956835
9.56815916227e-10 2.50615440698e-11 -0.996634019646
9.61482046407e-10 1.00300564931e-11 -0.996633492737
9.66148176586e-10 -5.78848557148e-12 -0.996634548833
9.70814306766e-10 -1.5925573503e-11 -0.996633858836
9.75480436945e-10 -1.75709310372e-11 -0.996633915678
9.80146567124e-10 -1.19228530764e-11 -0.996633793632
9.84812697304e-10 -2.83555876891e-12 -0.996633952007
9.89478827483e-10 5.31641595913e-12 -0.996633629413
9.94144957662e-10 9.51385450205e-12 -0.996633176774
9.98811087842e-10 9.00100335642e-12 -0.996633653789
1.00347721802e-09 5.07316104914e-12 -0.996633710316
1.0081433482e-09 8.39596487617e-14 -0.996544204716
1.01280947838e-09 -3.74456293505e-12 -0.996633618383
1.01747560856e-09 -5.18055259745e-12 -0.996633175467
1.02214173874e-09 -4.23837696868e-12 -0.996634628596
1.02680786892e-09 -1.87212495873e-12 -0.996637714576
1.0314739991e-09 6.34374817699e-13 -0.996628084215
1.03614012928e-09 2.26094968203e-12 -0.996631989103
1.04080625946e-09 2.59167993123e-12 -0.996631602258
1.04547238964e-09 1.8281757616e-12 -0.99663295383
1.05013851981e-09 5.52156768194e-13 -0.996630691027
1.05480464999e-09 -6.03097218936e-13 -0.99664268435
1.05947078017e-09 -1.21745065578e-12 -0.996633009185
1.06413691035e-09 -1.1945049204e-12 -0.996633879145
1.06880304053e-09 -7.13891633813e-13 -0.996638801241
1.07346917071e-09 -8.6633131462e-14 -0.996671760591
1.07813530089e-09 4.02962250493e-13 -0.996630098785
1.08280143107e-09 6.0185615583e-13 -0.996632926267
1.08746756125e-09 5.10835782958e-13 -0.99663569435
1.09213369143e-09 2.41614003748e-13 -0.99663929374
1.09679982161e-09 -3.71538236616e-14 -0.996527908643
1.10146595179e-09 -1.97984634891e-13 -0.996611469762
1.10613208197e-09 -2.4601730397e-13 -0.996615333883
1.11079821215e-09 -1.99931558341e-13 -0.996631162758
1.11546434233e-09 -1.09082768098e-13 -0.996636537465
1.12013047251e-09 -1.00138211876e-14 -0.996261777664
1.12479660269e-09 6.80114156225e-14 -0.996641723213
1.12946273286e-09 1.06897519712e-13 -0.996637589208
1.13412886304e-09 1.06899736569e-13 -0.996609451327
1.13879499322e-09 7.53305767695e-14 -0.996590969039
1.1434611234e-09 2.8684516946e-14 -0.996533974256
1.14812725358e-09 -1.82566818369e-14 -0.99653276949
1.15279338376e-09 -5.10792708717e-14 -0.996675751217
1.15745951394e-09 -6.32984488478e-14 -0.9966982622
1.16212564412e-09 -5.52852409086e-14 -0.996645496756
1.1667917743e-09 -3.28858489767e-14 -0.996633356219
1.17145790448e-09 -5.17927487415e-15 -0.994271571561
1.17612403466e-09 1.93008404893e-14 -0.9964644947
1.18079016484e-09 3.44245097224e-14 -0.996556405466
1.18545629502e-09 3.79225277456e-14 -0.996592376928
1.1901224252e-09 3.12795212889e-14 -0.99663748264
1.19478855538e-09 1.8328098048e-14 -0.996661972518
1.19945468556e-09 3.69908106461e-15 -0.992182033499
1.20412081573e-09 -8.88938995925e-15 -0.996066914401
1.20878694591e-09 -1.72421874572e-14 -0.996371386965
1.21345307609e-09 -2.09252621291e-14 -0.996561710963
1.21811920627e-09 -2.04869831087e-14 -0.99675657743
1.22278533645e-09 -1.68948877344e-14 -0.99663216959
1.22745146663e-09 -1.12221263677e-14 -0.996419828382
1.23211759681e-09 -4.2639301392e-15 -0.993971749906
1.23678372699e-09 3.22843709079e-15 -0.991032987363
1.24144985717e-09 1.03196177986e-14 -0.995712393987
1.24611598735e-09 1.58522178731e-14 -0.996086862128
1.25078211753e-09 1.86764190437e-14 -0.996420759163
1.25544824771e-09 1.78855533005e-14 -0.996555878162
1.26011437789e-09 1.32509172087e-14 -0.996066235476
1.26478050807e-09 5.57548935269e-15 -0.994676581665
1.26944663825e-09 -3.45153035349e-15 -0.990360445977
1.27411276843e-09 -1.1767451232e-14 -0.996215955237
1.2787788986e-09 -1.73995294545e-14 -0.996612867229
1.28344502878e-09 -1.89678595131e-14 -0.996554396916
1.28811115896e-09 -1.61951337026e-14 -0.996629464121
1.29277728914e-09 -9.9244486092e-15 -0.996411962102
1.29744341932e-09 -1.76639947351e-15 -0.971548431523
1.3021095495e-09 6.30781477465e-15 -0.994596802208
1.30677567968e-09 1.2468499806e-14 -0.995915042997
1.31144180986e-09 1.55501827931e-14 -0.996190952272
1.31610794004e-09 1.52062435312e-14 -0.996192212576
1.32077407022e-09 1.17864725818e-14 -0.99580494065
1.3254402004e-09 6.22651823246e-15 -0.994229740561
1.33010633058e-09 -1.88991632127e-16 -0.38828308322
1.33477246076e-09 -6.21206411923e-15 -0.995911989877
1.33943859094e-09 -1.08529829079e-14 -0.996844288233
1.34410472112e-09 -1.34503310509e-14 -0.996497506442
1.3487708513e-09 -1.37300760648e-14 -0.996697512548
1.35343698147e-09 -1.1807739186e-14 -0.996605534681
1.35810311165e-09 -8.09974835624e-15 -0.996231692575
1.36276924183e-09 -3.25752583623e-15 -0.993742892274
1.36743537201e-09 1.91231299218e-15 -0.977435082578
1.37210150219e-09 6.60341270094e-15 -0.994876794742
1.37676763237e-09 1.01223238521e-14 -0.995644039956
1.38143376255e-09 1.199963788e-14 -0.996080259106
1.38609989273e-09 1.20241188676e-14 -0.996434597469
1.39076602291e-09 1.02846454773e-14 -0.995888445813
1.39543215309e-09 7.20251022182e-15 -0.995209810887
1.40009828327e-09 3.43234529628e-15 -0.992466898304
1.40476441345e-09 -3.13942562147e-16 -0.635654485138
1.40943054363e-09 -3.34653462629e-15 -0.992016155373
1.41409667381e-09 -5.12141809178e-15 -0.99410918861
1.41876280399e-09 -5.28883107881e-15 -0.994186010306
1.42342893417e-09 -3.9362907965e-15 -0.993226912709
1.42809506434e-09 -1.19381014373e-15 -0.958892632826
1.43276119452e-09 2.19154885539e-15 -0.98764849945
1.4374273247e-09 5.80243438554e-15 -0.994051241577
1.44209345488e-09 8.62954899689e-15 -0.996000514564
1.44675958506e-09 1.04833923814e-14 -0.99621369628
1.45142571524e-09 1.06918452777e-14 -0.99585977719
1.45609184542e-09 9.37879201392e-15 -0.995347119612
1.4607579756e-09 6.74961054874e-15 -0.99539245851
1.46542410578e-09 3.1974366299e-15 -0.991249172582
1.47009023596e-09 -3.28769292718e-16 -0.648576063696
1.47475636614e-09 -3.60127557307e-15 -0.992726370617
1.47942249632e-09 -5.73151037151e-15 -0.994549602541
1.4840886265e-09 -6.4902700115e-15 -0.995701252997
1.48875475668e-09 -5.84470331318e-15 -0.994239379204
1.49342088686e-09 -3.95333264416e-15 -0.99221990182
1.49808701704e-09 -1.18092829466e-15 -0.97122834183
1.50275314721e-09 1.919879904e-15 -0.978755670788
1.50741927739e-09 4.75466415526e-15 -0.994138536389
1.51208540757e-09 6.95732775472e-15 -0.995500823644
1.51675153775e-09 8.17485594688e-15 -0.995603463898
1.52141766793e-09 8.24087198492e-15 -0.995529627672
1.52608379811e-09 7.21402285608e-15 -0.995084799266
1.53074992829e-09 5.27169760592e-15 -0.994987903172
1.53541605847e-09 2.7546362944e-15 -0.986923017452
1.54008218865e-09 9.06345339848e-17 -0.122170401003
1.54474831883e-09 -2.27183964083e-15 -0.989093136298
1.54941444901e-09 -3.92460427439e-15 -0.993440727186
1.55408057919e-09 -4.52121805432e-15 -0.9943171604
1.55874670937e-09 -3.89614833419e-15 -0.99297204381
1.56341283955e-09 -2.1660947035e-15 -0.985137152325
1.56807896973e-09 3.34414007485e-16 -0.648327255739
1.57274509991e-09 3.12868545826e-15 -0.990390880885
1.57741123008e-09 5.6924758863e-15 -0.994732342685
1.58207736026e-09 7.5436519615e-15 -0.995528793965
1.58674349044e-09 8.34160282949e-15 -0.995431279449
1.59140962062e-09 7.97742871206e-15 -0.99580299409
1.5960757508e-09 6.58479715677e-15 -0.995500212551
1.60074188098e-09 4.45723394314e-15 -0.993093805782
1.60540801116e-09 1.96221720287e-15 -0.986077997031
1.61007414134e-09 -4.9721344386e-16 -0.801288916253
1.61474027152e-09 -2.55318812901e-15 -0.990872180431
1.6194064017e-09 -3.93801114101e-15 -0.992577330238
1.62407253188e-09 -4.47880648631e-15 -0.993784804594
1.62873866206e-09 -4.11738018803e-15 -0.992989284274
1.63340479224e-09 -2.97944345732e-15 -0.991103271908
1.63807092242e-09 -1.309222983e-15 -0.958832399492
1.6427370526e-09 5.97217570538e-16 -0.870442356878
1.64740318278e-09 2.3615172666e-15 -0.986435554971
1.65206931296e-09 3.58137170558e-15 -0.991985561326
1.65673544313e-09 4.0111909402e-15 -0.99361948028
1.66140157331e-09 3.57124748552e-15 -0.99144404245
1.66606770349e-09 2.30147760369e-15 -0.989785254335
1.67073383367e-09 4.220959954e-16 -0.741394097223
1.67539996385e-09 -1.70222247108e-15 -0.981642516166
1.68006609403e-09 -3.71644265677e-15 -0.992669275413
1.68473222421e-09 -5.28756380898e-15 -0.994741304216
1.68939835439e-09 -6.11224878319e-15 -0.99550153305
1.69406448457e-09 -6.06303355402e-15 -0.995272672308
1.69873061475e-09 -5.20672977015e-15 -0.994519635776
1.70339674493e-09 -3.68489929084e-15 -0.993352306621
1.70806287511e-09 -1.72355546142e-15 -0.978854060409
1.71272900529e-09 3.37275138582e-16 -0.691397176399
1.71739513547e-09 2.18332795579e-15 -0.982848536163
1.72206126565e-09 3.58986057857e-15 -0.991778790785
1.72672739583e-09 4.38696609719e-15 -0.993579700651
1.731393526e-09 4.51402210384e-15 -0.993301924286
1.73605965618e-09 4.0386310941e-15 -0.991535638327
1.74072578636e-09 3.08521117249e-15 -0.988980060245
1.74539191654e-09 1.80552442596e-15 -0.983385107787
1.75005804672e-09 4.19114110275e-16 -0.756171575165
1.7547241769e-09 -8.47476657848e-16 -0.934270093447
1.75939030708e-09 -1.83288728429e-15 -0.980268332552
1.76405643726e-09 -2.39230078327e-15 -0.988479452423
1.76872256744e-09 -2.45854013768e-15 -0.987796561689
1.77338869762e-09 -2.00292358343e-15 -0.981038237679
1.7780548278e-09 -1.12198350924e-15 -0.967992345236
1.78272095798e-09 4.10256738034e-17 -0.0226044399082
1.78738708816e-09 1.23311884718e-15 -0.969613152816
1.79205321834e-09 2.22184257631e-15 -0.984680257883
1.79671934852e-09 2.79967213455e-15 -0.991081149124
1.8013854787e-09 2.78633746403e-15 -0.988480044672
1.80605160887e-09 2.17511308494e-15 -0.988253953464
1.81071773905e-09 1.02113959645e-15 -0.946226459718
1.81538386923e-09 -4.58451239989e-16 -0.804866518557
1.82004999941e-09 -2.00083562024e-15 -0.983960485079
1.82471612959e-09 -3.2858993967e-15 -0.992618740677
1.82938225977e-09 -4.0824714364e-15 -0.992927656436
1.83404838995e-09 -4.27837651178e-15 -0.993908790135
1.83871452013e-09 -3.79400684733e-15 -0.99287391232
9.39363631165e-14 0.996599289969
Iโve built the openEMS tools from openEMS-Project tag v0.0.36.
The platform is Fedora 39
libvtk is version 9.2.6
Qt is qt5
Iโm running under an x11 server.
This is what it looks like when it comes up. (From the command line, or from an octave script.)
The background can vary, but this is typical.
Any ideas? (Iโm willing to experiment.)
The C++ bindings that openEMS uses have been removed from Open MPI 5.0.
It would be best if openEMS used the C bindings, so it works with Open MPI 5 and later.
I looking at the current state of FOSS EM simulation solutions I note your project does not list a license.
Though it is in no way mandatory to decide upon a license for your code, you may want to read the GitHub/Microsoft page on licensing within it's terms of service as it effects your future rights to your own intellectual property and that of those who derive IP from it.
See
https://docs.github.com/en/site-policy/github-terms/github-terms-of-service
https://github.com/readme/guides/open-source-licensing
This SE entry summaraises the issue:
What can I assume if a publicly published project has no license
And this is the GitHub default
https://choosealicense.com/no-permission/
Note the carefully worded '...within GitHub...' includes ChatGPT, which can and will offer portions of your own IP to others as coding suggestions, effectively giving away your IP under a sort of easy read obfustiction.
--
Slightly off-topic. I am engineer, not a lawyer though I do take an interest in FOSS. I will include this here as I find it an interesting topic. I hope others will too and have their own opinions on the subject. To me it seems software IP owrnership is one of those 'foot shuffling' things that everybody is hoping will just go away....
Though still a legal grey area, conventional wisdom considers software source code intellectional property as "written works" under the Berne Convention. This needs urgent review as times have changed since even this clarrification was made.
Attached is a full console dump of a failure to install under brew on a (fairly) fresh copy of MacOS 10.14.6.
I'd really love to try this out! Anyone got any tips?
It seems to stop around 75% pretty consistently:
==> cmake . -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG
==> make
Last 15 lines from /Users/robotarmy/Library/Logs/Homebrew/openEMS/02.make:
-- Installing: /usr/local/Cellar/openEMS/HEAD-78e7642/share/openEMS/matlab/ReadHDF5FieldData.m
-- Installing: /usr/local/Cellar/openEMS/HEAD-78e7642/share/openEMS/matlab/ResultsQueue.m
-- Installing: /usr/local/Cellar/openEMS/HEAD-78e7642/bin/nf2ff
-- Installing: /usr/local/Cellar/openEMS/HEAD-78e7642/lib/libnf2ff.0.1.0.dylib
-- Installing: /usr/local/Cellar/openEMS/HEAD-78e7642/lib/libnf2ff.0.dylib
-- Installing: /usr/local/Cellar/openEMS/HEAD-78e7642/lib/libnf2ff.dylib
-- Installing: /usr/local/Cellar/openEMS/HEAD-78e7642/include/openEMS/nf2ff.h
-- Installing: /usr/local/Cellar/openEMS/HEAD-78e7642/include/openEMS/nf2ff_calc.h
cd /tmp/openEMS-20190729-17544-kbgtth/openEMS-prefix/src/openEMS-build && /usr/local/Cellar/cmake/3.15.1/bin/cmake -E touch /tmp/openEMS-20190729-17544-kbgtth/openEMS-prefix/src/openEMS-stamp/openEMS-install
[ 75%] Completed 'openEMS'
/usr/local/Cellar/cmake/3.15.1/bin/cmake -E make_directory /tmp/openEMS-20190729-17544-kbgtth/CMakeFiles
/usr/local/Cellar/cmake/3.15.1/bin/cmake -E touch /tmp/openEMS-20190729-17544-kbgtth/CMakeFiles/openEMS-complete
/usr/local/Cellar/cmake/3.15.1/bin/cmake -E touch /tmp/openEMS-20190729-17544-kbgtth/openEMS-prefix/src/openEMS-stamp/openEMS-done
[ 75%] Built target openEMS
make: *** [all] Error 2
Do not report this issue to Homebrew/brew or Homebrew/core!
Hi,
I'm experiencing an issue with 2 example files in the subfolder python/Tutorials.
Bent_Patch_Antenna.py and CRLH_Extraction.py doesn't work.
For Bent_Patch_Antenna.py I have this issue :
Traceback (most recent call last):
File "Bent_Patch_Antenna.py", line 81, in <module>
CSX.AddBox(patch, priority=10, start=start, stop=stop, edges2grid='all') # add a box-primitive to the metal property 'patch'
AttributeError: 'CSXCAD.CSXCAD.ContinuousStructure' object has no attribute 'AddBox'
And for CRLH_Extraction.py I have this one :
Traceback (most recent call last):
File "CRLH_Extraction.py", line 136, in <module>
mesh_hint = CRLH.createCell()
File "CRLH_Extraction.py", line 60, in createCell
mesh = box.GetGridHint('x', metal_edge_res=self.edge_resolution, down_dir=False)
AttributeError: 'CSXCAD.CSPrimitives.CSPrimBox' object has no attribute 'GetGridHint'
I am attempting to use openEMS mpi and I'm getting the following errors:
##############
Running remote openEMS_MPI in working dir: /tmp/openEMS_MPI_OxYoCbMoLCNW
warning: implicit conversion from numeric to char
warning: called from
RunOpenEMS_MPI at line 90 column 15
RunOpenEMS at line 82 column 9
microstrip_mpi at line 174 column 1
Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 key--------------------------------------------------------------------------
There are not enough slots available in the system to satisfy the 4
slots that were requested by the application:
/opt/openEMS/bin/openEMS
Either request fewer slots for your application, or make more slots
available for use.
A "slot" is the Open MPI term for an allocatable unit where we can
launch a process. The number of slots available are defined by the
environment in which Open MPI processes are run:
Hostfile, via "slots=N" clauses (N defaults to number of
processor cores if not provided)
The --host command line parameter, via a ":N" suffix on the
hostname (N defaults to 1 if not provided)
Resource manager (e.g., SLURM, PBS/Torque, LSF, etc.)
If none of a hostfile, the --host command line parameter, or an
RM is present, Open MPI defaults to the number of processor cores
In all the above cases, if you want Open MPI to default to the number
of hardware threads instead of the number of processor cores, use the
--use-hwthread-cpus option.
Alternatively, you can use the --oversubscribe option to ignore the
number of available slots when deciding the number of processes to
launch.
error: mpirun openEMS failed!
error: called from
RunOpenEMS_MPI at line 97 column 5
RunOpenEMS at line 82 column 9
microstrip_mpi at line 174 column 1
###########################
My source is in Octave (Matlab) format and is shown below:
##############
%
% microstrip transmission line, Z is normal to substrate Y is the direction of propagation and X is the width
% try mpi
close all
clear
clc
% mpi setup
Settings.MPI.Binary = '/opt/openEMS/bin/openEMS';
Settings.MPI.NrProc = 4;
Settings.MPI.Hosts = {'wolfpack'};
........
%% run openEMS
%RunOpenEMS( Sim_Path, Sim_CSX, '--numThreads=4',Settings );
options='';
RunOpenEMS( Sim_Path, Sim_CSX,options,Settings );
...........
####################
Please note that this is running on machine 'hydra' and the remote 2nd machine is 'wolfpack'
Both hydra and wolfpack are 28-core machines but the above code works only when Settings.MPI.NrProc = 1;
My machines are 28-core Xeon servers running Ubuntu 22.04 and the latest OpenEMS version
I was not able to find the answer after an extensive search.
I'm stumped as to what I'm missing here and it's probably obvious to those with more experience than me.
Thanks in advance!
Phil
% fgrep -Ri Primtive
openEMS/python/openEMS/ports.py: :param priority: int -- priority of all contained primtives
CSXCAD/python/CSXCAD/CSPrimitives.pyx: Create a primtive specified by the `prim_type`
CSXCAD/src/CSPrimitives.h: bool GetPrimitiveUsed() {return m_Primtive_Used;}
CSXCAD/src/CSPrimitives.h: void SetPrimitiveUsed(bool val) {m_Primtive_Used=val;}
CSXCAD/src/CSPrimitives.h: bool m_Primtive_Used;
CSXCAD/src/CSPrimitives.cpp: m_Primtive_Used = false;
Hello people,
i created my own patch antenna and want to simulate it through OpenEMS but i get problems during or after a long while of simulation ( the last one lasted for more than one hour of copilation). I generate an automatic script with Freecad_to_OpenEMS_Export. I run the already existing examples and they ran easily and the Energy was not as the same as mine . So if you could help it would be nice. Thanks in advance.
Would it be possible to include CTB/hyp2mat in the CMakeLists.txt like you have done for AppCSXCAD/QCSXCAD?
I am trying to build the project using the Spack packaging system (common in High Performance Computing environments). Packaging using cmake is relatively straight forward but relying on a bash script instead highly complicates the install.
Hello! I am engaged in research on the propagation of an electromagnetic wave in a segment of the magic tee waveguide with cross section 23x10mm^2. But in the simulation results, the sum of the squares of the s-parameters is not equal to 1 (figure 2). I tried to create a waveguide in different ways:
stl
file;To verify the results, a rectangular waveguide with a size of 23x10mm^2 was modeled. In the first case: the boundaries of the grid coincide with the section of the waveguide. in the second case, the border is shifted and metal is added to the place of free space (figures 5 - 8).
The simulation was carried out using both the python interface and the octave interface:
https://github.com/Sheptor/test-issue
There are several links all over the internet and even in the README file of this repository pointing to inexistent subpages of www.openems.de
Is there any possibility to deploy that old material in the temporal website? Is it going to be back someday?
I am trying to install openEMS and I have the following log file.
-- The CXX compiler identification is GNU 10.3.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using CMAKE_INSTALL_PREFIX: /home/user1/opt/openEMS
-- Build AppCSXCAD: YES
-- with MPI: 0
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/tmp.ChPxdluuCL
[ 2%] Creating directories for 'fparser'
[ 5%] No download step for 'fparser'
[ 7%] No update step for 'fparser'
[ 10%] No patch step for 'fparser'
[ 12%] Performing configure step for 'fparser'
-- The CXX compiler identification is GNU 10.3.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at CMakeLists.txt:7 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/tmp.ChPxdluuCL/fparser-prefix/src/fparser-build
[ 15%] Performing build step for 'fparser'
[ 33%] Building CXX object CMakeFiles/fparser.dir/fparser.cc.o
[ 66%] Building CXX object CMakeFiles/fparser.dir/fpoptimizer.cc.o
[100%] Linking CXX shared library libfparser.so
[100%] Built target fparser
[ 17%] Performing install step for 'fparser'
Consolidate compiler generated dependencies of target fparser
[100%] Built target fparser
Install the project...
-- Install configuration: "Release"
-- Installing: /home/user1/opt/openEMS/lib/libfparser.so.4.5.1
-- Up-to-date: /home/user1/opt/openEMS/lib/libfparser.so.4
-- Up-to-date: /home/user1/opt/openEMS/lib/libfparser.so
-- Installing: /home/user1/opt/openEMS/include/fparser.hh
[ 20%] Completed 'fparser'
[ 20%] Built target fparser
[ 22%] Creating directories for 'CSXCAD'
[ 25%] No download step for 'CSXCAD'
[ 27%] No update step for 'CSXCAD'
[ 30%] No patch step for 'CSXCAD'
[ 32%] Performing configure step for 'CSXCAD'
-- The CXX compiler identification is GNU 10.3.0
-- The C compiler identification is GNU 10.3.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found Git: /usr/bin/git (found version "2.31.1")
-- Found Git repository, CSXCAD version tag: v0.6.2-123-gc29742b
-- FPARSER_ROOT_DIR: /home/user1/opt/openEMS
-- fparser_INCLUDE_DIR: /home/user1/opt/openEMS/include
-- TinyXML_ROOT_DIR
-- Found TinyXML: /usr/lib64/libtinyxml.so
-- TinyXML_INCLUDE_DIR: /usr/include
-- TinyXML_LIBRARY: /usr/lib64/libtinyxml.so
-- Found HDF5: /usr/lib64/libhdf5.so;/usr/lib64/libz.so;/usr/lib64/libdl.so;/usr/lib64/libm.so (found suitable version "1.10.5", minimum required is "1.8") found components: C HL
-- Using header-only CGAL
-- Targetting Unix Makefiles
-- Using /usr/bin/c++ compiler.
-- Found GMP: /usr/lib64/libgmp.so
-- Found MPFR: /usr/lib64/libmpfr.so
-- Found Boost: /usr/lib64/cmake/Boost-1.76.0/BoostConfig.cmake (found suitable version "1.76.0", minimum required is "1.48")
-- Boost include dirs: /usr/include
-- Boost libraries:
-- Using gcc version 4 or later. Adding -frounding-math
-- Found Boost: /usr/lib64/cmake/Boost-1.76.0/BoostConfig.cmake (found suitable version "1.76.0", minimum required is "1.46") found components: thread system date_time serialization chrono
-- Found MPI_C: /usr/lib64/libmpi.so (found version "3.1")
-- Found MPI_CXX: /usr/lib64/libmpi.so (found version "3.1")
-- Found MPI: TRUE (found version "3.1")
CMake Deprecation Warning at /usr/lib64/cmake/vtk-9.0/vtk-config.cmake:64 (message):
The new name for the 'vtkIOGeometry' component is 'IOGeometry'
Call Stack (most recent call first):
CMakeLists.txt:139 (find_package)
CMake Deprecation Warning at /usr/lib64/cmake/vtk-9.0/vtk-config.cmake:64 (message):
The new name for the 'vtkIOPLY' component is 'IOPLY'
Call Stack (most recent call first):
CMakeLists.txt:139 (find_package)
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args
(OpenMP_CXX)
does not match the name of the calling package (OpenMP). This can lead to
problems in calling code that expects find_package
result variables
(e.g., _FOUND
) to follow a certain pattern.
Call Stack (most recent call first):
/usr/lib64/cmake/vtk-9.0/FindOpenMP.cmake:487 (find_package_handle_standard_args)
/usr/lib64/cmake/vtk-9.0/vtkm/cmake/VTKmDeviceAdapters.cmake:90 (find_package)
/usr/lib64/cmake/vtk-9.0/vtkm/cmake/VTKmWrappers.cmake:13 (include)
/usr/lib64/cmake/vtk-9.0/vtkm/VTKmConfig.cmake:151 (include)
/usr/lib64/cmake/vtk-9.0/vtk-config.cmake:117 (find_package)
CMakeLists.txt:139 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found Threads: TRUE
-- Found JsonCpp: /usr/lib64/libjsoncpp.so (found suitable version "1.9.3", minimum required is "0.7.0")
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.11")
-- Found PNG: /usr/lib64/libpng.so (found version "1.6.37+apng")
-- Found double-conversion: /usr/lib64/libdouble-conversion.so
-- Found LZ4: /usr/lib64/liblz4.so (found version "1.9.3")
-- Found LZMA: /usr/lib64/liblzma.so (found version "5.2.5")
-- Found utf8cpp: /usr/include/utf8cpp
-- Found JPEG: /usr/lib64/libjpeg.so
-- Found TIFF: /usr/lib64/libtiff.so (found version "4.3.0")
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args
(OpenMP_C)
does not match the name of the calling package (OpenMP). This can lead to
problems in calling code that expects find_package
result variables
(e.g., _FOUND
) to follow a certain pattern.
Call Stack (most recent call first):
/usr/lib64/cmake/vtk-9.0/FindOpenMP.cmake:487 (find_package_handle_standard_args)
/usr/lib64/cmake/vtk-9.0/VTK-vtk-module-find-packages.cmake:1760 (find_package)
/usr/lib64/cmake/vtk-9.0/vtk-config.cmake:131 (include)
CMakeLists.txt:139 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found OpenMP_C: -fopenmp (found version "4.5")
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args
(OpenMP_CXX)
does not match the name of the calling package (OpenMP). This can lead to
problems in calling code that expects find_package
result variables
(e.g., _FOUND
) to follow a certain pattern.
Call Stack (most recent call first):
/usr/lib64/cmake/vtk-9.0/FindOpenMP.cmake:487 (find_package_handle_standard_args)
/usr/lib64/cmake/vtk-9.0/VTK-vtk-module-find-packages.cmake:1760 (find_package)
/usr/lib64/cmake/vtk-9.0/vtk-config.cmake:131 (include)
CMakeLists.txt:139 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Found package VTK. Using version 9.0.1
CMake Deprecation Warning at /usr/lib64/cmake/vtk-9.0/vtk-use-file-deprecated.cmake:1 (message):
The VTK_USE_FILE
is no longer used starting with 8.90.
Call Stack (most recent call first):
CMakeLists.txt:142 (include)
-- vtk libraries VTK::IOGeometryVTK::IOPLY
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/tmp.ChPxdluuCL/CSXCAD-prefix/src/CSXCAD-build
[ 35%] Performing build step for 'CSXCAD'
[ 2%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSPrimitives.cpp.o
[ 5%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSProperties.cpp.o
[ 7%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSRectGrid.cpp.o
[ 10%] Building CXX object src/CMakeFiles/CSXCAD.dir/ContinuousStructure.cpp.o
[ 12%] Building CXX object src/CMakeFiles/CSXCAD.dir/ParameterObjects.cpp.o
[ 15%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSFunctionParser.cpp.o
[ 17%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSUseful.cpp.o
[ 20%] Building CXX object src/CMakeFiles/CSXCAD.dir/ParameterCoord.cpp.o
[ 23%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSTransform.cpp.o
[ 25%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSPrimPoint.cpp.o
[ 28%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSPrimBox.cpp.o
[ 30%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSPrimMultiBox.cpp.o
[ 33%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSPrimSphere.cpp.o
[ 35%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSPrimSphericalShell.cpp.o
[ 38%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSPrimCylinder.cpp.o
[ 41%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSPrimCylindricalShell.cpp.o
[ 43%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSPrimPolygon.cpp.o
[ 46%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSPrimLinPoly.cpp.o
[ 48%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSPrimRotPoly.cpp.o
[ 51%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSPrimPolyhedron.cpp.o
[ 53%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSPrimPolyhedronReader.cpp.o
[ 56%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSPrimCurve.cpp.o
[ 58%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSPrimWire.cpp.o
[ 61%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSPrimUserDefined.cpp.o
[ 64%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSPropUnknown.cpp.o
[ 66%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSPropMaterial.cpp.o
[ 69%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSPropDispersiveMaterial.cpp.o
[ 71%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSPropLorentzMaterial.cpp.o
[ 74%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSPropDebyeMaterial.cpp.o
[ 76%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSPropDiscMaterial.cpp.o
[ 79%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSPropLumpedElement.cpp.o
[ 82%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSPropMetal.cpp.o
[ 84%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSPropConductingSheet.cpp.o
[ 87%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSPropExcitation.cpp.o
[ 89%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSPropProbeBox.cpp.o
[ 92%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSPropDumpBox.cpp.o
[ 94%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSPropResBox.cpp.o
[ 97%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSBackgroundMaterial.cpp.o
[100%] Linking CXX shared library libCSXCAD.so
[100%] Built target CSXCAD
[ 37%] Performing install step for 'CSXCAD'
Consolidate compiler generated dependencies of target CSXCAD
[100%] Built target CSXCAD
Install the project...
-- Install configuration: "Release"
-- Up-to-date: /home/user1/opt/openEMS/share/CSXCAD/matlab
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/export_gerber.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/AddLinPoly.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/AddDebyeMaterial.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/AddPlaneWaveExcite.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/AddPropAttribute.m
-- Up-to-date: /home/user1/opt/openEMS/share/CSXCAD/matlab/private
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/private/GetPropertyPosition.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/private/FindProperty.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/private/vector2str.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/private/octave_struct2xml_2.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/private/struct_2_xmlNode.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/private/Add2Property.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/private/SmoothRange.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/private/AddProperty.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/private/SetPropertyArgs.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/private/CheckSymmtricLines.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/private/GetPropertyType.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/private/AddPrimitiveArgs.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/AddConductingSheet.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/export_empire.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/export_povray.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/AddPolyhedron.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/DetectEdges.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/AddCylinder.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/AddSphericalShell.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/AddMaterial.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/AddBox.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/SmoothMeshLines.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/AddPoint.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/CalcLorentzMaterial.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/InitCSX.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/CalcDrudeMaterial.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/AddExcitation.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/SetMaterialWeight.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/SetMaterialProperty.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/SmoothMeshLines2.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/DirChar2Int.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/AddCurve.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/AddPolygon.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/ImportSTL.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/AddWire.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/searchBinary.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/Convert_VF_DiscMaterial.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/export_excellon.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/SetBackgroundMaterial.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/AddLumpedElement.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/AddDiscMaterial.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/AddMetal.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/AddCylindricalShell.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/AddDump.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/CalcDebyeMaterial.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/RecursiveSmoothMesh.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/AnalyseMesh.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/DefineRectGrid.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/CheckMesh.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/CreateDiscMaterial.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/AddRotPoly.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/AddProbe.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/SetExcitationWeight.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/AddSphere.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/AutoSmoothMeshLines.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/AddLorentzMaterial.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/ImportPLY.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/CSXGeomPlot.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/SmoothMesh.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/isOctave.m
-- Installing: /home/user1/opt/openEMS/share/CSXCAD/matlab/struct_2_xml.m
-- Installing: /home/user1/opt/openEMS/lib/libCSXCAD.so.0.6.2
-- Up-to-date: /home/user1/opt/openEMS/lib/libCSXCAD.so.0
-- Set runtime path of "/home/user1/opt/openEMS/lib/libCSXCAD.so.0.6.2" to "/home/user1/opt/openEMS/lib"
-- Up-to-date: /home/user1/opt/openEMS/lib/libCSXCAD.so
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/ContinuousStructure.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSPrimitives.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSProperties.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSRectGrid.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSXCAD_Global.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/ParameterObjects.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSFunctionParser.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSUseful.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/ParameterCoord.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSTransform.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSBackgroundMaterial.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSPrimPoint.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSPrimBox.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSPrimMultiBox.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSPrimSphere.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSPrimSphericalShell.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSPrimCylinder.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSPrimCylindricalShell.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSPrimPolygon.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSPrimLinPoly.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSPrimRotPoly.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSPrimPolyhedron.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSPrimPolyhedronReader.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSPrimCurve.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSPrimWire.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSPrimUserDefined.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSPropUnknown.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSPropMaterial.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSPropDispersiveMaterial.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSPropLorentzMaterial.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSPropDebyeMaterial.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSPropDiscMaterial.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSPropLumpedElement.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSPropMetal.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSPropConductingSheet.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSPropExcitation.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSPropProbeBox.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSPropDumpBox.h
-- Installing: /home/user1/opt/openEMS/include/CSXCAD/CSPropResBox.h
[ 40%] Completed 'CSXCAD'
[ 40%] Built target CSXCAD
[ 42%] Creating directories for 'QCSXCAD'
[ 45%] Creating directories for 'openEMS'
[ 47%] No download step for 'QCSXCAD'
[ 50%] No download step for 'openEMS'
[ 55%] No update step for 'QCSXCAD'
[ 55%] No update step for 'openEMS'
[ 60%] No patch step for 'openEMS'
[ 60%] No patch step for 'QCSXCAD'
[ 62%] Performing configure step for 'QCSXCAD'
[ 65%] Performing configure step for 'openEMS'
-- The CXX compiler identification is GNU 10.3.0
-- The CXX compiler identification is GNU 10.3.0
-- Detecting CXX compiler ABI info
-- The C compiler identification is GNU 10.3.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at CMakeLists.txt:11 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Deprecation Warning at CMakeLists.txt:15 (cmake_policy):
The OLD behavior for policy CMP0020 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
-- Found Git: /usr/bin/git (found version "2.31.1")
-- Found Git repository, QCSXCAD version tag: v0.6.2-12-g1cde9d5
-- CSXCAD_LIBRARIES: /home/user1/opt/openEMS/lib/libCSXCAD.so
-- CSXCAD_INCLUDE_DIR: /home/user1/opt/openEMS/include/CSXCAD
-- Found TinyXML: /usr/lib64/libtinyxml.so
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found Git: /usr/bin/git (found version "2.31.1")
-- Found Git repository, openEMS version tag: v0.0.35-97-g0342eef
-- fparser: /home/user1/opt/openEMS/lib/libfparser.so
-- CSXCAD_LIBRARIES: /home/user1/opt/openEMS/lib/libCSXCAD.so
-- CSXCAD_INCLUDE_DIR: /home/user1/opt/openEMS/include/CSXCAD
-- Found TinyXML: /usr/lib64/libtinyxml.so
-- TinyXML_INCLUDE_DIR: /usr/include
-- TinyXML_LIBRARY: /usr/lib64/libtinyxml.so
-- Found HDF5: /usr/lib64/libhdf5.so;/usr/lib64/libz.so;/usr/lib64/libdl.so;/usr/lib64/libm.so (found suitable version "1.10.5", minimum required is "1.8") found components: C HL
-- Found MPI_CXX: /usr/lib64/libmpi.so (found version "3.1")
-- Found MPI: TRUE (found version "3.1")
CMake Deprecation Warning at /usr/lib64/cmake/vtk-9.0/vtk-config.cmake:64 (message):
The new name for the 'vtkIOGeometry' component is 'IOGeometry'
Call Stack (most recent call first):
CMakeLists.txt:104 (find_package)
-- Found Boost: /usr/lib64/cmake/Boost-1.76.0/BoostConfig.cmake (found suitable version "1.76.0", minimum required is "1.46") found components: thread system date_time serialization chrono
-- Boost_INCLUDE_DIRS: /usr/include
-- Boost_LIBRARIES: Boost::thread;Boost::system;Boost::date_time;Boost::serialization;Boost::chrono
CMake Deprecation Warning at /usr/lib64/cmake/vtk-9.0/vtk-config.cmake:64 (message):
The new name for the 'vtkIOXML' component is 'IOXML'
Call Stack (most recent call first):
CMakeLists.txt:137 (find_package)
CMake Deprecation Warning at /usr/lib64/cmake/vtk-9.0/vtk-config.cmake:64 (message):
The new name for the 'vtkIOGeometry' component is 'IOGeometry'
Call Stack (most recent call first):
CMakeLists.txt:137 (find_package)
CMake Deprecation Warning at /usr/lib64/cmake/vtk-9.0/vtk-config.cmake:64 (message):
The new name for the 'vtkIOLegacy' component is 'IOLegacy'
Call Stack (most recent call first):
CMakeLists.txt:137 (find_package)
CMake Deprecation Warning at /usr/lib64/cmake/vtk-9.0/vtk-config.cmake:64 (message):
The new name for the 'vtkIOPLY' component is 'IOPLY'
Call Stack (most recent call first):
CMakeLists.txt:137 (find_package)
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args
(OpenMP_CXX)
does not match the name of the calling package (OpenMP). This can lead to
problems in calling code that expects find_package
result variables
(e.g., _FOUND
) to follow a certain pattern.
Call Stack (most recent call first):
/usr/lib64/cmake/vtk-9.0/FindOpenMP.cmake:487 (find_package_handle_standard_args)
/usr/lib64/cmake/vtk-9.0/vtkm/cmake/VTKmDeviceAdapters.cmake:90 (find_package)
/usr/lib64/cmake/vtk-9.0/vtkm/cmake/VTKmWrappers.cmake:13 (include)
/usr/lib64/cmake/vtk-9.0/vtkm/VTKmConfig.cmake:151 (include)
/usr/lib64/cmake/vtk-9.0/vtk-config.cmake:117 (find_package)
CMakeLists.txt:104 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args
(OpenMP_CXX)
does not match the name of the calling package (OpenMP). This can lead to
problems in calling code that expects find_package
result variables
(e.g., _FOUND
) to follow a certain pattern.
Call Stack (most recent call first):
/usr/lib64/cmake/vtk-9.0/FindOpenMP.cmake:487 (find_package_handle_standard_args)
/usr/lib64/cmake/vtk-9.0/vtkm/cmake/VTKmDeviceAdapters.cmake:90 (find_package)
/usr/lib64/cmake/vtk-9.0/vtkm/cmake/VTKmWrappers.cmake:13 (include)
/usr/lib64/cmake/vtk-9.0/vtkm/VTKmConfig.cmake:151 (include)
/usr/lib64/cmake/vtk-9.0/vtk-config.cmake:117 (find_package)
CMakeLists.txt:137 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found Threads: TRUE
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Found JsonCpp: /usr/lib64/libjsoncpp.so (found suitable version "1.9.3", minimum required is "0.7.0")
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.11")
-- Found PNG: /usr/lib64/libpng.so (found version "1.6.37+apng")
-- Found EXPAT: /usr/lib64/libexpat.so (found version "2.4.1")
-- Found double-conversion: /usr/lib64/libdouble-conversion.so
-- Found LZ4: /usr/lib64/liblz4.so (found version "1.9.3")
-- Found LZMA: /usr/lib64/liblzma.so (found version "5.2.5")
-- Found utf8cpp: /usr/include/utf8cpp
-- Found JPEG: /usr/lib64/libjpeg.so
-- Found TIFF: /usr/lib64/libtiff.so (found version "4.3.0")
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Found JsonCpp: /usr/lib64/libjsoncpp.so (found suitable version "1.9.3", minimum required is "0.7.0")
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.11")
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args
(OpenMP_C)
does not match the name of the calling package (OpenMP). This can lead to
problems in calling code that expects find_package
result variables
(e.g., _FOUND
) to follow a certain pattern.
Call Stack (most recent call first):
/usr/lib64/cmake/vtk-9.0/FindOpenMP.cmake:487 (find_package_handle_standard_args)
/usr/lib64/cmake/vtk-9.0/VTK-vtk-module-find-packages.cmake:1760 (find_package)
/usr/lib64/cmake/vtk-9.0/vtk-config.cmake:131 (include)
CMakeLists.txt:137 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found OpenMP_C: -fopenmp (found version "4.5")
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args
(OpenMP_CXX)
does not match the name of the calling package (OpenMP). This can lead to
problems in calling code that expects find_package
result variables
(e.g., _FOUND
) to follow a certain pattern.
Call Stack (most recent call first):
/usr/lib64/cmake/vtk-9.0/FindOpenMP.cmake:487 (find_package_handle_standard_args)
/usr/lib64/cmake/vtk-9.0/VTK-vtk-module-find-packages.cmake:1760 (find_package)
/usr/lib64/cmake/vtk-9.0/vtk-config.cmake:131 (include)
CMakeLists.txt:137 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Found PNG: /usr/lib64/libpng.so (found version "1.6.37+apng")
-- Found double-conversion: /usr/lib64/libdouble-conversion.so
-- Found LZ4: /usr/lib64/liblz4.so (found version "1.9.3")
-- Found LZMA: /usr/lib64/liblzma.so (found version "5.2.5")
-- Found utf8cpp: /usr/include/utf8cpp
-- Found package VTK. Using version 9.0.1
-- vtk libraries VTK::IOXMLVTK::IOGeometryVTK::IOLegacyVTK::IOPLY
CMake Deprecation Warning at /usr/lib64/cmake/vtk-9.0/vtk-use-file-deprecated.cmake:1 (message):
The VTK_USE_FILE
is no longer used starting with 8.90.
Call Stack (most recent call first):
CMakeLists.txt:143 (include)
-- Detected 64-bit x86 target
CMake Deprecation Warning at nf2ff/CMakeLists.txt:10 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.
-- Found JPEG: /usr/lib64/libjpeg.so
-- Sources:openems.cpp/home/user1/Documents/build/openEMS-Project/openEMS/tools/AdrOp.cpp/home/user1/Documents/build/openEMS-Project/openEMS/tools/ErrorMsg.cpp/home/user1/Documents/build/openEMS-Project/openEMS/tools/array_ops.cpp/home/user1/Documents/build/openEMS-Project/openEMS/tools/global.cpp/home/user1/Documents/build/openEMS-Project/openEMS/tools/hdf5_file_reader.cpp/home/user1/Documents/build/openEMS-Project/openEMS/tools/hdf5_file_writer.cpp/home/user1/Documents/build/openEMS-Project/openEMS/tools/sar_calculation.cpp/home/user1/Documents/build/openEMS-Project/openEMS/tools/useful.cpp/home/user1/Documents/build/openEMS-Project/openEMS/tools/vtk_file_writer.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/engine.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/operator.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/engine_multithread.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/operator_cylinder.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/engine_cylinder.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/engine_sse.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/operator_sse.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/operator_sse_compressed.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/engine_sse_compressed.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/operator_multithread.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/excitation.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/operator_cylindermultigrid.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/engine_cylindermultigrid.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/engine_interface_fdtd.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/engine_interface_sse_fdtd.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/engine_interface_cylindrical_fdtd.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/extensions/engine_extension.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/extensions/operator_ext_dispersive.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/extensions/operator_ext_lorentzmaterial.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/extensions/operator_ext_conductingsheet.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/extensions/engine_ext_dispersive.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/extensions/engine_ext_lorentzmaterial.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/extensions/engine_ext_cylindermultigrid.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/extensions/operator_ext_upml.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/extensions/engine_ext_upml.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/extensions/operator_extension.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/extensions/engine_ext_mur_abc.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/extensions/operator_ext_mur_abc.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/extensions/operator_ext_cylinder.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/extensions/engine_ext_cylinder.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/extensions/operator_ext_excitation.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/extensions/engine_ext_excitation.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/extensions/operator_ext_tfsf.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/extensions/engine_ext_tfsf.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/extensions/operator_ext_steadystate.cpp/home/user1/Documents/build/openEMS-Project/openEMS/FDTD/extensions/engine_ext_steadystate.cpp/home/user1/Documents/build/openEMS-Project/openEMS/Common/engine_interface_base.cpp/home/user1/Documents/build/openEMS-Project/openEMS/Common/operator_base.cpp/home/user1/Documents/build/openEMS-Project/openEMS/Common/processcurrent.cpp/home/user1/Documents/build/openEMS-Project/openEMS/Common/processfieldprobe.cpp/home/user1/Documents/build/openEMS-Project/openEMS/Common/processfields.cpp/home/user1/Documents/build/openEMS-Project/openEMS/Common/processfields_fd.cpp/home/user1/Documents/build/openEMS-Project/openEMS/Common/processfields_sar.cpp/home/user1/Documents/build/openEMS-Project/openEMS/Common/processfields_td.cpp/home/user1/Documents/build/openEMS-Project/openEMS/Common/processing.cpp/home/user1/Documents/build/openEMS-Project/openEMS/Common/processintegral.cpp/home/user1/Documents/build/openEMS-Project/openEMS/Common/processmodematch.cpp/home/user1/Documents/build/openEMS-Project/openEMS/Common/processvoltage.cpp
-- Configuring done
-- Found TIFF: /usr/lib64/libtiff.so (found version "4.3.0")
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args
(OpenMP_CXX)
does not match the name of the calling package (OpenMP). This can lead to
problems in calling code that expects find_package
result variables
(e.g., _FOUND
) to follow a certain pattern.
Call Stack (most recent call first):
/usr/lib64/cmake/vtk-9.0/FindOpenMP.cmake:487 (find_package_handle_standard_args)
/usr/lib64/cmake/vtk-9.0/VTK-vtk-module-find-packages.cmake:1760 (find_package)
/usr/lib64/cmake/vtk-9.0/vtk-config.cmake:131 (include)
CMakeLists.txt:104 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Generating done
-- Build files have been written to: /tmp/tmp.ChPxdluuCL/openEMS-prefix/src/openEMS-build
[ 67%] Performing build step for 'openEMS'
[ 1%] Building CXX object nf2ff/CMakeFiles/nf2ff.dir/nf2ff_calc.cpp.o
[ 2%] Building CXX object nf2ff/CMakeFiles/nf2ff.dir/nf2ff.cpp.o
[ 4%] Building CXX object nf2ff/CMakeFiles/nf2ff.dir//tools/array_ops.cpp.o
[ 5%] Building CXX object CMakeFiles/openEMS.dir/openems.cpp.o
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
[ 7%] Building CXX object nf2ff/CMakeFiles/nf2ff.dir//tools/useful.cpp.o
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found GLEW: /usr/lib64/libGLEW.so
-- Found OpenGL: /usr/lib64/libOpenGL.so found components: OpenGL GLX
-- Found EXPAT: /usr/lib64/libexpat.so (found version "2.4.1")
-- Found Eigen3: /usr/include/eigen3 (found version "3.3.9")
-- Found Freetype: /usr/lib64/libfreetype.so (found version "2.12.0")
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args
(OpenMP_CXX)
does not match the name of the calling package (OpenMP). This can lead to
problems in calling code that expects find_package
result variables
(e.g., _FOUND
) to follow a certain pattern.
Call Stack (most recent call first):
/usr/lib64/cmake/vtk-9.0/FindOpenMP.cmake:487 (find_package_handle_standard_args)
/usr/lib64/cmake/vtk-9.0/VTK-vtk-module-find-packages.cmake:1760 (find_package)
/usr/lib64/cmake/vtk-9.0/vtk-config.cmake:131 (include)
CMakeLists.txt:106 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found package VTK. Using version 9.0.1
CMake Deprecation Warning at /usr/lib64/cmake/vtk-9.0/vtk-use-file-deprecated.cmake:1 (message):
The VTK_USE_FILE
is no longer used starting with 8.90.
Call Stack (most recent call first):
CMakeLists.txt:112 (include)
CMake Error at /usr/share/cmake/Modules/FindQt4.cmake:1324 (message):
Found unsuitable Qt version "5.15.2" from /usr/bin/qmake, this code
requires Qt 4.x
Call Stack (most recent call first):
CMakeLists.txt:127 (FIND_PACKAGE)
-- Configuring incomplete, errors occurred!
See also "/tmp/tmp.ChPxdluuCL/QCSXCAD-prefix/src/QCSXCAD-build/CMakeFiles/CMakeOutput.log".
See also "/tmp/tmp.ChPxdluuCL/QCSXCAD-prefix/src/QCSXCAD-build/CMakeFiles/CMakeError.log".
make[2]: *** [CMakeFiles/QCSXCAD.dir/build.make:93: QCSXCAD-prefix/src/QCSXCAD-stamp/QCSXCAD-configure] Error 1
make[1]: *** [CMakeFiles/Makefile2:117: CMakeFiles/QCSXCAD.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 8%] Building CXX object nf2ff/CMakeFiles/nf2ff.dir//tools/hdf5_file_reader.cpp.o
[ 10%] Building CXX object nf2ff/CMakeFiles/nf2ff.dir//tools/hdf5_file_writer.cpp.o
[ 11%] Building CXX object CMakeFiles/openEMS.dir/tools/AdrOp.cpp.o
[ 12%] Building CXX object CMakeFiles/openEMS.dir/tools/ErrorMsg.cpp.o
[ 14%] Building CXX object CMakeFiles/openEMS.dir/tools/array_ops.cpp.o
[ 15%] Building CXX object CMakeFiles/openEMS.dir/tools/global.cpp.o
[ 17%] Building CXX object CMakeFiles/openEMS.dir/tools/hdf5_file_reader.cpp.o
[ 18%] Building CXX object CMakeFiles/openEMS.dir/tools/hdf5_file_writer.cpp.o
[ 20%] Building CXX object CMakeFiles/openEMS.dir/tools/sar_calculation.cpp.o
[ 21%] Building CXX object CMakeFiles/openEMS.dir/tools/useful.cpp.o
[ 22%] Linking CXX shared library libnf2ff.so
[ 22%] Built target nf2ff
[ 24%] Building CXX object CMakeFiles/openEMS.dir/tools/vtk_file_writer.cpp.o
[ 25%] Building CXX object nf2ff/CMakeFiles/nf2ff_bin.dir/main.cpp.o
[ 27%] Building CXX object CMakeFiles/openEMS.dir/FDTD/engine.cpp.o
[ 28%] Linking CXX executable nf2ff
[ 28%] Built target nf2ff_bin
[ 30%] Building CXX object CMakeFiles/openEMS.dir/FDTD/operator.cpp.o
[ 31%] Building CXX object CMakeFiles/openEMS.dir/FDTD/engine_multithread.cpp.o
[ 32%] Building CXX object CMakeFiles/openEMS.dir/FDTD/operator_cylinder.cpp.o
[ 34%] Building CXX object CMakeFiles/openEMS.dir/FDTD/engine_cylinder.cpp.o
[ 35%] Building CXX object CMakeFiles/openEMS.dir/FDTD/engine_sse.cpp.o
[ 37%] Building CXX object CMakeFiles/openEMS.dir/FDTD/operator_sse.cpp.o
[ 38%] Building CXX object CMakeFiles/openEMS.dir/FDTD/operator_sse_compressed.cpp.o
[ 40%] Building CXX object CMakeFiles/openEMS.dir/FDTD/engine_sse_compressed.cpp.o
[ 41%] Building CXX object CMakeFiles/openEMS.dir/FDTD/operator_multithread.cpp.o
[ 42%] Building CXX object CMakeFiles/openEMS.dir/FDTD/excitation.cpp.o
[ 44%] Building CXX object CMakeFiles/openEMS.dir/FDTD/operator_cylindermultigrid.cpp.o
[ 45%] Building CXX object CMakeFiles/openEMS.dir/FDTD/engine_cylindermultigrid.cpp.o
[ 47%] Building CXX object CMakeFiles/openEMS.dir/FDTD/engine_interface_fdtd.cpp.o
[ 48%] Building CXX object CMakeFiles/openEMS.dir/FDTD/engine_interface_sse_fdtd.cpp.o
[ 50%] Building CXX object CMakeFiles/openEMS.dir/FDTD/engine_interface_cylindrical_fdtd.cpp.o
[ 51%] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/engine_extension.cpp.o
[ 52%] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/operator_ext_dispersive.cpp.o
[ 54%] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/operator_ext_lorentzmaterial.cpp.o
[ 55%] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/operator_ext_conductingsheet.cpp.o
[ 57%] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/engine_ext_dispersive.cpp.o
[ 58%] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/engine_ext_lorentzmaterial.cpp.o
[ 60%] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/engine_ext_cylindermultigrid.cpp.o
[ 61%] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/operator_ext_upml.cpp.o
[ 62%] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/engine_ext_upml.cpp.o
[ 64%] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/operator_extension.cpp.o
[ 65%] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/engine_ext_mur_abc.cpp.o
[ 67%] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/operator_ext_mur_abc.cpp.o
[ 68%] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/operator_ext_cylinder.cpp.o
[ 70%] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/engine_ext_cylinder.cpp.o
[ 71%] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/operator_ext_excitation.cpp.o
[ 72%] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/engine_ext_excitation.cpp.o
[ 74%] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/operator_ext_tfsf.cpp.o
[ 75%] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/engine_ext_tfsf.cpp.o
[ 77%] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/operator_ext_steadystate.cpp.o
[ 78%] Building CXX object CMakeFiles/openEMS.dir/FDTD/extensions/engine_ext_steadystate.cpp.o
[ 80%] Building CXX object CMakeFiles/openEMS.dir/Common/engine_interface_base.cpp.o
[ 81%] Building CXX object CMakeFiles/openEMS.dir/Common/operator_base.cpp.o
[ 82%] Building CXX object CMakeFiles/openEMS.dir/Common/processcurrent.cpp.o
[ 84%] Building CXX object CMakeFiles/openEMS.dir/Common/processfieldprobe.cpp.o
[ 85%] Building CXX object CMakeFiles/openEMS.dir/Common/processfields.cpp.o
[ 87%] Building CXX object CMakeFiles/openEMS.dir/Common/processfields_fd.cpp.o
[ 88%] Building CXX object CMakeFiles/openEMS.dir/Common/processfields_sar.cpp.o
[ 90%] Building CXX object CMakeFiles/openEMS.dir/Common/processfields_td.cpp.o
[ 91%] Building CXX object CMakeFiles/openEMS.dir/Common/processing.cpp.o
[ 92%] Building CXX object CMakeFiles/openEMS.dir/Common/processintegral.cpp.o
[ 94%] Building CXX object CMakeFiles/openEMS.dir/Common/processmodematch.cpp.o
[ 95%] Building CXX object CMakeFiles/openEMS.dir/Common/processvoltage.cpp.o
[ 97%] Linking CXX shared library libopenEMS.so
[ 97%] Built target openEMS
[ 98%] Building CXX object CMakeFiles/openEMS_bin.dir/main.cpp.o
[100%] Linking CXX executable openEMS
[100%] Built target openEMS_bin
[ 70%] Performing install step for 'openEMS'
Consolidate compiler generated dependencies of target nf2ff
[ 10%] Built target nf2ff
Consolidate compiler generated dependencies of target nf2ff_bin
[ 12%] Built target nf2ff_bin
Consolidate compiler generated dependencies of target openEMS
[ 97%] Built target openEMS
Consolidate compiler generated dependencies of target openEMS_bin
[100%] Built target openEMS_bin
Install the project...
-- Install configuration: "Release"
-- Installing: /home/user1/opt/openEMS/lib/libopenEMS.so.0.0.35
-- Up-to-date: /home/user1/opt/openEMS/lib/libopenEMS.so.0
-- Set runtime path of "/home/user1/opt/openEMS/lib/libopenEMS.so.0.0.35" to "/home/user1/opt/openEMS/lib:/usr/lib64/libhdf5.so:/usr/lib64/libz.so:/usr/lib64/libdl.so:/usr/lib64/libm.so"
-- Up-to-date: /home/user1/opt/openEMS/lib/libopenEMS.so
-- Installing: /home/user1/opt/openEMS/bin/openEMS
-- Set runtime path of "/home/user1/opt/openEMS/bin/openEMS" to "/home/user1/opt/openEMS/lib:/usr/lib64/libhdf5.so:/usr/lib64/libz.so:/usr/lib64/libdl.so:/usr/lib64/libm.so"
-- Installing: /home/user1/opt/openEMS/bin/openEMS.sh
-- Installing: /home/user1/opt/openEMS/include/openEMS/openems.h
-- Installing: /home/user1/opt/openEMS/include/openEMS/openems_global.h
-- Up-to-date: /home/user1/opt/openEMS/share/openEMS/matlab
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/FindFreeSSH.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/SetDiracExcite.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/AddCircWaveGuidePort.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/Dump2VTK.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/AddCurvePort.m
-- Up-to-date: /home/user1/opt/openEMS/share/openEMS/matlab/private
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/private/invoke_openEMS.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/private/ReadNF2FF.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/AnalyzeNF2FF.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/DumpFF2VTK.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/RunOpenEMS_Parallel.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/queue_delProcess.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/AddPML.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/InitQueue.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/queue_checkProcess.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/GetField_Interpolation.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/AddLumpedPort.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/PlotHDF5FieldData.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/GetField_SubSampling.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/SetupMPI.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/calcPort.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/GetField_TD2FD.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/queue_addProcess.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/SetCustomExcite.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/SetBoundaryCond.m
-- Up-to-date: /home/user1/opt/openEMS/share/openEMS/matlab/Tutorials
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/Tutorials/MRI_Loop_Coil.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/Tutorials/Parallel_Plate_Waveguide.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/Tutorials/Horn_Antenna.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/Tutorials/readme
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/Tutorials/CRLH_Extraction.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/Tutorials/RadarUWBTutorial.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/Tutorials/Patch_Antenna_Phased_Array.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/Tutorials/Circ_Waveguide.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/Tutorials/Bent_Patch_Antenna.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/Tutorials/MSL_NotchFilter.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/Tutorials/Conical_Horn_Antenna.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/Tutorials/CreateCRLH.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/Tutorials/Dipole_SAR.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/Tutorials/CRLH_LeakyWaveAnt.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/Tutorials/StripLine2MSL.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/Tutorials/MRI_LP_Birdcage.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/Tutorials/CylindricalWave_CC.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/Tutorials/Helical_Antenna.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/Tutorials/RCS_Sphere.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/Tutorials/Patch_Antenna_Array.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/Tutorials/Rect_Waveguide.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/Tutorials/Simple_Patch_Antenna.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/CreateNF2FFBox.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/physical_constants.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/AR_estimate.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/calcLumpedPort.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/RunOpenEMS.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/DelayFidelity.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/SetStepExcite.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/ReadUI.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/AddMRStub.m
-- Up-to-date: /home/user1/opt/openEMS/share/openEMS/matlab/examples
-- Up-to-date: /home/user1/opt/openEMS/share/openEMS/matlab/examples/antennas
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/examples/antennas/Bi_Quad_Antenna.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/examples/antennas/inverted_f.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/examples/antennas/infDipol.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/examples/antennas/Patch_Antenna.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/examples/antennas/Patch_Antenna_Array.m
-- Up-to-date: /home/user1/opt/openEMS/share/openEMS/matlab/examples/deprecated
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/examples/deprecated/MSL2.m
-- Up-to-date: /home/user1/opt/openEMS/share/openEMS/matlab/examples/optimizer
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/examples/optimizer/optimizer_asco.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/examples/optimizer/optimizer_simfun.m
-- Up-to-date: /home/user1/opt/openEMS/share/openEMS/matlab/examples/other
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/examples/other/Metamaterial_PlaneWave_Drude.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/examples/other/resistance_sheet.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/examples/other/Helix.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/examples/other/PML_reflection_analysis.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/examples/other/PlaneWave.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/examples/other/gauss_excitation_test.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/examples/other/LumpedElement.m
-- Up-to-date: /home/user1/opt/openEMS/share/openEMS/matlab/examples/transmission_lines
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/examples/transmission_lines/CPW_Line.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/examples/transmission_lines/MSL.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/examples/transmission_lines/Finite_Stripline.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/examples/transmission_lines/Stripline.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/examples/transmission_lines/directional_coupler.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/examples/transmission_lines/MSL_Losses.m
-- Up-to-date: /home/user1/opt/openEMS/share/openEMS/matlab/examples/waveguide
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/examples/waveguide/Coax.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/examples/waveguide/Circ_Waveguide_CylinderCoords.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/examples/waveguide/Circ_Waveguide.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/examples/waveguide/Coax_Cylindrical_MG.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/examples/waveguide/Rect_Waveguide.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/examples/waveguide/Coax_CylinderCoords.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/CheckQueue.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/plotFF3D.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/SetSinusExcite.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/CalcNF2FF.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/ReadHDF5Mesh.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/ResultsQueue.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/setup.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/RunOpenEMS_MPI.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/ReadHDF5FieldData.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/FFT_time2freq.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/AddWaveGuidePort.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/GetField_Range.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/InitCylindricalFDTD.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/polarFF.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/h5readatt_octave.cc
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/plotFFdB.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/AddRectWaveGuidePort.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/SetGaussExcite.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/optimizer_asco_sim.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/InitFDTD.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/harminv.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/optimize.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/calc_ypar.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/WriteHDF5.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/calcTLPort.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/ReadHDF5Dump.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/ConvertHDF5_VTK.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/plotRefl.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/DFT_time2freq.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/AddStripLinePort.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/FinishQueue.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/Add2Queue.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/AddMSLPort.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/ReadHDF5Attribute.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/AddCPWPort.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/calcWGPort.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/WriteOpenEMS.m
-- Installing: /home/user1/opt/openEMS/share/openEMS/matlab/AddCoaxialPort.m
-- Installing: /home/user1/opt/openEMS/bin/nf2ff
-- Set runtime path of "/home/user1/opt/openEMS/bin/nf2ff" to "/home/user1/opt/openEMS/lib:/usr/lib64/libhdf5.so:/usr/lib64/libz.so:/usr/lib64/libdl.so:/usr/lib64/libm.so"
-- Installing: /home/user1/opt/openEMS/lib/libnf2ff.so.0.1.0
-- Up-to-date: /home/user1/opt/openEMS/lib/libnf2ff.so.0
-- Set runtime path of "/home/user1/opt/openEMS/lib/libnf2ff.so.0.1.0" to "/home/user1/opt/openEMS/lib:/usr/lib64/libhdf5.so:/usr/lib64/libz.so:/usr/lib64/libdl.so:/usr/lib64/libm.so"
-- Up-to-date: /home/user1/opt/openEMS/lib/libnf2ff.so
-- Installing: /home/user1/opt/openEMS/include/openEMS/nf2ff.h
[ 72%] Completed 'openEMS'
[ 72%] Built target openEMS
make: *** [Makefile:91: all] Error 2
Windows 10 Pro 64 bit, Python 3.11 64 bit, I successful install the packages:
openEMS_x64_v0.0.35-99-gecf0c16_msvc
pip install CSXCAD-0.6.2-cp311-cp311-win_amd64.whl
pip install openEMS-0.0.33-cp311-cp311-win_amd64.whl
BUT, when try any of the examples in:
openEMS_x64_v0.0.35-99-gecf0c16_msvc\openEMS\python\Tutorials
it returns ERRRR:
C:\Users\mlap\Downloads\openEMS_x64_v0.0.35-99-gecf0c16_msvc\openEMS\python\Tutorials>Simple_Patch_Antenna.py
Traceback (most recent call last):
File "C:\Users\mlap\Downloads\openEMS_x64_v0.0.35-99-gecf0c16_msvc\openEMS\python\Tutorials\Simple_Patch_Antenna.py", line 12, in
from CSXCAD import ContinuousStructure
File "C:\Users\mlap\AppData\Local\Programs\Python\Python311\Lib\site-packages\CSXCAD_init_.py", line 19, in
from CSXCAD.CSXCAD import ContinuousStructure
ImportError: DLL load failed while importing CSXCAD: The specified module could not be found.
During a discussion here #152 (reply in thread), the question of whether it is possible, and if so, how to create and use a custom excitation in openEMS.
If that is possible or even supported, ideally from Python, but if not I'd be good with a way using C++ as well (fwiw, if so I might find time to add Python wrappers then as well).
Here is the concrete question:
In openEMS, and also in the Python API of openEMS, there are a few built-in excitation functions, like e.g. SetGaussExcite
.
Is it possible to use openEMS with a custom excitation function, such as for example a continuous white noise spectrum shaped by a single Gaussian envelope over a multi-second time scale and with the source of randomness to generate the white noise coming from a PRNG instance seeded from a user supplied value?
I am trying to build openEMS on an Arch Linux variant Garuda and I keep getting this error when trying to compile from scratch:
/usr/bin/ld: /usr/lib/libvtkGeovisGDAL.so.1: undefined reference to GDALDriver::CreateCopy(char const*, GDALDataset*, int, char**, int (*)(double, char const*, void*), void*)' /usr/bin/ld: /usr/lib/libvtkGeovisGDAL.so.1: undefined reference to
GDALDriver::Create(char const*, int, int, int, GDALDataType, char**)'
collect2: error: ld returned 1 exit status
make[5]: *** [CMakeFiles/AppCSXCAD.dir/build.make:346: AppCSXCAD] Error 1
make[4]: *** [CMakeFiles/Makefile2:84: CMakeFiles/AppCSXCAD.dir/all] Error 2
make[3]: *** [Makefile:136: all] Error 2
make[2]: *** [CMakeFiles/AppCSXCAD.dir/build.make:86: AppCSXCAD-prefix/src/AppCSXCAD-stamp/AppCSXCAD-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:196: CMakeFiles/AppCSXCAD.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
I tried installing a different version of GDAL to see if that would fix it. Any ideas?
In trying to install using brew install --HEAD https://raw.github.com/thliebig/openEMS-Project/master/brew/openEMS.rb
I am finding missing dependencies (at the vtk
dependency point), including:
This may be a problem with the vtk
brew recipe.
After installing vtk
the build eventually fails with
==> Checking out branch master
==> cmake . -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/openEMS/HEAD -DCMAKE_BUILD_TYPE=Release -DCMAKE_F
==> make
Last 15 lines from /Users/jkletsky/Library/Logs/Homebrew/openEMS/02.make:
[ 84%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSPropConductingSheet.cpp.o
[ 87%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSPropExcitation.cpp.o
[ 89%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSPropProbeBox.cpp.o
[ 92%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSPropDumpBox.cpp.o
[ 94%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSPropResBox.cpp.o
[ 97%] Building CXX object src/CMakeFiles/CSXCAD.dir/CSBackgroundMaterial.cpp.o
[100%] Linking CXX shared library libCSXCAD.dylib
ld: library not found for -lvtkCommon
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[5]: *** [src/libCSXCAD.0.6.0.dylib] Error 1
make[4]: *** [src/CMakeFiles/CSXCAD.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [CSXCAD-prefix/src/CSXCAD-stamp/CSXCAD-build] Error 2
make[1]: *** [CMakeFiles/CSXCAD.dir/all] Error 2
make: *** [all] Error 2
Looking into this further now
Hi
I tried to import stl 3D file to openems and got an error
bug_stl.txt
The openEMS complains that it can't find my stl file but QCSXCAD displayed it (so it's there).
I tried on fresh update on linux mint, tried also on windows (earlier version - installed from available installer).
I am trying to install opemEMS while following the installation instructions to include the python interface.
After installing dependencies and starting the build I get the following output:
> ./update_openEMS.sh ~/opt/openEMS --python
enabling Python Extension build
setting install path to: /home/dmytro/opt/openEMS
logging build output to: /home/dmytro/Documents/projects/openEMS-Project/build_20240403_004127.log
running cmake in tmp dir: /tmp/tmp.UMYLr24AKr
CMake Warning (dev) at CMakeLists.txt:5 (PROJECT):
cmake_minimum_required() should be called prior to this top-level project()
call. Please see the cmake-commands(7) manual for usage documentation of
both commands.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Deprecation Warning at CMakeLists.txt:7 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
build openEMS and dependencies ... please wait
build successful, cleaning up tmp dir ...
build CSXCAD python module ... please wait
build openEMS python module ... please wait
--------
openEMS and all modules have been updated successfully...
% add the required paths to Octave/Matlab:
addpath('/home/dmytro/opt/openEMS/share/openEMS/matlab')
addpath('/home/dmytro/opt/openEMS/share/CSXCAD/matlab')
% optional additional pckages:
Have fun using openEMS
log file: build_20240403_004127.log
But when I look into /home/dmytro/opt/openEMS/share/openEMS/
and /home/dmytro/opt/openEMS/share/CSXCAD/
I only see the matlab folder. From my understanding there should also be a python folder there, but there is none. Trying to import openems in python REPL also fails.
What am I doing wrong, any help would be greatly appreciated. Thank you.
When trying to install openEMS, I get the following error message:
make failed, build incomplete, please see logfile for more details ...
build incomplete, cleaning up tmp dir ...
And this is what the logfile says:
-- The CXX compiler identification is GNU 12.2.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using CMAKE_INSTALL_PREFIX: /home/johann/opt/openEMS
-- Build AppCSXCAD: YES
-- with MPI: 0
-- Configuring done (0.3s)
-- Generating done (0.0s)
-- Build files have been written to: /tmp/tmp.1CL1J2s9Ba
[ 2%] Creating directories for 'fparser'
[ 5%] No download step for 'fparser'
[ 7%] No update step for 'fparser'
[ 10%] No patch step for 'fparser'
[ 12%] Performing configure step for 'fparser'
CMake Warning (dev) at CMakeLists.txt:5 (PROJECT):
cmake_minimum_required() should be called prior to this top-level project()
call. Please see the cmake-commands(7) manual for usage documentation of
both commands.
This warning is for project developers. Use -Wno-dev to suppress it.
-- The CXX compiler identification is GNU 12.2.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at CMakeLists.txt:7 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.
-- Configuring done (0.2s)
-- Generating done (0.0s)
-- Build files have been written to: /tmp/tmp.1CL1J2s9Ba/fparser-prefix/src/fparser-build
[ 15%] Performing build step for 'fparser'
[ 33%] Building CXX object CMakeFiles/fparser.dir/fparser.cc.o
[ 66%] Building CXX object CMakeFiles/fparser.dir/fpoptimizer.cc.o
[100%] Linking CXX shared library libfparser.so
[100%] Built target fparser
[ 17%] Performing install step for 'fparser'
[100%] Built target fparser
Install the project...
-- Install configuration: "Release"
-- Installing: /home/johann/opt/openEMS/lib/libfparser.so.4.5.1
-- Up-to-date: /home/johann/opt/openEMS/lib/libfparser.so.4
-- Up-to-date: /home/johann/opt/openEMS/lib/libfparser.so
-- Up-to-date: /home/johann/opt/openEMS/include/fparser.hh
[ 20%] Completed 'fparser'
[ 20%] Built target fparser
[ 22%] Creating directories for 'CSXCAD'
[ 25%] No download step for 'CSXCAD'
[ 27%] No update step for 'CSXCAD'
[ 30%] No patch step for 'CSXCAD'
[ 32%] Performing configure step for 'CSXCAD'
CMake Warning (dev) at CMakeLists.txt:9 (PROJECT):
cmake_minimum_required() should be called prior to this top-level project()
call. Please see the cmake-commands(7) manual for usage documentation of
both commands.
This warning is for project developers. Use -Wno-dev to suppress it.
-- The CXX compiler identification is GNU 12.2.1
-- The C compiler identification is GNU 12.2.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found Git: /usr/bin/git (found version "2.40.0")
-- Found Git repository, CSXCAD version tag: v0.6.2-124-gb5919a6
-- FPARSER_ROOT_DIR: /home/johann/opt/openEMS
-- fparser_INCLUDE_DIR: /home/johann/opt/openEMS/include
-- TinyXML_ROOT_DIR
-- Found TinyXML: /usr/lib/libtinyxml.so
-- TinyXML_INCLUDE_DIR: /usr/include
-- TinyXML_LIBRARY: /usr/lib/libtinyxml.so
-- Found HDF5: /usr/lib/libhdf5.so;/usr/lib/libsz.so;/usr/lib/libz.so;/usr/lib/libdl.a;/usr/lib/libm.so (found suitable version "1.14.0", minimum required is "1.8") found components: C HL
-- Using header-only CGAL
-- Targetting Unix Makefiles
-- Using /usr/bin/c++ compiler.
-- Found GMP: /usr/lib/libgmp.so
-- Found MPFR: /usr/lib/libmpfr.so
-- Found Boost: /usr/lib/cmake/Boost-1.81.0/BoostConfig.cmake (found suitable version "1.81.0", minimum required is "1.66")
-- Boost include dirs: /usr/include
-- Boost libraries:
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Using gcc version 4 or later. Adding -frounding-math
-- Found Boost: /usr/lib/cmake/Boost-1.81.0/BoostConfig.cmake (found suitable version "1.81.0", minimum required is "1.46") found components: thread system date_time serialization chrono
-- Found MPI_C: /usr/lib/libmpi.so (found version "3.1")
-- Found MPI_CXX: /usr/lib/libmpi_cxx.so (found version "3.1")
-- Found MPI: TRUE (found version "3.1")
CMake Deprecation Warning at /usr/lib/cmake/vtk/vtk-config.cmake:75 (message):
The new name for the 'vtkIOGeometry' component is 'IOGeometry'
Call Stack (most recent call first):
CMakeLists.txt:139 (find_package)
CMake Deprecation Warning at /usr/lib/cmake/vtk/vtk-config.cmake:75 (message):
The new name for the 'vtkIOPLY' component is 'IOPLY'
Call Stack (most recent call first):
CMakeLists.txt:139 (find_package)
CMake Warning at /usr/lib/cmake/vtk/VTK-vtk-module-find-packages.cmake:1966 (find_package):
By not providing "Findnlohmann_json.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"nlohmann_json", but CMake did not find one.
Could not find a package configuration file provided by "nlohmann_json"
with any of the following names:
nlohmann_jsonConfig.cmake
nlohmann_json-config.cmake
Add the installation prefix of "nlohmann_json" to CMAKE_PREFIX_PATH or set
"nlohmann_json_DIR" to a directory containing one of the above files. If
"nlohmann_json" provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
/usr/lib/cmake/vtk/vtk-config.cmake:152 (include)
CMakeLists.txt:139 (find_package)
-- Found LZMA: /usr/lib/liblzma.so (found version "5.4.2")
-- Found LZ4: /usr/lib/liblz4.so (found version "1.9.4")
-- Found double-conversion: /usr/lib/libdouble-conversion.so
-- Found TIFF: /usr/lib/libtiff.so (found version "4.5.0")
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.13")
-- Found PNG: /usr/lib/libpng.so (found version "1.6.39")
-- Found JPEG: /usr/lib/libjpeg.so (found version "80")
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Could NOT find utf8cpp (missing: utf8cpp_INCLUDE_DIR)
-- Found package VTK. Using version 9.2.6
CMake Deprecation Warning at /usr/lib/cmake/vtk/vtk-use-file-deprecated.cmake:1 (message):
The VTK_USE_FILE
is no longer used starting with 8.90.
Call Stack (most recent call first):
CMakeLists.txt:142 (include)
-- vtk libraries VTK::IOGeometryVTK::IOPLY
-- Configuring done (2.3s)
CMake Error at /usr/lib/cmake/vtk/VTK-targets.cmake:555 (set_target_properties):
The link interface of target "VTK::nlohmannjson" contains:
nlohmann_json::nlohmann_json
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
Call Stack (most recent call first):
/usr/lib/cmake/vtk/vtk-config.cmake:138 (include)
CMakeLists.txt:139 (find_package)
-- Generating done (0.0s)
CMake Generate step failed. Build files cannot be regenerated correctly.
make[2]: *** [CMakeFiles/CSXCAD.dir/build.make:93: CSXCAD-prefix/src/CSXCAD-stamp/CSXCAD-configure] Error 1
make[1]: *** [CMakeFiles/Makefile2:117: CMakeFiles/CSXCAD.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
I've been trying to install it for a while now as well as looking into the CmakeLists.txt file and trying to modify it, but to no avail. I really need this to work,what can I do?
The hyp2mat folder appears to be missing on all the windows releases past v0.0.35-74. As a workaround, there are two options I've test using the, "Importing with hyp2mat" tutorial.
- I downloaded the pre-built binary of hyp2mat as suggested in the hyp2mat repo - README.md commit b15f749 (master) of koendv/hyp2mat suggests [this pre-compiled binary](http://www.kdvelectronics.eu/hyp2mat/hyp2mat-win32-current.zip)
- I tested the bundled binary version from v0.0.35-74 (manual copy only the hyp2mat folder to v0.0.36) and it worked as well
As detailed in the discussion linked below, the tutorial from the old Wiki may need to reference adding the following paths during the tutorial set up to avoid errors due to missing functions (I was uncertain if this would roll into the bug update above or be a separate item.
- Additional folder openEMS\hyp2mat\matlab for the ImportHyperLynx function
- Additional folder openEMS\hyp2mat\eagle\tutorial for the GetUnits and GetEpsilon functions
Originally posted by @daft-develop in #82 (comment)
While running the install script I am coming across these errors. Can anyone help me get past these so I can successfully install OpenEMS?
-- Build files have been written to: /tmp/tmp.YLCiiFlJam/AppCSXCAD-prefix/src/AppCSXCAD-build
[ 90%] Performing build step for 'AppCSXCAD'
[ 20%] Automatic MOC for target AppCSXCAD
[ 97%] Linking CXX executable nf2ff
[ 97%] Built target openEMS
[ 98%] Building CXX object CMakeFiles/openEMS_bin.dir/main.cpp.o
[ 20%] Built target AppCSXCAD_autogen
[ 60%] Building CXX object CMakeFiles/AppCSXCAD.dir/main.cpp.o
[ 60%] Building CXX object CMakeFiles/AppCSXCAD.dir/AppCSXCAD_autogen/mocs_compilation.cpp.o
[ 80%] Building CXX object CMakeFiles/AppCSXCAD.dir/AppCSXCAD.cpp.o
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so: undefined reference to `curl_global_init@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so: undefined reference to `curl_easy_perform@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so: undefined reference to `curl_slist_free_all@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so: undefined reference to `curl_easy_setopt@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so: undefined reference to `curl_easy_init@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so: undefined reference to `curl_slist_append@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so: undefined reference to `curl_easy_cleanup@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so: undefined reference to `curl_global_cleanup@CURL_OPENSSL_4'
collect2: error: ld returned 1 exit status
make[5]: *** [nf2ff/CMakeFiles/nf2ff_bin.dir/build.make:105: nf2ff/nf2ff] Error 1
make[4]: *** [CMakeFiles/Makefile2:254: nf2ff/CMakeFiles/nf2ff_bin.dir/all] Error 2
make[4]: *** Waiting for unfinished jobs....
[100%] Linking CXX executable openEMS
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so: undefined reference to `curl_global_cleanup@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so: undefined reference to `curl_global_init@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so: undefined reference to `curl_easy_perform@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so: undefined reference to `curl_easy_init@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so: undefined reference to `curl_slist_free_all@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so: undefined reference to `curl_easy_setopt@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so: undefined reference to `curl_slist_append@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so: undefined reference to `curl_easy_cleanup@CURL_OPENSSL_4'
collect2: error: ld returned 1 exit status
make[5]: *** [CMakeFiles/openEMS_bin.dir/build.make:125: openEMS] Error 1
make[4]: *** [CMakeFiles/Makefile2:202: CMakeFiles/openEMS_bin.dir/all] Error 2
make[3]: *** [Makefile:136: all] Error 2
make[2]: *** [CMakeFiles/openEMS.dir/build.make:86: openEMS-prefix/src/openEMS-stamp/openEMS-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:144: CMakeFiles/openEMS.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[100%] Linking CXX executable AppCSXCAD
[100%] Built target AppCSXCAD
[ 92%] Performing install step for 'AppCSXCAD'
[ 20%] Automatic MOC for target AppCSXCAD
[ 20%] Built target AppCSXCAD_autogen
[100%] Built target AppCSXCAD
Install the project...
-- Install configuration: "Release"
-- Installing: /home/nuclearrambo/opt/openEMS/bin/AppCSXCAD
-- Set runtime path of "/home/nuclearrambo/opt/openEMS/bin/AppCSXCAD" to "/home/nuclearrambo/opt/openEMS/lib:/usr/lib/x86_64-linux-gnu/hdf5/serial"
-- Up-to-date: /home/nuclearrambo/opt/openEMS/bin/AppCSXCAD.sh
[ 95%] Completed 'AppCSXCAD'
[ 95%] Built target AppCSXCAD
make: *** [Makefile:91: all] Error 2
Hi,
I followed the instructions here: https://docs.openems.de/install.html (Basically just extracting the downloaded zip folder into C drive).
I did the next steps give here: https://docs.openems.de/python/install.html#windows
git clone --recursive https://github.com/thliebig/openEMS-Project.git
cd openEMS-Project/CSXCAD/python
So far so good...
But when attempting to install with:
python setup.py build_ext -IC:\opt\openEMS\include -LC:\opt\openEMS
I get the following errors (copying here only the last few lines, but the same error is repeated 100 times):
C:\OpenSourceSI\openEMS-Project\CSXCAD\python\CSXCAD\CSProperties.cpp(47892): error C2039: 'LEtype': is not a member of 'CSPropLumpedElement'
C:\OpenSourceSI\openEMS\include\CSXCAD/CSPropLumpedElement.h(26): note: see declaration of 'CSPropLumpedElement'
C:\OpenSourceSI\openEMS-Project\CSXCAD\python\CSXCAD\CSProperties.cpp(47893): error C2039: 'LEtype': is not a member of 'CSPropLumpedElement'
C:\OpenSourceSI\openEMS\include\CSXCAD/CSPropLumpedElement.h(26): note: see declaration of 'CSPropLumpedElement'
C:\OpenSourceSI\openEMS-Project\CSXCAD\python\CSXCAD\CSProperties.cpp(47893): error C2039: 'LEtype': is not a member of 'CSPropLumpedElement'
C:\OpenSourceSI\openEMS\include\CSXCAD/CSPropLumpedElement.h(26): note: see declaration of 'CSPropLumpedElement'
C:\OpenSourceSI\openEMS-Project\CSXCAD\python\CSXCAD\CSProperties.cpp(47893): error C2039: 'LEtype': is not a member of 'CSPropLumpedElement'
C:\OpenSourceSI\openEMS\include\CSXCAD/CSPropLumpedElement.h(26): note: see declaration of 'CSPropLumpedElement'
C:\OpenSourceSI\openEMS-Project\CSXCAD\python\CSXCAD\CSProperties.cpp(47898): error C2039: 'LEtype': is not a member of 'CSPropLumpedElement'
C:\OpenSourceSI\openEMS\include\CSXCAD/CSPropLumpedElement.h(26): note: see declaration of 'CSPropLumpedElement'
C:\OpenSourceSI\openEMS-Project\CSXCAD\python\CSXCAD\CSProperties.cpp(47898): fatal error C1003: error count exceeds 100; stopping compilation
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.39.33519\bin\HostX86\x64\cl.exe' failed with exit code 2
Please help with fixing this issue.
Regards,
Jones
Hi,
I'm writing GUI addon for FreeCAD so I have GUI where you define parameters for openEMS simulation and you can generate matlab/octave or python script (now writing python generator) and I was implementing microstrip port and hit this problem:
- I can generate microstrip port using octave where there is MSL input and output port and for control lumped port all of them with reisstance defined
- when generating python code lumped port is generated with resistance lumped part
- python generated model has MSL port has no resistor lumped part
Question:
Octave generated model IS RIGHT AS I EXPECTED AND SHOULD BE,
why python IS NOT GENERATING MSL port RESISTANCE?
here is octave code
% OpenEMS FDTD Analysis Automation Script
%
% To be run with GNU Octave or MATLAB.
% FreeCAD to OpenEMS plugin by Lubomir Jagos,
% see https://github.com/LubomirJagos/FreeCAD-OpenEMS-Export
%
% This file has been automatically generated. Manual changes may be overwritten.
%
close all
clear
clc
%% Change the current folder to the folder of this m-file.
if(~isdeployed)
mfile_name = mfilename('fullpath');
[pathstr,name,ext] = fileparts(mfile_name);
cd(pathstr);
end
%% constants
physical_constants;
unit = 0.001; % Model coordinates and lengths will be specified in mm.
fc_unit = 0.001; % STL files are exported in FreeCAD standard units (mm).
%% switches & options
postprocessing_only = 1;
draw_3d_pattern = 0; % this may take a while...
use_pml = 0; % use pml boundaries instead of mur
currDir = strrep(pwd(), '\', '\\');
display(currDir);
% --no-simulation : dry run to view geometry, validate settings, no FDTD computations
% --debug-PEC : generated PEC skeleton (use ParaView to inspect)
openEMS_opts = '--no-simulation';
%% prepare simulation folder
Sim_Path = 'simulation_output';
Sim_CSX = 'Mircostrip_Port_1.xml';
[status, message, messageid] = rmdir( Sim_Path, 's' ); % clear previous directory
[status, message, messageid] = mkdir( Sim_Path ); % create empty simulation folder
%% setup FDTD parameter & excitation function
max_timesteps = 1000000;
min_decrement = 1e-05; % 10*log10(min_decrement) dB (i.e. 1E-5 means -50 dB)
FDTD = InitFDTD( 'NrTS', max_timesteps, 'EndCriteria', min_decrement );
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% BOUNDARY CONDITIONS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
BC = {"PEC","PEC","PEC","PEC","PEC","PEC"};
FDTD = SetBoundaryCond( FDTD, BC );
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% COORDINATE SYSTEM
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CSX = InitCSX('CoordSystem', 0); % Cartesian coordinate system.
mesh.x = []; % mesh variable initialization (Note: x y z implies type Cartesian).
mesh.y = [];
mesh.z = [];
CSX = DefineRectGrid(CSX, unit, mesh); % First call with empty mesh to set deltaUnit attribute.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% EXCITATION experimental
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
f0 = 2.4*1000000000.0;
fc = 1.2*1000000000.0;
FDTD = SetGaussExcite( FDTD, f0, fc );
max_res = c0 / (f0 + fc) / 20;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% MATERIALS AND GEOMETRY
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CSX = AddMetal( CSX, 'PEC' );
%% MATERIAL - PEC
CSX = AddMetal(CSX, 'PEC');
%% MATERIAL - air
CSX = AddMaterial(CSX, 'air');
CSX = SetMaterialProperty(CSX, 'air', 'Epsilon', 1, 'Mue', 1);
%% MATERIAL - copper sheet
CSX = AddConductingSheet(CSX, 'copper sheet', 5e+07, 35*1e-06);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% GRID LINES
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% GRID - AIR - air (Fixed Distance)
mesh.x(mesh.x >= -51.0358 & mesh.x <= 56.9278) = [];
mesh.x = [ mesh.x (-51.0358:2:56.9278) ];
mesh.y(mesh.y >= -54.5894 & mesh.y <= 56.6877) = [];
mesh.y = [ mesh.y (-54.5894:2:56.6877) ];
mesh.z(mesh.z >= -40 & mesh.z <= 40) = [];
mesh.z = [ mesh.z (-40:2:40) ];
CSX = DefineRectGrid(CSX, unit, mesh);
%% GRID - XY 20 lines - substrate (Fixed Count)
mesh.x(mesh.x >= -29.5166 & mesh.x <= 30.4928) = [];
mesh.x = [ mesh.x linspace(-29.5166,30.4928,200) ];
mesh.y(mesh.y >= -28.4 & mesh.y <= 30.3971) = [];
mesh.y = [ mesh.y linspace(-28.4,30.3971,200) ];
CSX = DefineRectGrid(CSX, unit, mesh);
%% GRID - Z 5 line - substrate (Fixed Count)
mesh.z(mesh.z >= 0 & mesh.z <= 1.54) = [];
mesh.z = [ mesh.z linspace(0,1.54,5) ];
CSX = DefineRectGrid(CSX, unit, mesh);
%% GRID - Z 5 line - MLS port IN (Fixed Count)
mesh.z(mesh.z >= 0.04 & mesh.z <= 1.54) = [];
mesh.z = [ mesh.z linspace(0.04,1.54,5) ];
CSX = DefineRectGrid(CSX, unit, mesh);
%% GRID - X MSL PORT lines - MLS port IN (Fixed Count)
mesh.x(mesh.x >= 10.6736 & mesh.x <= 14.4867) = [];
mesh.x = [ mesh.x linspace(10.6736,14.4867,200) ];
CSX = DefineRectGrid(CSX, unit, mesh);
%% GRID - Y MSL PORT linex - MLS port IN (Fixed Count)
mesh.y(mesh.y >= -26.8079 & mesh.y <= -3.45277) = [];
mesh.y = [ mesh.y linspace(-26.8079,-3.45277,200) ];
CSX = DefineRectGrid(CSX, unit, mesh);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% PORTS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
portNamesAndNumbersList = containers.Map();
%% PORT - microstrip sink - MSL port OUT
portStart = [ 10.9443, 24.184, 1.54 ];
portStop = [ 13.672, -2.33531, 0.04 ];
portR = 48;
portUnits = 1;
portExcitationAmplitude = 3.7;
mslDir = 1;
mslEVec = [0 0 -1]*portExcitationAmplitude;
[CSX port{1}] = AddMSLPort(CSX,9900,1,'copper sheet',portStart, portStop, mslDir, mslEVec, 'FeedShift', 3.0, 'MeasPlaneShift', 4.0, 'Feed_R', portR*portUnits);
portNamesAndNumbersList("MSL port OUT") = 1;
%% PORT - microstrip source - MLS port IN
portStart = [ 10.6736, -26.8079, 1.54 ];
portStop = [ 14.4867, -3.45277, 0.04 ];
portR = 11;
portUnits = 1;
portExcitationAmplitude = 3.7;
mslDir = 1;
mslEVec = [0 0 -1]*portExcitationAmplitude;
[CSX port{2}] = AddMSLPort(CSX,9800,2,'copper sheet',portStart, portStop, mslDir, mslEVec, 'ExcitePort', true, 'FeedShift', 1.0, 'MeasPlaneShift', 2.0, 'Feed_R', portR*portUnits);
portNamesAndNumbersList("MLS port IN") = 2;
%% PORT - lumped port - lumpedPort_1
portStart = [ -12.8372, 9.2439, -1.7 ];
portStop = [ 3.54001, 10.6087, 0 ];
portR = 89.0;
portUnits = 1;
portExcitationAmplitude = 2.3;
portDirection = [0 0 1]*portExcitationAmplitude;
[CSX port{3}] = AddLumpedPort(CSX, 10000, 3, portR*portUnits, portStart, portStop, portDirection);
portNamesAndNumbersList("lumpedPort_1") = 3;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% RUN
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
WriteOpenEMS( [Sim_Path '/' Sim_CSX], FDTD, CSX );
CSXGeomPlot( [Sim_Path '/' Sim_CSX] );
if (postprocessing_only==0)
%% run openEMS
RunOpenEMS( Sim_Path, Sim_CSX, openEMS_opts );
end
here is python code
# OpenEMS FDTD Analysis Automation Script
#
# To be run with python.
# FreeCAD to OpenEMS plugin by Lubomir Jagos,
# see https://github.com/LubomirJagos/FreeCAD-OpenEMS-Export
#
# This file has been automatically generated. Manual changes may be overwritten.
#
### Import Libraries
import os, tempfile, shutil
from pylab import *
import CSXCAD
from openEMS import openEMS
from openEMS.physical_constants import *
#
#
# Change current path to script file folder
#
abspath = os.path.abspath(__file__)
dname = os.path.dirname(abspath)
os.chdir(dname)
## constants
unit = 0.001 # Model coordinates and lengths will be specified in mm.
fc_unit = 0.001 # STL files are exported in FreeCAD standard units (mm).
## switches & options
postprocessing_only = True;
draw_3d_pattern = 0 # this may take a while...
use_pml = 0 # use pml boundaries instead of mur
currDir = os.getcwd()
print(currDir)
# --no-simulation : dry run to view geometry, validate settings, no FDTD computations
# --debug-PEC : generated PEC skeleton (use ParaView to inspect)
openEMS_opts = '--no-simulation'
## prepare simulation folder
Sim_Path = os.path.join(currDir, 'simulation_output')
Sim_CSX = 'Mircostrip Port 1.xml'
if os.path.exists(Sim_Path):
shutil.rmtree(Sim_Path) # clear previous directory
os.mkdir(Sim_Path) # create empty simulation folder
## setup FDTD parameter & excitation function
max_timesteps = 1000000
min_decrement = 1e-05 # 10*log10(min_decrement) dB (i.e. 1E-5 means -50 dB)
CSX = CSXCAD.ContinuousStructure()
FDTD = openEMS(NrTS=max_timesteps, EndCriteria=min_decrement)
FDTD.SetCSX(CSX)
#######################################################################################################################################
# BOUNDARY CONDITIONS
#######################################################################################################################################
BC = ["PEC","PEC","PEC","PEC","PEC","PEC"]
FDTD.SetBoundaryCond(BC)
#######################################################################################################################################
# COORDINATE SYSTEM
#######################################################################################################################################
FDTD.SetCoordSystem(0) # Cartesian coordinate system.
def mesh():
x,y,z
mesh.x = np.array([]); # mesh variable initialization (Note: x y z implies type Cartesian).
mesh.y = np.array([]);
mesh.z = np.array([]);
openEMS_grid = CSX.GetGrid()
openEMS_grid.SetDeltaUnit(unit) # First call with empty mesh to set deltaUnit attribute.
#######################################################################################################################################
# EXCITATION experimental
#######################################################################################################################################
f0 = 2.4*1000000000.0
fc = 1.2*1000000000.0
FDTD.SetGaussExcite(f0, fc)
max_res = C0 / (f0 + fc) / 20
#######################################################################################################################################
# MATERIALS AND GEOMETRY
#######################################################################################################################################
PEC = CSX.AddMetal('PEC');
## MATERIAL - PEC
materialList = {}
materialList['PEC'] = CSX.AddMetal('PEC')
## MATERIAL - air
materialList = {}
materialList['air'] = CSX.AddMaterial('air')
materialList['air'].SetMaterialProperty(epsilon=1, mue=1)
## MATERIAL - copper sheet
materialList = {}
materialList['copper sheet'] = CSX.AddConductingSheet('copper sheet', conductivity=5e+07, thickness=35*1e-06)
#######################################################################################################################################
# GRID LINES
#######################################################################################################################################
## GRID - AIR - air (Fixed Distance)
mesh.x = np.delete(mesh.x, np.argwhere((mesh.x >= -51.0357) & (mesh.x <= 56.9277)))
mesh.x = np.concatenate((mesh.x, np.arange(-51.0357,56.9277,2)))
mesh.y = np.delete(mesh.y, np.argwhere((mesh.y >= -54.5893) & (mesh.y <= 56.6876)))
mesh.y = np.concatenate((mesh.y, np.arange(-54.5893,56.6876,2)))
mesh.z = np.delete(mesh.z, np.argwhere((mesh.z >= -39.9999) & (mesh.z <= 39.9999)))
mesh.z = np.concatenate((mesh.z, np.arange(-39.9999,39.9999,2)))
## GRID - XY 20 lines - substrate (Fixed Count)
mesh.x = np.delete(mesh.x, np.argwhere((mesh.x >= -29.5165) & (mesh.x <= 30.4927)))
mesh.x = np.concatenate((mesh.x, linspace(-29.5165,30.4927,200)))
mesh.y = np.delete(mesh.y, np.argwhere((mesh.y >= -28.3999) & (mesh.y <= 30.397)))
mesh.y = np.concatenate((mesh.y, linspace(-28.3999,30.397,200)))
## GRID - Z 5 line - substrate (Fixed Count)
mesh.z = np.delete(mesh.z, np.argwhere((mesh.z >= 0.0001) & (mesh.z <= 1.5399)))
mesh.z = np.concatenate((mesh.z, linspace(0.0001,1.5399,5)))
## GRID - Z 5 line - MLS port IN (Fixed Count)
mesh.z = np.delete(mesh.z, np.argwhere((mesh.z >= 0.0401) & (mesh.z <= 1.5399)))
mesh.z = np.concatenate((mesh.z, linspace(0.0401,1.5399,5)))
## GRID - X MSL PORT lines - MLS port IN (Fixed Count)
mesh.x = np.delete(mesh.x, np.argwhere((mesh.x >= 10.6737) & (mesh.x <= 14.4866)))
mesh.x = np.concatenate((mesh.x, linspace(10.6737,14.4866,200)))
## GRID - Y MSL PORT linex - MLS port IN (Fixed Count)
mesh.y = np.delete(mesh.y, np.argwhere((mesh.y >= -26.8078) & (mesh.y <= -3.45288)))
mesh.y = np.concatenate((mesh.y, linspace(-26.8078,-3.45288,200)))
openEMS_grid.AddLine('x', mesh.x)
openEMS_grid.AddLine('y', mesh.y)
openEMS_grid.AddLine('z', mesh.z)
#######################################################################################################################################
# PORTS
#######################################################################################################################################
port = {}
portNamesAndNumbersList = {}
## PORT - microstrip sink - MSL port OUT
portStart = [ 10.9443, 24.184, 1.54 ]
portStop = [ 13.672, -2.33531, 0.04 ]
portR = 48
portUnits = 1
portExcitationAmplitude = 3.7 * 0
mslDir = 'y'
mslEVec = 'z'
port[1] = FDTD.AddMSLPort(1, materialList['copper sheet'], portStart, portStop, mslDir, mslEVec, excite=portExcitationAmplitude, priority=9900, R=portR*portUnits, FeedShift=3.0, MeasPlaneShift=4.0)
portNamesAndNumbersList["MSL port OUT"] = 1;
## PORT - microstrip source - MLS port IN
portStart = [ 10.6736, -26.8079, 1.54 ]
portStop = [ 14.4867, -3.45277, 0.04 ]
portR = 11
portUnits = 1
portExcitationAmplitude = 3.7 * 1
mslDir = 'y'
mslEVec = 'z'
port[2] = FDTD.AddMSLPort(2, materialList['copper sheet'], portStart, portStop, mslDir, mslEVec, excite=portExcitationAmplitude, priority=9800, R=portR*portUnits, FeedShift=1.0, MeasPlaneShift=2.0)
portNamesAndNumbersList["MLS port IN"] = 2;
## PORT - lumped port - lumpedPort_1
portStart = [ -12.8372, 9.2439, -1.7 ]
portStop = [ 3.54001, 10.6087, 0 ]
portR = 89.0
portUnits = 1
portDirection = 'z'
port[3] = FDTD.AddLumpedPort(port_nr=3, R=portR*portUnits, start=portStart, stop=portStop, p_dir=portDirection, priority=10000, excite=0)
#######################################################################################################################################
# RUN
#######################################################################################################################################
### Run the simulation
CSX_file = os.path.join(Sim_Path, Sim_CSX)
if not os.path.exists(Sim_Path):
os.mkdir(Sim_Path)
CSX.Write2XML(CSX_file)
from CSXCAD import AppCSXCAD_BIN
os.system(AppCSXCAD_BIN + ' "{}"'.format(CSX_file))
if not postprocessing_only:
FDTD.Run(Sim_Path, verbose=3, cleanup=True)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.