CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (http://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Values cannot be altered (http://www.cfd-online.com/Forums/openfoam-pre-processing/62192-values-cannot-altered.html)

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 he.java:172)
at FoamX.Editors.DictionaryEntryEditor.DictionaryEntr yCellEditor.getCellEditorValue (DictionaryEntryCellEditor.java:131)
at javax.swing.JTable.editingStopped(JTable.java:3166 )
at javax.swing.AbstractCellEditor.fireEditingStopped( AbstractCellEditor.java:124)
at javax.swing.DefaultCellEditor$EditorDelegate.stopC ellEditing(DefaultCellEditor.j ava:329)
at javax.swing.DefaultCellEditor.stopCellEditing(Defa ultCellEditor.java:214)
at FoamX.Editors.DictionaryEntryEditor.DictionaryEntr yCellEditor.stopCellEditing(Di ctionaryEntryCellEditor.java:150)
at javax.swing.JTable.editCellAt(JTable.java:2510)
at javax.swing.plaf.basic.BasicTableUI$MouseInputHand ler.adjustFocusAndSelection(Ba sicTableUI.java:510)
at javax.swing.plaf.basic.BasicTableUI$MouseInputHand ler.mousePressed(BasicTableUI. java:494)
at java.awt.AWTEventMulticaster.mousePressed(AWTEvent Multicaster.java:222)
at java.awt.Component.processMouseEvent(Component.jav a:5097)
at java.awt.Component.processEvent(Component.java:489 7)
at java.awt.Container.processEvent(Container.java:156 9)
at java.awt.Component.dispatchEventImpl(Component.jav a:3615)
at java.awt.Container.dispatchEventImpl(Container.jav a:1627)
at java.awt.Component.dispatchEvent(Component.java:34 77)
at java.awt.LightweightDispatcher.retargetMouseEvent( Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(C ontainer.java:3195)
at java.awt.LightweightDispatcher.dispatchEvent(Conta iner.java:3128)
at java.awt.Container.dispatchEventImpl(Container.jav a:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606 )
at java.awt.Component.dispatchEvent(Component.java:34 77)
at java.awt.EventQueue.dispatchEvent(EventQueue.java: 456)
at java.awt.EventDispatchThread.pumpOneEventForHierar chy(EventDispatchThread.java:2 01)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:151 )
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:100)

mattijs May 25, 2006 05:10

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

http://www.cfd-online.com/OpenFOAM_D...ages/1/77.html

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:50.