CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Pre-Processing (
-   -   Values cannot be altered (

tangd May 22, 2006 09:04

I have a problem to set the va
I have a problem to set the values of entries, like U, epsilon and so on. No matter what kind of data I input, I am alway told that "number xxx not of correct type". So eachtime I have to refer to "nedit xxx" to type the values. Can anyone explain me how to fix this problem? Thanks in advance!

mattijs May 23, 2006 05:04

This is in FoamX? Check this s
This is in FoamX? Check this site for LANG settings for java. (some languages use ',', some use '.' in floating point numbers)

tangd May 23, 2006 06:34

Yes, this problem took place w
Yes, this problem took place when I was editting within FoamX. Even I didn't change anything but only click on the entry field, it will complain the same as I reset the value. That would be the java problem. Could you please give me more information? Thanks!

Plus I attached the complain message:

e7gast@flux1 > FoamX.Exceptions.FoamXException: Number 0 not of correct type.
at FoamX.Editors.DictionaryEntryEditor.EntryCache.Sca larCache.updateValue(ScalarCac
at FoamX.Editors.DictionaryEntryEditor.DictionaryEntr yCellEditor.getCellEditorValue (
at javax.swing.JTable.editingStopped( )
at javax.swing.AbstractCellEditor.fireEditingStopped(
at javax.swing.DefaultCellEditor$EditorDelegate.stopC ellEditing(DefaultCellEditor.j ava:329)
at javax.swing.DefaultCellEditor.stopCellEditing(Defa
at FoamX.Editors.DictionaryEntryEditor.DictionaryEntr yCellEditor.stopCellEditing(Di
at javax.swing.JTable.editCellAt(
at javax.swing.plaf.basic.BasicTableUI$MouseInputHand ler.adjustFocusAndSelection(Ba
at javax.swing.plaf.basic.BasicTableUI$MouseInputHand ler.mousePressed(BasicTableUI. java:494)
at java.awt.AWTEventMulticaster.mousePressed(AWTEvent
at java.awt.Component.processMouseEvent(Component.jav a:5097)
at java.awt.Component.processEvent( 7)
at java.awt.Container.processEvent( 9)
at java.awt.Component.dispatchEventImpl(Component.jav a:3615)
at java.awt.Container.dispatchEventImpl(Container.jav a:1627)
at java.awt.Component.dispatchEvent( 77)
at java.awt.LightweightDispatcher.retargetMouseEvent(
at java.awt.LightweightDispatcher.processMouseEvent(C
at java.awt.LightweightDispatcher.dispatchEvent(Conta
at java.awt.Container.dispatchEventImpl(Container.jav a:1613)
at java.awt.Window.dispatchEventImpl( )
at java.awt.Component.dispatchEvent( 77)
at java.awt.EventQueue.dispatchEvent( 456)
at java.awt.EventDispatchThread.pumpOneEventForHierar chy( 01)
at java.awt.EventDispatchThread.pumpEventsForHierarch y( )
at java.awt.EventDispatchThread.pumpEvents(EventDispa
at java.awt.EventDispatchThread.pumpEvents(EventDispa

mattijs May 25, 2006 05:10

As said: Check this site for '
As said: Check this site for 'LANG'

tangd May 29, 2006 03:07

Thanks for your tips. Yes, the
Thanks for your tips. Yes, the problem originates from 'LANG', actually the language setting. Now I solved it by simply typing command "export LANG=en_EN". It works properly now. Thanks again!

All times are GMT -4. The time now is 09:32.