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

Problem with edgeMeshRefinement in cfMesh

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 14, 2015, 10:15
Default Problem with edgeMeshRefinement in cfMesh
  #1
New Member
 
Ralf Kuehn
Join Date: Mar 2009
Posts: 4
Rep Power: 9
rakue is on a distinguished road
In preparation for a bigger task, I start some tests with cfMesh (cartesianMesh) and its edgeMeshRefinement feature.
I set up a rather simple geoemtry (see stlGeometry.jpg) and tried to refine the mesh along 8 lines going from the corners of a quad to its center (see refinementEdges.jpg).
The strange result of my experiment was, that the mesh was refined only along a single of the 8 lines (see afterTemplateGeneration.jpg, I stopped the meshing procedure after the generation of the template).
Doing some additional tests with different coordinates, it seems that the start and end points of the lines used for refinement must have a positive delta x, y and z.

Question: Is this a bug or are my dictionaries faulty?

Thanks in advance

(I attached all necessary files to reproduce my test in geoFiles.zip)
Attached Images
File Type: jpg stlGeometry.jpg (12.1 KB, 36 views)
File Type: jpg refinementEdges.jpg (16.2 KB, 37 views)
File Type: jpg afterTemplateGeneration.jpg (67.3 KB, 36 views)
Attached Files
File Type: zip geoFiles.zip (6.6 KB, 9 views)
rakue is offline   Reply With Quote

Old   August 20, 2015, 16:11
Default
  #2
Senior Member
 
Franjo Juretic
Join Date: Aug 2011
Location: Velika Gorica, Croatia
Posts: 114
Rep Power: 9
franjo_j is on a distinguished road
Send a message via Skype™ to franjo_j
Hi,

The problem that the edges must be oriented in the positive direction was indeed a bug, and the solution for the problem is already available in the development branch of the git repository together with some additional fixes.
Regarding the crash, please submit a ticket at the Sourceforge site together with an example such that we can reproduce it.

Regards,

Franjo Juretic
__________________
Principal Developer of cfMesh
www.cfmesh.com
Social media: LinkedIn, Twitter, YouTube, Google+, Facebook, Pinterest
franjo_j is offline   Reply With Quote

Old   August 27, 2015, 09:32
Default
  #3
New Member
 
romainRH
Join Date: Jul 2012
Posts: 23
Rep Power: 6
romainRH is on a distinguished road
Hi franjo_j,

First I 'd like to thank you for the job done on cfMesh, I am sure I will be able to run fine simulation with OpenFOAM soon and I am really happy with that.

I also have troubles with the edgeMeshRefinement option. I am not sure if I should open a new thread or not, but I used the test case provided by rakue so I think it is ok to continue here.


I am using cfMesh 1.1 on w7.
I run the test case of rakue and get the following error:

Code:
--> FOAM FATAL IO ERROR:
incorrect first token, expected <int> or '(', found on line 1 the word '#'

file: geoEdges.vtk at line 1.

    From function operator>>(Istream&, List<T>&)
    in file C:/CreativeFields-ofo/OpenFOAM/foam-extend-3.1/src/foam/lnInclude/OF__ListIO.C at line 149.
Apparently cfMesh was not able to read the file geoEdges.vtk and crash at the first line.

Can I use an other file format such as eMesh or obj ?
Also if it is a bug only for windows I can switch to unix.

Best regards,

Romain
romainRH is offline   Reply With Quote

Old   August 28, 2015, 05:35
Default
  #4
Senior Member
 
Franjo Juretic
Join Date: Aug 2011
Location: Velika Gorica, Croatia
Posts: 114
Rep Power: 9
franjo_j is on a distinguished road
Send a message via Skype™ to franjo_j
Hi Romain,

By looking at the error message, the problem is in foam-extend-3.1 that we use in the installation package. You shall be able to use .eMesh, .vtk and .obj formats. This looks like a problem with the reader of the edge mesh. I have tested the feature with OpenFOAM-2.3.0 and it works as expected.
Due to other problems reported by rakue, we have also made some additional fixes to the feature after the 1.1 release, and they are available in the development branch of the cfMesh's git repository at SourceForge.
The simplest way to solve your problems is to checkout the latest code from the git repository and compile it with OpenFOAM-2.x, and it will work as expected.
We will correct the feature with the next release of cfMesh that will be available in the next couple of days.

Regards,

Franjo
__________________
Principal Developer of cfMesh
www.cfmesh.com
Social media: LinkedIn, Twitter, YouTube, Google+, Facebook, Pinterest
franjo_j is offline   Reply With Quote

Old   August 28, 2015, 06:38
Default
  #5
New Member
 
romainRH
Join Date: Jul 2012
Posts: 23
Rep Power: 6
romainRH is on a distinguished road
Hi Franjo,

I will try the latest code on git. Thank you for the information.

Regards
romainRH 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
engineFoam new mesh problem ayhan515 OpenFOAM Meshing & Mesh Conversion 5 August 10, 2015 08:45
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 04:43
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 05:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13


All times are GMT -4. The time now is 01:39.