G. L
ee3f2b7d80
Lumped RLC parallel & series implementation (openEMS) ( #121 )
2023-11-18 12:23:15 +01:00
Thorsten Liebig
568cdbdfac
PML: try to fix pml working for a finite conductor waveguide
...
sigma > 1000 S/m is considered a conductor (not ideal solution)
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2023-03-08 22:10:30 +01:00
Thorsten Liebig
b49bd2af80
MT engine: fix threads not cleaned up, #104
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2023-02-11 10:43:28 +01:00
Thorsten Liebig
6673aefd70
engine: try to find optimal number of engine threads
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2023-01-06 20:01:07 +01:00
Thorsten Liebig
e52babccbf
MSVC: fix for windows compiler
...
Signed-off-by: Thorsten Liebig <liebig@imst.de>
2022-12-29 13:08:44 +01:00
luz paz
026f12355f
Fix various typos
...
Found via `codespell -q 3 -L adress,imag`
2022-12-11 11:32:04 +01:00
Thorsten Liebig
d260025a6d
numeric: make sure that LC_NUMERIC is set to en_US for function parser
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2022-05-31 20:09:43 +02:00
Thorsten Liebig
46f4084555
fix line integral calc
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2021-09-07 16:56:08 +02:00
Thorsten Liebig
bad842a710
voltage probes: better voltage integration with direction
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2021-08-25 19:05:11 +02:00
Thorsten Liebig
9017d91594
excitation setup speedup
...
* get all excitation primitives inside a yz-slice only
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2020-11-22 19:08:07 +01:00
Thorsten Liebig
fbfccc4110
adaptations for win32 with MSVC
...
* missing __declspec import/export for openEMS.dll/nf2ff.dll creation
* SEE2 needs __m128 and operators (see tools/array_ops.h)
* array creation needs new/delete for compile time unknown sizes
* no gettimeofday and Winsock2 instead of sys/time
* missing math defines
Signed-off-by: Thorsten Liebig <liebig@imst.de>
2019-12-30 17:12:51 +01:00
Thorsten Liebig
6dfc05e9fe
fix formatting
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2018-11-17 18:29:26 +01:00
radioactive
3a2af34bce
don't segfault due to null pointer when handling dispersive materials (Lorentz/Debye). if(prop==NULL) continue;
2018-09-13 23:21:16 -07:00
Thorsten Liebig
cc5a709e74
make excitation setup a void function if nothing is returned
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2018-06-24 10:13:28 +02:00
Thorsten Liebig
ba4c5c5cce
Merge branch 'fix_ambigous_isnan' of https://github.com/StefanBruens/openEMS
2018-03-27 20:41:38 +02:00
Stefan Brüns
da8137f90d
Fix build error due to ambigous overload of isnan/isinf
...
In case the code is build with -std=c++11, there may be conflicting
definitions of isnan/isinf vs std::isnan/std::isinf, due to the using
namespace std directive.
This happens for glibc versions 2.25 and older, see
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48891 for details.
Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
2018-03-27 03:57:22 +02:00
Stefan Brüns
a5a1dca832
Guard xmmintrin.h include so it is only used when necessary
...
The x86/SSE specific code for Flush-To-Zero is only used when
SSE_CORRECT_DENORMALS is not defined. Guarding the include allows the
code to compile on e.g. ARM.
Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
2018-03-27 03:26:21 +02:00
Thorsten Liebig
a8c0d0bede
FDTD: fix sse/sse_compressed engine creation
...
ref. 6353c70a
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2018-01-04 10:06:29 +01:00
Thorsten Liebig
6133dea5b0
add field processing for electric and magnetic flux densities
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2017-05-28 12:01:04 +02:00
Thorsten Liebig
ff6920f3a8
FDTD: fix excitation signal length calculation and handling
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2017-02-11 18:17:54 +01:00
Georg Michel
d8677b100d
forgot an << endl;
2016-12-10 14:06:42 +01:00
Georg Michel
b32cf1fb62
clarified a warning for MPI
2016-12-10 12:35:36 +01:00
Thorsten Liebig
ab682cc0bd
A few fixes for MPI
...
main.cpp:
1. Check return value of ParseFDTDSetup and exit if false
2. Use exit instead of return. These are almost identical. But
in my OpenMPI installation the process with teh highes rank
segfaults at the end when using return. This is not the case
with exit. Probably some C++ cleanup problem (destructors).
openems.cpp:
Give Parse_XML_FDTDSetup a deterministic return value.
openems_fdtd_mpi.cpp:
1. Remove the word "only" in an error message because there can
also be too many processes.
2. Fix the indexing variables for SetSplitPos in SetupMPI. Otherwise
more than one split results in an out-of-range exception and
unexpected behavior.
RunOpenEMS_MPI.m:
Apply Settings.MPI.GlobalArgs also to multi-host scenarios.
2016-12-02 19:03:35 +01:00
Dmitry Roshchin
5b2f5352eb
#if check for vtk >= 6
2016-03-21 11:35:36 +03:00
Thorsten Liebig
add2f2decb
fix wrong time step for cylinder mesh with r=0
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2016-02-18 22:58:07 +01:00
Thorsten Liebig
d5cbfec2be
MPI: fix FDTD setup for non-MPI
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2016-01-31 13:32:17 +01:00
Thorsten Liebig
d75069cfef
MPI: update for MPI usage
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2016-01-27 18:37:07 +01:00
Thorsten Liebig
8ff7ed4075
split openEMS into libopenEMS and openEMS binary
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2015-12-19 15:01:56 +01:00
Thorsten Liebig
6140b07c47
main: more flexible FDTD setup
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2015-12-13 22:33:26 +01:00
Thorsten Liebig
5cce4185df
improve excitation handling for periodic signals
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2015-09-06 10:19:01 +02:00
Thorsten Liebig
9c80672855
excitation: store only 2 periods of periodic excitations
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2015-09-03 22:53:31 +02:00
Thorsten Liebig
b2f5ab3c6b
improved steady state detection
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2015-09-03 22:35:14 +02:00
Thorsten Liebig
0f9f0fd830
fix: do not increase timestep to match periodic signal, only decreasing is ok!
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2015-09-03 21:25:49 +02:00
Thorsten Liebig
f06cc293dc
remove using namespace std from header files
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2015-06-18 21:45:22 +02:00
Thorsten Liebig
29ffbb66ab
cmake: improve build system and support win32
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2015-05-19 22:13:28 +02:00
Thorsten Liebig
cd1db5d21b
operator: new steady state detection operator extension
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2015-05-04 20:47:19 +02:00
Thorsten Liebig
63adb586fb
remove unused code from SSE compressed operator
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2014-10-27 23:09:11 +01:00
Thorsten Liebig
ac3dff8818
operator: speed improvement using a primitive pre-selection
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2014-10-19 21:59:39 +02:00
Thorsten Liebig
22d526f0ee
engine interface: improve interpolation for e-fields on boundary edges
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2014-10-09 21:08:11 +02:00
Thorsten Liebig
dae788a2a4
cmake: cleanup, build type for nf2ff
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2014-10-09 21:06:36 +02:00
Guilherme Brondani Torri
480e6c430f
add CMake to openEMS
2014-09-18 21:12:50 +02:00
Thorsten Liebig
6da9213e62
initial support for vtk 6.x
...
run qmake with vtk-version given, e.g.:
qmake VTK_6_VERSION=6.1
or put this in localPaths.pri
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2014-01-29 14:51:00 +01:00
Thorsten Liebig
6f6ed4feac
critical fix: use new Operator->GetEngine for engine interface setup
...
Bug fix: engine interfaces for multigrids were using subgrid operator,
but main grid engine...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2014-01-06 16:08:13 +01:00
Thorsten Liebig
6353c70ae5
Operator: new method to get corresponding engine
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2014-01-06 15:40:39 +01:00
Thorsten Liebig
3d66de64d8
Engine interface: check for valid operator and engine
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2014-01-06 15:37:43 +01:00
Thorsten Liebig
3fc2a41af9
operator: change how to average material to allow for overloaded cylindrical handling
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2013-12-28 21:02:49 +01:00
Thorsten Liebig
87b6650f67
fix and improvemnt in getting cell center coordinate for material averaging
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2013-12-28 20:57:31 +01:00
Thorsten Liebig
dcf2e8c0cf
Operator: get access to cell center material averaging coordinates
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2013-12-20 15:48:04 +01:00
Thorsten Liebig
6a683d93d5
operator: add density as material type
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2013-12-20 15:47:28 +01:00
Thorsten Liebig
6892a0c589
support for multigrid level request of dump boxes
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2013-12-19 15:15:36 +01:00