CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Gmsh] discretizer - gmshToFoam

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 9, 2010, 21:41
Default discretizer - gmshToFoam
  #1
New Member
 
Andreas Jörg
Join Date: Jan 2010
Posts: 20
Rep Power: 16
Andyjoe is on a distinguished road
hello,

I tried to convert a gmsh mesh-file into an OpenFoam mesh-file. The console looked like this:
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 1.6-f802ff2d6c5a
Exec : gmshToFoam Phoenix.msh
Date : Jan 10 2010
Time : 03:31:04
Host : andreas-laptop
PID : 16992
Case : /home/andreas/discretizer/Phoenix
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Found $MeshFormat tag; assuming version 2 file format.
Starting to read points at line 5
Vertices to be read:14
Vertices read:14

Starting to read cells at line 22
Cells to be read:68

Unhandled element 15 at line 24
Unhandled element 15 at line 25
Unhandled element 15 at line 26
Unhandled element 15 at line 27
Unhandled element 15 at line 28
Unhandled element 15 at line 29
Unhandled element 15 at line 30
Unhandled element 15 at line 31
Unhandled element 1 at line 32
Unhandled element 1 at line 33
Unhandled element 1 at line 34
Unhandled element 1 at line 35
Unhandled element 1 at line 36
Unhandled element 1 at line 37
Unhandled element 1 at line 38
Unhandled element 1 at line 39
Unhandled element 1 at line 40
Unhandled element 1 at line 41
Unhandled element 1 at line 42
Unhandled element 1 at line 43
Mapping region 0 to Foam patch 0
Mapping region 0 to Foam cellZone 0
Cells:
total:24
hex :0
prism:0
pyr :0
tet :24

CellZones:
Zone Size
0 24

Skipping tag at line 93
Patch 0 gets name patch0

--> FOAM Warning :
From function polyMesh:olyMesh(... construct from shapes...)
in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 577
Found 24 undefined faces in mesh; adding to default patch.
Finding faces of patch 0

FaceZones:
Zone Size

Writing zone 0 to cellZone cellZone_0 and cellSet
End


Googling and reading this forum told me, that this are just warnings and not fatal. So I checked weather the mesh is correct with checkMesh

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create polyMesh for time = 0

Time = 0

Mesh stats
points: 14
internal points: 0
faces: 60
internal faces: 36
cells: 24
boundary patches: 2
point zones: 0
face zones: 0
cell zones: 1

Overall number of cells of each type:
hexahedra: 0
prisms: 0
wedges: 0
pyramids: 0
tet wedges: 0
tetrahedra: 24
polyhedra: 0

Checking topology...
Boundary definition OK.
Point usage OK.
Upper triangular ordering OK.
Face vertices OK.
Number of regions: 1 (OK).

Checking patch topology for multiply connected surfaces ...
Patch Faces Points Surface topology
patch0 24 14 ok (closed singly connected)
defaultFaces 0 0 ok (empty)

Checking geometry...
Overall domain bounding box (-4 -4 -4) (4 4 4)
Mesh (non-empty, non-wedge) directions (1 1 1)
Mesh (non-empty) directions (1 1 1)
Boundary openness (0 0 0) OK.
Max cell openness = 0 OK.
Max aspect ratio = 2.08008 OK.
Minumum face area = 13.8564. Maximum face area = 16. Face area magnitudes OK.
Min volume = 21.3333. Max volume = 21.3333. Total volume = 512. Cell volumes OK.
Mesh non-orthogonality Max: 19.4712 average: 18.3477
Non-orthogonality check OK.
Face pyramids OK.
Max skewness = 0.125 OK.

Mesh OK.

End


Everything seems to be OK. But when I'm opening the created PolyMesh folder with discretizer (not setup, the Binarys are called discretizer64.sh) then I cant see anything. But there is no error message. Opening the mesh with ParaView also leads to strange Results - but I'm not sure how to open a mesh with ParaView too. Perhaps the reasons are the faces, because the checkMesh routine counted 0. But I dont know how to fix this, if it would be the problem. Opening meshing with discretizer always worked well, so I dont think that the reason is a bug in discretizer.
I would be very thankful for any answer.
Andyjoe is offline   Reply With Quote

Old   January 10, 2010, 04:47
Default
  #2
New Member
 
ggruber
Join Date: May 2009
Posts: 12
Rep Power: 17
ggruber is on a distinguished road
Why didn't you try to open your gmsh mesh-file with discretizer-setup ?

Type in a Terminal in the discretizer Directory "./discretizer-setup64.sh" or "./discretizer-setup32.sh".
Open the gmsh mesh-file with the menue "File -> Import", select "gmshToFoam" and fill out the other required attributes.

To your information.
I think Discretizer and Discretizer-setup are two different programms:
Discretizer is more a geometry modeler, setting up the initial conditions and make a simulation.
Discretizer-setup is more a mesh import interface from external programs, setting up the initial conditions and make a simulation.
ggruber is offline   Reply With Quote

Old   January 10, 2010, 06:50
Default
  #3
New Member
 
Andreas Jörg
Join Date: Jan 2010
Posts: 20
Rep Power: 16
Andyjoe is on a distinguished road
Hello ggruber,

thank you for your answer. I already tried to open the convertet file with discretizer_setup. But then I get the error message "Failed to load /home... Please select OpenFoam case dir". I already have made an case dir with discretizer64, so I thougt the Problem might be, that the new mesh doesn't fit to the data in the case dir. I only know how to make a case dir from a mesh with discretizer64. Thats why I tryed to open it with discretizer 64, because it doesn't need any ready case dir.
I also tried to Import the mesh directly with discretizer_setup. In the first field I entered the name of my case dir, in the second the mesh to convert. But then again the same error message as above was displayed. So I thougt that this could be a bug, because discretizer is still under development and due to importing OpenFoam mesh files works well, I thougt it would be better to convert it with the OpenFoam tool and then read it with discretizer. Has anyone already tried to import a gmsh file directly to discretizer_setup?

Last edited by Andyjoe; January 10, 2010 at 07:40.
Andyjoe is offline   Reply With Quote

Old   January 10, 2010, 08:23
Default
  #4
New Member
 
ggruber
Join Date: May 2009
Posts: 12
Rep Power: 17
ggruber is on a distinguished road
You can contact the developer of Discretizer Björn Bergqvist via e-mail:

bjorn(dot)bergqvist(at)gmail(dot)com

Maybe he can help you.
ggruber is offline   Reply With Quote

Old   January 10, 2010, 09:36
Default
  #5
Member
 
Björn Bergqvist
Join Date: Mar 2009
Location: Gothenburg, Västra Götaland, Sweden
Posts: 43
Rep Power: 17
bjornthe is on a distinguished road
Hello,
I've only tried to import from fluent. Which use to work. Maybe there are cells with too many vertices in the resulting mesh. I've already fixed that, but it will take a couple of days before I make another release. Here is a link to the modified file:
http://www.discretizer.org/files/readpolymesh.rb
It should be placed in the discretizersetup directory.

Regards
Björn Bergqvist
__________________
________________________________________
Björn Bergqvist,
creator of Discretizer,
a free mesh generator for OpenFOAM
_________http://www.discretizer.org_____________
bjornthe is offline   Reply With Quote

Old   January 10, 2010, 10:17
Default
  #6
New Member
 
Andreas Jörg
Join Date: Jan 2010
Posts: 20
Rep Power: 16
Andyjoe is on a distinguished road
Thank you very much for this quick answer. Now I can open the case with discretizer64. But I cant work with it. When I tried to select a face, that was my terminal (inkl the reading before):
Code:
Begin reading of /home/andreas/discretizer/Phoenix
array time 0.880268573760986
points size should be 14
points input size correct (14)
faces size should be 60
faces input size correct (60)
boundary size should be 2
boundary input size correct (2)
Read of /home/andreas/discretizer/Phoenix finished
discretizer.rb:2082: warning: global variable `$mergelinemode' not initialized
failed to select in table
When I try to open the case with discretizer_setup64 the same error message as above occurs. In the terminal I get a very long text, I decided to post it all, because maybe there are some importent lines, but it is to long for this post so I have to post it in another post.

So what I get out of this is that there are some bugs which also can be due to my ruby interpreter. Has anyone some idea? Because it shouldn't be a basic bug in ruby because discretizer works at many other users.
Andyjoe is offline   Reply With Quote

Old   January 10, 2010, 10:18
Default
  #7
New Member
 
Andreas Jörg
Join Date: Jan 2010
Posts: 20
Rep Power: 16
Andyjoe is on a distinguished road
Code:
OpenFOAM Mesh Export Begins:


bctime 0.0
mergetime 0.0
replacetime0 0.0
replacetime 0.0
deletetime 0.0
bctime again 0.0
merge ended
neighbourtime 0.0
points file written in 0.0 s
owner file written in 0.0 s
neighbour file written in 0.0 s
boundary file written in 0.0 s
faces file written in 0.0 s
time for mesh1: 0.0
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  1.6                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 1.6-f802ff2d6c5a
Exec   : transformPoints -case /home/andreas/discretizer/box -scale (0.001 0.001 0.001)
Date   : Jan 10 2010
Time   : 15:58:56
Host   : andreas-laptop
PID    : 3812
Case   : /home/andreas/discretizer/box
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Scaling points by (0.001 0.001 0.001)
Writing points into directory "/home/andreas/discretizer/box/constant/polyMesh"

/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  1.6                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 1.6-f802ff2d6c5a
Exec   : renumberMesh -overwrite -case /home/andreas/discretizer/box
Date   : Jan 10 2010
Time   : 15:58:57
Host   : andreas-laptop
PID    : 3813
Case   : /home/andreas/discretizer/box
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

--> FOAM Warning : 
    From function polyMesh(const IOobject&)
    in file meshes/polyMesh/polyMesh.C at line 300
    no points in mesh
--> FOAM Warning : 
    From function polyMesh(const IOobject&)
    in file meshes/polyMesh/polyMesh.C at line 305
    no cells in mesh
// using new solver syntax:
p
{
    solver          PCG;
    tolerance       1e-06;
    relTol          0;
    preconditioner  DIC;
}

// using new solver syntax:
U
{
    solver          PBiCG;
    tolerance       1e-05;
    relTol          0;
    preconditioner  DILU;
}

// using new solver syntax:
k
{
    solver          PBiCG;
    tolerance       1e-05;
    relTol          0;
    preconditioner  DILU;
}

// using new solver syntax:
epsilon
{
    solver          PBiCG;
    tolerance       1e-05;
    relTol          0;
    preconditioner  DILU;
}

// using new solver syntax:
R
{
    solver          PBiCG;
    tolerance       1e-05;
    relTol          0;
    preconditioner  DILU;
}

// using new solver syntax:
nuTilda
{
    solver          PBiCG;
    tolerance       1e-05;
    relTol          0;
    preconditioner  DILU;
}

Mesh size: 0
Band before renumbering: 0

Reading volScalarField p
Reading volScalarField k
Reading volScalarField epsilon
Reading volScalarField nuTilda
Reading volVectorField U
Reading volTensorField R
#0  Foam::error::printStack(Foam::Ostream&) in "/home/andreas/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so"
#1  Foam::sigSegv::sigSegvHandler(int) in "/home/andreas/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so"
#2  ?? in "/lib/libc.so.6"
#3  Foam::polyTopoChange::getFaceOrder(int, Foam::List<int> const&, Foam::List<int> const&, Foam::List<int>&, Foam::List<int>&, Foam::List<int>&) const in "/home/andreas/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libdynamicMesh.so"
#4  Foam::polyTopoChange::compact(bool, bool, int&, Foam::List<int>&, Foam::List<int>&) in "/home/andreas/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libdynamicMesh.so"
#5  Foam::polyTopoChange::compactAndReorder(Foam::polyMesh const&, bool, bool, bool, int&, Foam::Field<Foam::Vector<double> >&, Foam::List<int>&, Foam::List<int>&, Foam::List<Foam::objectMap>&, Foam::List<Foam::objectMap>&, Foam::List<Foam::objectMap>&, Foam::List<Foam::objectMap>&, Foam::List<Foam::objectMap>&, Foam::List<Foam::objectMap>&, Foam::List<Foam::objectMap>&, Foam::List<Foam::objectMap>&, Foam::List<Foam::Map<int> >&, Foam::List<int>&, Foam::List<int>&, Foam::List<Foam::Map<int> >&) in "/home/andreas/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libdynamicMesh.so"
#6  Foam::polyTopoChange::changeMesh(Foam::polyMesh&, bool, bool, bool, bool) in "/home/andreas/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libdynamicMesh.so"
#7  main in "/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/renumberMesh"
#8  __libc_start_main in "/lib/libc.so.6"
#9  _start at /usr/src/packages/BUILD/glibc-2.9/csu/../sysdeps/x86_64/elf/start.S:116
/home/andreas/discretizer/ruby/1.9.1-p243/lib/ruby/1.9.1/shell.rb:59: warning: instance variable @default_system_path not initialized
/home/andreas/discretizer/ruby/1.9.1-p243/lib/ruby/1.9.1/shell.rb:71: warning: instance variable @default_record_separator not initialized
<main>: [BUG] Segmentation fault
ruby 1.9.1p243 (2009-07-16 revision 24175) [x86_64-linux]
Andyjoe is offline   Reply With Quote

Old   January 10, 2010, 10:19
Default
  #8
New Member
 
Andreas Jörg
Join Date: Jan 2010
Posts: 20
Rep Power: 16
Andyjoe is on a distinguished road
Code:
-- control frame ----------
c:0001 p:0000 s:0002 b:0002 l:0011c8 d:0011c8 TOP   
---------------------------
-- Ruby level backtrace information-----------------------------------------

-- C level backtrace information -------------------------------------------
0x7fe5d19fd151 /home/andreas/discretizer/ruby/1.9.1-p243/lib/libruby.so.1.9(rb_vm_bugreport+0x51) [0x7fe5d19fd151]
0x7fe5d192da84 /home/andreas/discretizer/ruby/1.9.1-p243/lib/libruby.so.1.9 [0x7fe5d192da84]
0x7fe5d192dbf3 /home/andreas/discretizer/ruby/1.9.1-p243/lib/libruby.so.1.9(rb_bug+0xb3) [0x7fe5d192dbf3]
0x7fe5d19aea4c /home/andreas/discretizer/ruby/1.9.1-p243/lib/libruby.so.1.9 [0x7fe5d19aea4c]
0x7fe5d16d4190 /lib/libpthread.so.0 [0x7fe5d16d4190]
0x7fe5d19b425d /home/andreas/discretizer/ruby/1.9.1-p243/lib/libruby.so.1.9(st_lookup+0x8d) [0x7fe5d19b425d]
0x7fe5d19ecd35 /home/andreas/discretizer/ruby/1.9.1-p243/lib/libruby.so.1.9 [0x7fe5d19ecd35]
0x7fe5d19ecd83 /home/andreas/discretizer/ruby/1.9.1-p243/lib/libruby.so.1.9(rb_get_method_body+0x23) [0x7fe5d19ecd83]
0x7fe5d19f913c /home/andreas/discretizer/ruby/1.9.1-p243/lib/libruby.so.1.9(rb_funcall+0x17c) [0x7fe5d19f913c]
0x7fe5cff03b81 /home/andreas/discretizer/ruby/1.9.1-p243/lib/ruby/gems/1.9.1/gems/fxruby-1.6.19/ext/fox16/fox16.so(_Z18FXRbCallVoidMethodPN2FX8FXObjectEm+0x5d) [0x7fe5cff03b81]
0x7fe5d014039a /home/andreas/discretizer/ruby/1.9.1-p243/lib/ruby/gems/1.9.1/gems/fxruby-1.6.19/ext/fox16/fox16.so(_ZN12FXRbMenuPane6recalcEv+0x40) [0x7fe5d014039a]
0x7fe5cf71ad70 /home/andreas/discretizer/fox/1.6.36/lib/libFOX-1.6.so.0(_ZN2FX8FXWindowD2Ev+0x120) [0x7fe5cf71ad70]
0x7fe5cff18bbf /home/andreas/discretizer/ruby/1.9.1-p243/lib/ruby/gems/1.9.1/gems/fxruby-1.6.19/ext/fox16/fox16.so(_ZN2FX15FXMenuSeparatorD2Ev+0x27) [0x7fe5cff18bbf]
0x7fe5cff1e5a7 /home/andreas/discretizer/ruby/1.9.1-p243/lib/ruby/gems/1.9.1/gems/fxruby-1.6.19/ext/fox16/fox16.so(_ZN17FXRbMenuSeparatorD0Ev+0x39) [0x7fe5cff1e5a7]
0x7fe5d0064da8 /home/andreas/discretizer/ruby/1.9.1-p243/lib/ruby/gems/1.9.1/gems/fxruby-1.6.19/ext/fox16/fox16.so(_ZN10FXRbObject8freefuncEPN2FX8FXObjectE+0xf4) [0x7fe5d0064da8]
0x7fe5d193c2a7 /home/andreas/discretizer/ruby/1.9.1-p243/lib/libruby.so.1.9 [0x7fe5d193c2a7]
0x7fe5d193c42f /home/andreas/discretizer/ruby/1.9.1-p243/lib/libruby.so.1.9 [0x7fe5d193c42f]
0x7fe5d193c625 /home/andreas/discretizer/ruby/1.9.1-p243/lib/libruby.so.1.9(rb_gc_call_finalizer_at_exit+0x1a5) [0x7fe5d193c625]
0x7fe5d193107e /home/andreas/discretizer/ruby/1.9.1-p243/lib/libruby.so.1.9(ruby_cleanup+0x13e) [0x7fe5d193107e]
0x7fe5d19311da /home/andreas/discretizer/ruby/1.9.1-p243/lib/libruby.so.1.9(ruby_run_node+0x3a) [0x7fe5d19311da]
0x4008ef /home/andreas/discretizer/ruby/1.9.1-p243/bin/ruby(main+0x4f) [0x4008ef]
0x7fe5d0aababd /lib/libc.so.6(__libc_start_main+0xfd) [0x7fe5d0aababd]
0x4007e9 /home/andreas/discretizer/ruby/1.9.1-p243/bin/ruby [0x4007e9]

[NOTE]
You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

./discretizer64.sh: Zeile 23:  3800 Aborted                 $DISCRETIZER/ruby/$RUBYVER/bin/ruby discretizer.rb $*
andreas@andreas-laptop:~/discretizer$ ./discretizer_setup64.sh 
(eval):5: warning: discarding old Fail
(eval):7: warning: method redefined; discarding old included
/home/andreas/discretizer/ruby/1.9.1-p243/lib/ruby/1.9.1/shell.rb:49: warning: method redefined; discarding old debug=
/home/andreas/discretizer/ruby/1.9.1-p243/lib/ruby/1.9.1/shell.rb:115: warning: method redefined; discarding old debug=
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/icoFoam
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/simpleFoam
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/rhoPorousSimpleFoam
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/rhoPimpleFoam
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/interFoam
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/solidDisplacementFoam
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/solidEquilibriumDisplacementFoam
/home/andreas/OpenFOAM/OpenFOAM-1.6/bin/paraFoam
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/foamToVTK
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/transformPoints
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/fluentMeshToFoam
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/renumberMesh
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/setFields
/home/andreas/discretizer/discretizer/svn/discretizersetup
/home/andreas/discretizer/ruby/1.9.1-p243/lib/ruby/gems/1.9.1/gems/fxruby-1.6.19/lib/fox16/responder2.rb:55:in `call': wrong number of arguments (3 for 0) (ArgumentError)
    from /home/andreas/discretizer/ruby/1.9.1-p243/lib/ruby/gems/1.9.1/gems/fxruby-1.6.19/lib/fox16/responder2.rb:55:in `onHandleMsg'
    from discretizersetup.rb:2088:in `close'
    from discretizersetup.rb:2088:in `run'
    from discretizersetup.rb:2088:in `<main>'
andreas@andreas-laptop:~/discretizer$ ./discretizer64.sh 
/home/andreas/discretizer/discretizer/svn/lib/dialogs.rb:73: warning: mismatched indentations at 'end' with 'def' at 32
/home/andreas/discretizer/discretizer/svn/lib/dialogs.rb:543: warning: mismatched indentations at 'end' with 'case' at 536
/home/andreas/discretizer/discretizer/svn/lib/dialogs.rb:1404: warning: mismatched indentations at 'end' with 'def' at 1333
/home/andreas/discretizer/discretizer/svn/lib/dialogs.rb:617: warning: method redefined; discarding old reftext
/home/andreas/discretizer/discretizer/svn/lib/dialogs.rb:617: warning: method redefined; discarding old reftext=
/home/andreas/discretizer/ruby/1.9.1-p243/lib/ruby/1.9.1/mathn.rb:46: warning: method redefined; discarding old **
/home/andreas/discretizer/ruby/1.9.1-p243/lib/ruby/1.9.1/mathn.rb:57: warning: method redefined; discarding old **
/home/andreas/discretizer/ruby/1.9.1-p243/lib/ruby/1.9.1/mathn.rb:191: warning: method redefined; discarding old sqrt
/home/andreas/discretizer/discretizer/svn/lib/cross.rb:252: warning: mismatched indentations at 'end' with 'def' at 227
/home/andreas/discretizer/discretizer/svn/lib/mesh.rb:1734: warning: mismatched indentations at 'end' with 'if' at 1725
/home/andreas/discretizer/discretizer/svn/lib/mesh.rb:1737: warning: mismatched indentations at 'end' with 'if' at 1722
/home/andreas/discretizer/discretizer/svn/lib/mesh.rb:2326: warning: mismatched indentations at 'end' with 'if' at 2300
/home/andreas/discretizer/discretizer/svn/lib/mesh.rb:2331: warning: mismatched indentations at 'end' with 'if' at 2249
/home/andreas/discretizer/discretizer/svn/lib/mesh.rb:2777: warning: shadowing outer local variable - xind
/home/andreas/discretizer/discretizer/svn/lib/mesh.rb:2803: warning: shadowing outer local variable - xind
/home/andreas/discretizer/discretizer/svn/lib/mesh.rb:2865: warning: shadowing outer local variable - tmpx
/home/andreas/discretizer/discretizer/svn/lib/mesh.rb:2884: warning: shadowing outer local variable - tmpy
/home/andreas/discretizer/discretizer/svn/lib/mesh.rb:2917: warning: shadowing outer local variable - xind
/home/andreas/discretizer/discretizer/svn/lib/mesh.rb:3421: warning: mismatched indentations at 'end' with 'def' at 3402
/home/andreas/discretizer/discretizer/svn/lib/csysline.rb:56: warning: mismatched indentations at 'end' with 'def' at 32
/home/andreas/discretizer/discretizer/svn/lib/infoline.rb:148: warning: mismatched indentations at 'end' with 'def' at 64
/home/andreas/discretizer/discretizer/svn/lib/infoline.rb:181: warning: mismatched indentations at 'end' with 'case' at 170
/home/andreas/discretizer/discretizer/svn/lib/infoline.rb:345: warning: mismatched indentations at 'end' with 'if' at 343
/home/andreas/discretizer/discretizer/svn/lib/infoface.rb:734: warning: mismatched indentations at 'end' with 'case' at 342
/home/andreas/discretizer/discretizer/svn/lib/infoface.rb:754: warning: mismatched indentations at 'end' with 'def' at 341
/home/andreas/discretizer/discretizer/svn/lib/readstl.rb:84: warning: mismatched indentations at 'end' with 'def' at 48
(eval):5: warning: discarding old Fail
(eval):7: warning: method redefined; discarding old included
/home/andreas/discretizer/ruby/1.9.1-p243/lib/ruby/1.9.1/shell.rb:49: warning: method redefined; discarding old debug=
/home/andreas/discretizer/ruby/1.9.1-p243/lib/ruby/1.9.1/shell.rb:115: warning: method redefined; discarding old debug=
array time 0.411099672317505
/home/andreas/discretizer/discretizer/svn/lib/dialogs.rb:364: warning: method redefined; discarding old flipdircheck
/home/andreas/discretizer/discretizer/svn/lib/dialogs.rb:792: warning: method redefined; discarding old flipdircheck
/home/andreas/discretizer/discretizer/svn/lib/dialogs.rb:799: warning: method redefined; discarding old twistedcheck
/home/andreas/discretizer/discretizer/svn/lib/dialogs.rb:860: warning: method redefined; discarding old flipdircheck
/home/andreas/discretizer/discretizer/svn/lib/dialogs.rb:913: warning: method redefined; discarding old flipdircheck
/home/andreas/discretizer/ruby/1.9.1-p243/lib/ruby/1.9.1/shell.rb:59: warning: instance variable @default_system_path not initialized
/home/andreas/discretizer/ruby/1.9.1-p243/lib/ruby/1.9.1/shell.rb:71: warning: instance variable @default_record_separator not initialized
no input file
Begin reading of /home/andreas/discretizer/box
array time 0.879354476928711
Please select the root dir, not the polymesh folder
Read of /home/andreas/discretizer/box finished
Begin reading of /home/andreas/discretizer/box
array time 0.884512424468994
Please select the root dir, not the polymesh folder
Read of /home/andreas/discretizer/box finished
Begin reading of /home/andreas/discretizer/box/constant/polyMesh
array time 0.880270004272461
Please select the root dir, not the polymesh folder
Read of /home/andreas/discretizer/box/constant/polyMesh finished
Begin reading of /home/andreas/discretizer/Phoenix
array time 0.880268573760986
points size should be 14
points input size correct (14)
faces size should be 60
faces input size correct (60)
boundary size should be 2
boundary input size correct (2)
Read of /home/andreas/discretizer/Phoenix finished
discretizer.rb:2082: warning: global variable `$mergelinemode' not initialized
failed to select in table
<main>: [BUG] Segmentation fault
ruby 1.9.1p243 (2009-07-16 revision 24175) [x86_64-linux]

-- control frame ----------
c:0001 p:0000 s:0002 b:0002 l:000d78 d:000d78 TOP   
---------------------------
-- Ruby level backtrace information-----------------------------------------

-- C level backtrace information -------------------------------------------
0x7fb09f0a2151 /home/andreas/discretizer/ruby/1.9.1-p243/lib/libruby.so.1.9(rb_vm_bugreport+0x51) [0x7fb09f0a2151]
0x7fb09efd2a84 /home/andreas/discretizer/ruby/1.9.1-p243/lib/libruby.so.1.9 [0x7fb09efd2a84]
0x7fb09efd2bf3 /home/andreas/discretizer/ruby/1.9.1-p243/lib/libruby.so.1.9(rb_bug+0xb3) [0x7fb09efd2bf3]
0x7fb09f053a4c /home/andreas/discretizer/ruby/1.9.1-p243/lib/libruby.so.1.9 [0x7fb09f053a4c]
0x7fb09ed79190 /lib/libpthread.so.0 [0x7fb09ed79190]
0x7fb09f05925d /home/andreas/discretizer/ruby/1.9.1-p243/lib/libruby.so.1.9(st_lookup+0x8d) [0x7fb09f05925d]
0x7fb09f091d35 /home/andreas/discretizer/ruby/1.9.1-p243/lib/libruby.so.1.9 [0x7fb09f091d35]
0x7fb09f091d83 /home/andreas/discretizer/ruby/1.9.1-p243/lib/libruby.so.1.9(rb_get_method_body+0x23) [0x7fb09f091d83]
0x7fb09f09e13c /home/andreas/discretizer/ruby/1.9.1-p243/lib/libruby.so.1.9(rb_funcall+0x17c) [0x7fb09f09e13c]
0x7fb09d5a8b81 /home/andreas/discretizer/ruby/1.9.1-p243/lib/ruby/gems/1.9.1/gems/fxruby-1.6.19/ext/fox16/fox16.so(_Z18FXRbCallVoidMethodPN2FX8FXObjectEm+0x5d) [0x7fb09d5a8b81]
0x7fb09d7e539a /home/andreas/discretizer/ruby/1.9.1-p243/lib/ruby/gems/1.9.1/gems/fxruby-1.6.19/ext/fox16/fox16.so(_ZN12FXRbMenuPane6recalcEv+0x40) [0x7fb09d7e539a]
0x7fb09cdbfd70 /home/andreas/discretizer/fox/1.6.36/lib/libFOX-1.6.so.0(_ZN2FX8FXWindowD2Ev+0x120) [0x7fb09cdbfd70]
0x7fb09d5a95a7 /home/andreas/discretizer/ruby/1.9.1-p243/lib/ruby/gems/1.9.1/gems/fxruby-1.6.19/ext/fox16/fox16.so(_ZN15FXRbMenuCommandD0Ev+0x9f) [0x7fb09d5a95a7]
0x7fb09d709da8 /home/andreas/discretizer/ruby/1.9.1-p243/lib/ruby/gems/1.9.1/gems/fxruby-1.6.19/ext/fox16/fox16.so(_ZN10FXRbObject8freefuncEPN2FX8FXObjectE+0xf4) [0x7fb09d709da8]
0x7fb09efe12a7 /home/andreas/discretizer/ruby/1.9.1-p243/lib/libruby.so.1.9 [0x7fb09efe12a7]
0x7fb09efe142f /home/andreas/discretizer/ruby/1.9.1-p243/lib/libruby.so.1.9 [0x7fb09efe142f]
0x7fb09efe1625 /home/andreas/discretizer/ruby/1.9.1-p243/lib/libruby.so.1.9(rb_gc_call_finalizer_at_exit+0x1a5) [0x7fb09efe1625]
0x7fb09efd607e /home/andreas/discretizer/ruby/1.9.1-p243/lib/libruby.so.1.9(ruby_cleanup+0x13e) [0x7fb09efd607e]
0x7fb09efd61da /home/andreas/discretizer/ruby/1.9.1-p243/lib/libruby.so.1.9(ruby_run_node+0x3a) [0x7fb09efd61da]
0x4008ef /home/andreas/discretizer/ruby/1.9.1-p243/bin/ruby(main+0x4f) [0x4008ef]
0x7fb09e150abd /lib/libc.so.6(__libc_start_main+0xfd) [0x7fb09e150abd]
0x4007e9 /home/andreas/discretizer/ruby/1.9.1-p243/bin/ruby [0x4007e9]

[NOTE]
You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

./discretizer64.sh: Zeile 23:  3901 Aborted                 $DISCRETIZER/ruby/$RUBYVER/bin/ruby discretizer.rb $*
andreas@andreas-laptop:~/discretizer$ ./discretizer_setup64.sh 
(eval):5: warning: discarding old Fail
(eval):7: warning: method redefined; discarding old included
/home/andreas/discretizer/ruby/1.9.1-p243/lib/ruby/1.9.1/shell.rb:49: warning: method redefined; discarding old debug=
/home/andreas/discretizer/ruby/1.9.1-p243/lib/ruby/1.9.1/shell.rb:115: warning: method redefined; discarding old debug=
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/icoFoam
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/simpleFoam
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/rhoPorousSimpleFoam
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/rhoPimpleFoam
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/interFoam
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/solidDisplacementFoam
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/solidEquilibriumDisplacementFoam
/home/andreas/OpenFOAM/OpenFOAM-1.6/bin/paraFoam
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/foamToVTK
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/transformPoints
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/fluentMeshToFoam
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/renumberMesh
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/setFields
/home/andreas/discretizer/discretizer/svn/discretizersetup
points size should be 14
points input size correct (14)
faces size should be 60
faces input size correct (60)
owner size should be 60
owner2 size 1 size2 145
owner3[0] 60
owner input size correct (60)
cellZone_0
name patch0, btype patch, nfaces 24, startface 36
name defaultFaces, btype patch, nfaces 0, startface 60
/home/andreas/discretizer/ruby/1.9.1-p243/lib/ruby/gems/1.9.1/gems/fxruby-1.6.19/lib/fox16/responder2.rb:55:in `call': wrong number of arguments (3 for 0) (ArgumentError)
    from /home/andreas/discretizer/ruby/1.9.1-p243/lib/ruby/gems/1.9.1/gems/fxruby-1.6.19/lib/fox16/responder2.rb:55:in `onHandleMsg'
    from discretizersetup.rb:2088:in `close'
    from discretizersetup.rb:2088:in `run'
    from discretizersetup.rb:2088:in `<main>'
andreas@andreas-laptop:~/discretizer$ ./discretizer_setup64.sh 
(eval):5: warning: discarding old Fail
(eval):7: warning: method redefined; discarding old included
/home/andreas/discretizer/ruby/1.9.1-p243/lib/ruby/1.9.1/shell.rb:49: warning: method redefined; discarding old debug=
/home/andreas/discretizer/ruby/1.9.1-p243/lib/ruby/1.9.1/shell.rb:115: warning: method redefined; discarding old debug=
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/icoFoam
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/simpleFoam
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/rhoPorousSimpleFoam
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/rhoPimpleFoam
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/interFoam
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/solidDisplacementFoam
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/solidEquilibriumDisplacementFoam
/home/andreas/OpenFOAM/OpenFOAM-1.6/bin/paraFoam
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/foamToVTK
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/transformPoints
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/fluentMeshToFoam
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/renumberMesh
/home/andreas/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/setFields
/home/andreas/discretizer/discretizer/svn/discretizersetup
points size should be 14
points input size correct (14)
faces size should be 60
faces input size correct (60)
owner size should be 60
owner2 size 1 size2 145
owner3[0] 60
owner input size correct (60)
cellZone_0
name patch0, btype patch, nfaces 24, startface 36
name defaultFaces, btype patch, nfaces 0, startface 60
Andyjoe is offline   Reply With Quote

Old   January 10, 2010, 11:07
Default
  #9
Member
 
Björn Bergqvist
Join Date: Mar 2009
Location: Gothenburg, Västra Götaland, Sweden
Posts: 43
Rep Power: 17
bjornthe is on a distinguished road
Hello,
you have no cubes defined in discretizer. Only cubes (named cX where X is a integer). Select 6 faces, then create->cube.

regards
Björn Bergqvist
__________________
________________________________________
Björn Bergqvist,
creator of Discretizer,
a free mesh generator for OpenFOAM
_________http://www.discretizer.org_____________
bjornthe is offline   Reply With Quote

Old   January 10, 2010, 16:59
Default
  #10
Member
 
Björn Bergqvist
Join Date: Mar 2009
Location: Gothenburg, Västra Götaland, Sweden
Posts: 43
Rep Power: 17
bjornthe is on a distinguished road
Quote:
Originally Posted by bjornthe View Post
Only cubes (named cX where X is a integer).
What I meant is that only Cubes will be exported as volume mesh (in Discretizer).

Regards
Björn Bergqvist
__________________
________________________________________
Björn Bergqvist,
creator of Discretizer,
a free mesh generator for OpenFOAM
_________http://www.discretizer.org_____________
bjornthe is offline   Reply With Quote

Old   May 10, 2011, 02:50
Default Problems setting case directory
  #11
New Member
 
Erlend Grotle
Join Date: Jan 2010
Posts: 2
Rep Power: 0
erlendg is on a distinguished road
Dear Björn,

I think I am struggling with somewhat the same issue. I am trying to convert a .msh file into OpenFoam readable mesh. To do so I tried with the elbow case in OpenFoam tutorials, in icoFoam folder. I am trying to import mesh into discretizer setup and choosing gmshToFoam. However I get an error each time about the OpenFoam case directory chosen. My question is simply, what directory shall I choose, as with the elbow case ?

Rgds,
Erlend
erlendg is offline   Reply With Quote

Old   May 10, 2011, 07:06
Default
  #12
Member
 
Björn Bergqvist
Join Date: Mar 2009
Location: Gothenburg, Västra Götaland, Sweden
Posts: 43
Rep Power: 17
bjornthe is on a distinguished road
An empty directory would be fine.

Regards
__________________
________________________________________
Björn Bergqvist,
creator of Discretizer,
a free mesh generator for OpenFOAM
_________http://www.discretizer.org_____________
bjornthe is offline   Reply With Quote

Old   October 20, 2011, 12:28
Default import 2D UNV mesh with Discretizer::Setup
  #13
New Member
 
Pierre
Join Date: Oct 2011
Posts: 15
Rep Power: 14
pilafa is on a distinguished road
Hi,
Similar issue here when importing a 2D mesh with Discretizer::Setup. I have the:

"Failed to load /home... Please select OpenFoam case dir" ...message.

I try to convert a .unv mesh created with Salome.

Note that I created a very simple 2D mesh and very simple 3D mesh (the 3D works fine). Here is the mesh:

Code:
    -1
  2411
         1         0         0        11
   5.0000000000000000E-01   5.0000000000000000E-01   0.0000000000000000E+00
         2         0         0        11
   5.0000000000000000E-01  -5.0000000000000000E-01   0.0000000000000000E+00
         3         0         0        11
  -5.0000000000000000E-01   5.0000000000000000E-01   0.0000000000000000E+00
         4         0         0        11
  -5.0000000000000000E-01  -5.0000000000000000E-01   0.0000000000000000E+00
    -1
    -1
  2412
         1        11         2         1         7         2
         0         0         0
         3         4
         2        11         2         1         7         2
         0         0         0
         4         2
         3        11         2         1         7         2
         0         0         0
         2         1
         4        11         2         1         7         2
         0         0         0
         1         3
         5        41         2         1         7         3
         3         4         2
         6        41         2         1         7         3
         2         1         3
    -1
The console says:

Code:
points size should be 4
points input size correct (4)
I use the latest version available on the wesite.
Any suggestions?

Thanks,
PL
pilafa is offline   Reply With Quote

Old   March 14, 2012, 04:35
Default
  #14
New Member
 
logan
Join Date: Feb 2012
Posts: 10
Rep Power: 14
wolverine is on a distinguished road
Quote:
Originally Posted by bjornthe View Post
An empty directory would be fine.

Regards
i cannot find import option ..... its hidden ........ can u please guide me how to import fluent case into dicretizer

thanks in advance
krishnaraja88@gmail.com
wolverine is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Gmsh] Cell to node connectivity after 'gmshToFoam' Jibran OpenFOAM Meshing & Mesh Conversion 1 June 8, 2015 09:09
[Gmsh] gmshTofoam pbm with cyclicAMI acahuzac OpenFOAM Meshing & Mesh Conversion 2 October 20, 2014 03:53
[Gmsh] gmshToFoam command mvinassa OpenFOAM Meshing & Mesh Conversion 1 April 25, 2014 07:36
Runing cavity on Discretizer RTom OpenFOAM Pre-Processing 3 June 25, 2013 01:11
[Discretizer] Discretizer Rajshekar OpenFOAM Community Contributions 2 November 23, 2010 11:13


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