CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [Helyx OS] Helyx-OS (GUI for SnappyHexMesh (https://www.cfd-online.com/Forums/openfoam-community-contributions/105284-helyx-os-gui-snappyhexmesh.html)

rrr311 June 26, 2013 13:06

Quote:

Originally Posted by chegdan (Post 436163)
Remember, HELYX-OS v1.0.2 is made to work with OpenFOAM-2.2.x.

I see that your error massage made reference to ThirdParty-2.1.x. If you would like to continue to use 2.1.x and HELYX-OS then you should download the previous version with this link.


Oh is that so. Thank you for replying so quickly. I'll try downloading the previous version and will get back to you :D.

rrr311 June 26, 2013 13:12

Quote:

java -Xms128m -Xmx1024m -XX:OnError="/home/suse/OpenFOAM/Engys/HelyxOS/v1.0.1/bin/collectInfo.run" -jar /home/suse/OpenFOAM/Engys/HelyxOS/v1.0.1/lib/HelyxOS.jar HelyxOS 2>&1 | tee /home/suse/OpenFOAM/Engys/HelyxOS/v1.0.1/helyxEE.log
vtkHybridJava NOT loaded: /home/suse/OpenFOAM/Engys/HelyxOS/v1.0.1/ext/libvtkHybridJava.so.5.10.0: libmpi.so.1: cannot open shared object file: No such file or directory
java.lang.UnsatisfiedLinkError: /home/suse/OpenFOAM/Engys/HelyxOS/v1.0.1/ext/libvtkHybridJava.so.5.10.0: libmpi.so.1: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.jav a:1807)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java :1732)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at eu.engys.helyx.vtk.VTKUtil.loadLibrary(VTKUtil.jav a:94)
at eu.engys.helyx.vtk.VTKUtil.LoadAllNativeLibraries( VTKUtil.java:70)
at eu.engys.helyx.gui.Launcher.main(Launcher.java:43)
Make sure the search path is correct:
/home/suse/OpenFOAM/Engys/HelyxOS/jre/lib/amd64/server:/home/suse/OpenFOAM/Engys/HelyxOS/jre/lib/amd64:/home/suse/OpenFOAM/Engys/HelyxOS/jre/../lib/amd64:/home/suse/OpenFOAM/Engys/HelyxOS/v1.0.1/ext:/home/suse/OpenFOAM/Engys/HelyxOS/v1.0.1/../jre/lib/amd64/xawt:/home/suse/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc46/paraview-3.12.0/lib/paraview-3.12:/home/suse/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64Gcc46DPOpt/lib/openmpi-system:/home/suse/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc46DPOpt/lib/openmpi-system:found:not:command:mpicc:/home/suse/OpenFOAM/suse-2.1.x/platforms/linux64Gcc46DPOpt/lib:/home/suse/OpenFOAM/site/2.1.x/platforms/linux64Gcc46DPOpt/lib:/home/suse/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64Gcc46DPOpt/lib:/home/suse/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc46DPOpt/lib:/home/suse/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64Gcc46DPOpt/lib/dummy:found:not:command:mpicc:bash:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
:eek:

I installed HelyxOSv1.0.1 and this the error message. Any thoughts on this sir?

chegdan June 26, 2013 14:35

This was noted earlier in this thread I beleive and also located on the HELYX-OS installation page here. Depending on your operting system this error can be fixed by
Code:

ln -s $MPI_ARCH_PATH/lib/libmpi.so $MPI_ARCH_PATH/lib/libmpi.so.1
and in some, the 64 bit distribution will require instead
Code:

ln -s $MPI_ARCH_PATH/lib64/libmpi.so $MPI_ARCH_PATH/lib64/libmpi.so.1

rrr311 June 26, 2013 14:45

Oh. Is the following line supposed to appear in the error:

/home/suse/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64Gcc46DPOpt/lib/dummy:found:not:command:mpicc:bash

I got the same error when I ran it with v1.0.2.

Thanks a lot for your help Mr. chegdan

chegdan June 26, 2013 14:54

Lets back up a bit. How did you install OpenFOAM and the Thirdparty libs on your machine? I strongly suggest compiling them instead of just installing binaries or packages.

rrr311 June 26, 2013 14:58

Well I have no idea how to do that... lol :confused:

My company installed OpenFOAM and the Thirdparty Tools for me in VMware... I was just trying to install HelyxOS so that I can start working on it...

COC July 20, 2013 08:16

Hello, I get the problem that I cannot Import .STL.I don't know how to deal with it. can anyone help me?
Ubutu 12.04-64bit OpenFOAM 2.2.1 HELYX-os 1.0.3


code
asawa@ubuntu:~/OpenFOAM/Engys/HelyxOS/v1.0.3$ ./helyxOS.sh
java -Xms128m -Xmx1024m -XX:OnError="/home/asawa/OpenFOAM/Engys/HelyxOS/v1.0.3/bin/collectInfo.run" -jar /home/asawa/OpenFOAM/Engys/HelyxOS/v1.0.3/lib/HelyxOS.jar HelyxOS 2>&1 | tee /home/asawa/OpenFOAM/Engys/HelyxOS/v1.0.3/helyxEE.log
WRITE: blockMeshDict -> /home/asawa/OpenFOAM/Model/newCase/system/blockMeshDict
WRITE: snappyHexMeshDict -> /home/asawa/OpenFOAM/Model/newCase/system/snappyHexMeshDict
WRITE: controlDict -> /home/asawa/OpenFOAM/Model/newCase/system/controlDict
WRITE: fvSchemes -> /home/asawa/OpenFOAM/Model/newCase/system/fvSchemes
WRITE: fvSolution -> /home/asawa/OpenFOAM/Model/newCase/system/fvSolution
WRITE: fvOptions -> /home/asawa/OpenFOAM/Model/newCase/system/fvOptions
WRITE: decomposeParDict -> /home/asawa/OpenFOAM/Model/newCase/system/decomposeParDict
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f45329cf761, pid=47522, tid=139934819063552
#
# JRE version: 7.0_11-b21
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.6-b04 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libvtkFiltering.so.5.10+0x281761] vtkMergePoints::InsertUniquePoint(double const*, long long&)+0xe1
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/asawa/OpenFOAM/Engys/HelyxOS/v1.0.3/hs_err_pid47522.log
#
# -XX:OnError=""/home/asawa/OpenFOAM/Engys/HelyxOS/v1.0.3/bin/collectInfo.run""
# Executing /bin/sh -c ""/home/asawa/OpenFOAM/Engys/HelyxOS/v1.0.3/bin/collectInfo.run"" ...
CollectInfo.main()/home/asawa/OpenFOAM/Engys/HelyxOS/v1.0.3
Exception in thread "main" java.util.FormatFlagsConversionMismatchException: Conversion = s, Flags = #
at java.util.Formatter$FormatSpecifier.failMismatch(F ormatter.java:4041)
at java.util.Formatter$FormatSpecifier.printString(Fo rmatter.java:2834)
at java.util.Formatter$FormatSpecifier.print(Formatte r.java:2718)
at java.util.Formatter.format(Formatter.java:2494)
at java.util.Formatter.format(Formatter.java:2423)
at java.lang.String.format(String.java:2797)
at eu.engys.core.CollectInfo.printFile(CollectInfo.ja va:291)
at eu.engys.core.CollectInfo.listDir(CollectInfo.java :274)
at eu.engys.core.CollectInfo.getLibInfo(CollectInfo.j ava:255)
at eu.engys.core.CollectInfo.main(CollectInfo.java:85 )

wyldckat July 21, 2013 05:49

Greetings Tim and welcome to the forum!

In what format is the STL file in? ASCII/Text or binary?

And have you read the following thread at the official discussion forum for Helyx-OS? http://sourceforge.net/p/helyx-os/di...read/4c35e4ec/

Best regards,
Bruno

PS: when posting code/output, please use the "[CODE]" marker as explained in my second signature line ;)

COC July 21, 2013 07:59

Quote:

Originally Posted by wyldckat (Post 441008)
Greetings Tim and welcome to the forum!

In what format is the STL file in? ASCII/Text or binary?

And have you read the following thread at the official discussion forum for Helyx-OS? http://sourceforge.net/p/helyx-os/di...read/4c35e4ec/

Best regards,
Bruno

PS: when posting code/output, please use the "[CODE]" marker as explained in my second signature line ;)

Dear Bruno
I tried ASCII format and it worked finally.thank you very much.

izna July 31, 2013 04:44

refining the mesh using Helyx-os
 
Hi everyone,

I am a new user of Helyx-os.

I have been able to set up case where i import my .stl file.
But i am not able to refine it.

example, i used the tutorial in HELYX-OS, ie the CSTR tutorial, there it contain its .stl file along with an eMesh file.

Can somone please explain how to create an emesh file?

please be patient, i am new user in openfoam and also in HELYX-OS.

Kind regards
izna

chegdan July 31, 2013 17:43

Izna,

This can be done using the surfaceFeatureExtract utility. Assuming you are using 2.2.x, create a file called surfaceFeatureExtractDict in the case system directory. An example of a surfaceFeatureExtractDict is here but I have made a simple one:

Code:

/*--------------------------------*- C++ -*----------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  2.2.1                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version    2.0;
    format      ascii;
    class      dictionary;
    object      surfaceFeatureExtractDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

NameOfStlFile.stl
{
    // How to obtain raw features (extractFromFile || extractFromSurface)
    extractionMethod    extractFromSurface;

    extractFromSurfaceCoeffs
    {
        // Mark edges whose adjacent surface normals are at an angle less
        // than includedAngle as features
        // - 0  : selects no edges
        // - 180: selects all edges
        includedAngle  180;
    }

    // Write options

        // Write features to obj format for postprocessing
        writeObj                no;
}

// ************************************************************************* //

After you have changed the name of the STL file in in your dictionary to match the actual STL file of your geometry, you can execute

Code:

surfaceFeatureExtract
in your case directory. The generated eMesh (located in the same directory as your STL files) file can then be used in HELYX-OS. I have given some steps to add the eMesh file to HELYX-OS in a presentation I gave at the last workshop located here. You can also look at other presentations at the conference, including a talk on snappyHexMesh here. I hope this helps and good luck.

izna August 5, 2013 01:45

Hello Dan,
Thanks a lot for your reply.

if i wish to mesh it finer, or in certain parts finer, can i simply copy this https://github.com/OpenFOAM/OpenFOAM...ureExtractDictand modify?

chegdan August 5, 2013 10:41

Izna,

To mesh finer then you would need to change the "levels" near the surface. If you are on the surface regions tab, highlight the surface you wish to modify and change the min and max levels. Higher numbers will create a finer mesh. Also, you can make the base mesh size smaller to make a finer mesh overall. Please see

A Comprehensive Tour of SnappyHexMesh

Advanced Preprocessing and Meshing with SnappyHexMesh

izna August 6, 2013 06:02

hi..


after creating a case in Helyx-os, i found an error.

Quote:


blockMesh: command not found
snappyHexMesh: commad not found.
can anyone please tell me what should i do?

izna August 14, 2013 09:27

Quote:

SOLVER: simpleFoam
/home/izna/Desktop/Askerveindan/solver.run: line 7: simpleFoam: command not found


I am using HelyxOS , when i run my case, i get this error!! what should i do?

Regards
Izna

chegdan August 14, 2013 09:49

Izna,

So this problem tells me that either OpenFOAM isn't sourced correctly or there is an issue with your install of HELYX-OS. This can happen sometimes so its an annoying error :) Some questions:
  • Does OpenFOAM work correctly outside of HELYX-OS
  • Do the variables created when OpenFOAM is initialized exist? I.e. what does the following produce
    Code:

    echo $WM_PROJECT_DIR
  • Have you run cases outside of HELYX-OS?
  • If you open a terminal and type
    Code:

    foamInstallationTest
    does this return an OK?

These are just a few things that come to mind

izna August 14, 2013 09:54

hi Dan.
Thanks to comee at my aid..

command returns this

Quote:

/opt/openfoam220

outside of HElyxOS i use openfoam normally without any problems

Quote:

If you open a terminal and type
Code:
foamInstallationTest
does this return an OK?

well when i do this i get this
Quote:

izna@izna-MS-7592:~$ foamInstallationTest
Executing /opt/openfoam220/bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------

FATAL ERROR: OpenFOAM environment not configured.

Please refer to the installation section of the README file:
<OpenFOAM installation dir>/OpenFOAM-2.2.0/README
to source the OpenFOAM environment.


chegdan August 14, 2013 10:00

Ah ok...did you follow the "User Configuration" Section on

http://openfoam.org/download/ubuntu.php

To add some lines to your .bashrc file in your home directory?

izna August 14, 2013 10:08

yes i did ..

But i am unistall and do it all again..:( i will post back.

izna August 14, 2013 13:10

hi Dan
After reinstalling Openfoam following this example http://openfoam.org/download/ubuntu.php

I obtain the same error when executing foamInstallationTest
Quote:

Executing /opt/openfoam221/bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------

FATAL ERROR: OpenFOAM environment not configured.

Please refer to the installation section of the README file:
<OpenFOAM installation dir>/OpenFOAM-2.2.1/README
to source the OpenFOAM environment.




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