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
Thorsten Liebig
2e8b2b7260
Added support for background material in CSXCAD
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2013-12-03 16:02:22 +01:00
Thorsten Liebig
3930db8be3
fix for curve in cylindrical coordinates and multigrids
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2013-12-03 16:02:21 +01:00
Thorsten Liebig
3a66a02550
fix in size of lumped elements caps
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2013-08-22 12:55:27 +02:00
Thorsten Liebig
e27e4057e1
operator: make Grid_Path a typedef struct
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2013-08-16 13:19:12 +02:00
Thorsten Liebig
6c80ad021d
pml: fix in material calculation
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2013-08-16 13:16:39 +02:00
Thorsten Liebig
37246be398
operator: additional fix to FindPath
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2013-06-10 10:13:58 +02:00
Thorsten Liebig
655cb7daed
operator: fix in handling curve primitives in cylindrical coordinates
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2013-06-05 14:56:34 +02:00
Thorsten Liebig
c65b5df785
typo: replace Operator_Ext_TFST with Operator_Ext_TFSF
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2013-04-12 16:07:39 +02:00
Thorsten Liebig
b8f1184071
remove old and unused split-field pml
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2013-04-12 14:26:26 +02:00
Thorsten Liebig
4c6294dfba
fix in conducting sheet extension, missing initialization
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2013-03-31 23:04:04 +02:00
Thorsten Liebig
8d8759cb1b
Operator: add optional range to DumpPEC2File to allow for separated dump in case of a multi grid cylindrical operator
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2013-03-27 12:02:08 +01:00
Thorsten Liebig
70ff8634f4
Cylindrical MultiGrid Operator: record level of multi grid
...
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
2013-03-27 12:00:46 +01:00