CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Structural Mechanics

Running salome-meca from a java script

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   October 9, 2013, 06:44
Default Running salome-meca from a java script
  #1
New Member
 
Heinz Becker
Join Date: Oct 2013
Posts: 1
Rep Power: 0
Iche_Bins is on a distinguished road
Hi,
I hope that Salome-meca Problem fits in here. There is unfortunately no salome forum so i hope that one is fine. The Code Aster Forum ignores my registration requests so I hope you can help me here.





I have a Java program, running on an xfce machine, which is supposed to run the whole process from creating the geometry to performing the FEM operation in one go.
It can already build the geometry and mesh without a problem. I also have the aster code in place. I can actually run the FEM calculation by manually running a small program named test2.sh with the following code in it:

Quote:
/home/ofuser/salome/appli_V6_6_0/runSession as_run --run /home/ofuser/salome/Test/Test.export
It will open an aster environment in a separate folder, copy all necessary input files and start the calculations.
The results look like this:

Quote:

--------------------------------------------------------------------------------

Code_Aster execution

<INFO> prepare environment in /tmp/ofuser-debianSimulation-interactif.803
adding a symbolic link /tmp/ofuser-debianSimulation-interactif.803/aster to /home/ofuser/salome/SALOME-MECA-2013.2-LGPL/tools/Code_aster_frontend_1131final/../Code_aster_stable/share/aster/../../bin/aster...
[ OK ]
<INFO> no catalogue found for language 'en', use standard (fr) one...
adding a symbolic link /tmp/ofuser-debianSimulation-interactif.803/Python/Cata/cata.py to /home/ofuser/salome/SALOME-MECA-2013.2-LGPL/tools/Code_aster_frontend_1131final/../Code_aster_stable/share/aster/../../lib/python2.6/site-packages/Cata/cata.py...
[ OK ]
copying .../aster/elements... [ OK ]

--------------------------------------------------------------------------------
Copying datas

copying .../Test/Rohr.med... [ OK ]
copying .../Test/Rohr.comm... [ OK ]
<INFO> Parameters : memory 2056 MB - time limit 900 s
[...]
Now if I run the same program test2.sh with the command sh test.sh or by directly using the command line by executing my java programm the calculation wont start.
The whole program stops right before copying Rohr.med and Rohr.comm without any error messages. The output looks identical to the one above till the line "Copying datas"


So in conclusion, the program works when run form console, but not when run from java.

Does anybody have an idea what causes that problem, or how I can get a more detailed output so that I can find out what’s wrong here?
Iche_Bins is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
script file for running fluent on linux cluster Worth FLUENT 2 February 9, 2012 11:31
Statically Compiling OpenFOAM Issues herzfeldd OpenFOAM Installation 21 January 6, 2009 09:38
Kubuntu uses dash breaks All scripts in tutorials platopus OpenFOAM Bugs 8 April 15, 2008 07:52
Running script files without opening grafic inter Jim CFX 0 March 21, 2006 06:57
script for running star Celia CD-adapco 8 December 2, 2004 22:46


All times are GMT -4. The time now is 12:06.