[Archive] Error in CEXinteractor

Message by Guilhem Chanteperdrix:
Hi,
I’m working on the CEX study. I’ve put one thruster (Xe+) and one cathod on a spacecraft. Without the CEXinteractor, the simulation works very well but when I turn on the CEXinteractor, there’s an error message :

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at spis.Util.io.Introspection.getUIDefinedInstance(Unknown Source)
at spis.Top.Simulation.SimulationFromUIParams.init(Unknown Source)
at spis.Top.Simulation.SimulationFromUIParams.(Unknown Source)
at spis.Top.Top.NumTopFromUI.(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.python.core.PyReflectedConstructor.call(PyReflectedConstructor.java)
at org.python.core.PyJavaInstance.init(PyJavaInstance.java)
at org.python.core.PyJavaClass.call(PyJavaClass.java)
at org.python.core.PyObject.call(PyObject.java)
at Bin.JyTop4$py.BuildSim$3(D:\Documents\lupini\Spis3_7RC09\ThirdPart\Jython\jython-2.1…\SpisUI\Bin\JyTop4.py:361)
at Bin.JyTop4$py.call_function(D:\Documents\lupini\Spis3_7RC09\ThirdPart\Jython\jython-2.1…\SpisUI\Bin\JyTop4.py)
at org.python.core.PyTableCode.call(PyTableCode.java)
at org.python.core.PyTableCode.call(PyTableCode.java)
at org.python.core.PyFunction.call(PyFunction.java)
at org.python.core.PyInstance.invoke(PyInstance.java)
at Bin.SpisNumCaller$py.BuildSim$6(D:\Documents\lupini\Spis3_7RC09\ThirdPart\Jython\jython-2.1…\SpisUI\Bin\SpisNumCaller.py:175)
at Bin.SpisNumCaller$py.call_function(D:\Documents\lupini\Spis3_7RC09\ThirdPart\Jython\jython-2.1…\SpisUI\Bin\SpisNumCaller.py)
at org.python.core.PyTableCode.call(PyTableCode.java)
at org.python.core.PyTableCode.call(PyTableCode.java)
at org.python.core.PyFunction.call(PyFunction.java)
at org.python.core.PyInstance.invoke(PyInstance.java)
at Bin.Tasks.TaskJyTop$py.run$9(D:\Documents\zxsysatos002\SPIS\Spis3_7RC09\ThirdPart\Jython\jython-2.1…\SpisUI\Bin\Tasks\TaskJyTop.py:168)
at Bin.Tasks.TaskJyTop$py.call_function(D:\Documents\zxsysatos002\SPIS\Spis3_7RC09\ThirdPart\Jython\jython-2.1…\SpisUI\Bin\Tasks\TaskJyTop.py)
at org.python.core.PyTableCode.call(PyTableCode.java)
at org.python.core.PyTableCode.call(PyTableCode.java)
at org.python.core.PyFunction.call(PyFunction.java)
at org.python.core.PyInstance.invoke(PyInstance.java)
at threading$py._Thread__bootstrap$45(/home/max/Spis2.99.05/SpisUI/…/ThirdPart/Jython/jython-2.1/Lib/threading.py:378)
at threading$py.call_function(/home/max/Spis2.99.05/SpisUI/…/ThirdPart/Jython/jython-2.1/Lib/threading.py)
at org.python.core.PyTableCode.call(PyTableCode.java)
at org.python.core.PyTableCode.call(PyTableCode.java)
at org.python.core.PyTableCode.call(PyTableCode.java)
at org.python.core.PyFunction.call(PyFunction.java)
at org.python.core.PyMethod.call(PyMethod.java)
at org.python.core.PyObject.call(PyObject.java)
at org.python.modules.FunctionThread.run(thread.java)
Caused by: java.lang.ClassCastException: java.lang.Float
at spis.Top.Default.GlobalParameter.getValueAsInt(Unknown Source)
at spis.Vol.VolInteract.CEXInteractor.(Unknown Source)
… 43 more
Error in building volume interactor: Exception at spis.Vol.VolInteract.CEXInteractor instantiation
Parameter scenario not found in global parameter list = returning default value
I don’t know where is the error.
Thanks you very much for your help.
Jonathan

Message by Jean-Francois Roussel:
Hi,
it might be at the instantiation of the CEXInteractor.
Did you spell it correctly in global parameters:parameter volInteract = “CEXInteractor” (case sensitive) ?

JFR

Message by Guilhem Chanteperdrix:
Thanks you for your answer !
The parameter1VolInteract is the fraction of neutral ejected of the source and the parameter2VolInteract is the temperature of the neutral if I’m right. I don’t know what is the parameter3VolInteract but in volInteractType it’s written “CEXInteractor”.

Message by Bjarne Andersson:

Hi Jonathan.
I had a similar issue with the CEX when I modelled FEEPs back in 2007 (that was with SPIS 3.6). Back than CEX part of the code did only cover the CEX generation for Cesium (Cs+). I don’t know if the CEX part of the code has been updated since then (JFR will know) but you can easily find out if you try Cs+ instead of Xe+.
Best,
Bjarne

Message by Guilhem Chanteperdrix:
Hi Bjarne !
I’ve read your article about FEED thrusters for LISA Pathfinder and it found it very useful.
I’ve tried with SPIS 3.6 and the CEXInteractor works very well. Thanks you for your help.
I think there’s a bug in the third part of the version 3_7RC09. Even with Cs+, the CEXInteractor doesn’t work.
I have an another question about the spacecraft potential. When I put on sources and cathods on the spacecraft, the sc. potential doesn’t converge and it’s different from the floating potential.
Did you put the sources and the cathods on the same electric node (which is different from the ground node) ?
Thanks you very much.
Jonathan

Message by Matias Wartelski:
We have been able to solve this error in SPIS4.0 win32: in the UI, in the GlobalParameters module, in the Volume Interactors tab, “parameter3VolInteract” is a float by default. However, the code is expecting an integer here (see manual “Controlling Num from UI”), so just choose “int” instead of “float” and it should work.
Matias

Message by Jean-Charles Mateo-Velez:
Hello,
you are right Matias.
In next spis releases the “parameter3VolInteract” will be int by default.