CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[cfMesh] Problem with edgeMeshRefinement in cfMesh

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 14, 2015, 11:15
Default Problem with edgeMeshRefinement in cfMesh
  #1
New Member
 
Ralf Kuehn
Join Date: Mar 2009
Posts: 4
Rep Power: 17
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, 78 views)
File Type: jpg refinementEdges.jpg (16.2 KB, 76 views)
File Type: jpg afterTemplateGeneration.jpg (67.3 KB, 74 views)
Attached Files
File Type: zip geoFiles.zip (6.6 KB, 19 views)
rakue is offline   Reply With Quote

Old   August 20, 2015, 17:11
Default
  #2
Senior Member
 
Franjo Juretic
Join Date: Aug 2011
Location: Velika Gorica, Croatia
Posts: 124
Rep Power: 16
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 and CF-MESH+
www.cfmesh.com
Social media: LinkedIn, Twitter, YouTube, Facebook, Pinterest, Instagram
franjo_j is offline   Reply With Quote

Old   August 27, 2015, 10:32
Default
  #3
New Member
 
romainRH
Join Date: Jul 2012
Posts: 24
Rep Power: 13
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, 06:35
Default
  #4
Senior Member
 
Franjo Juretic
Join Date: Aug 2011
Location: Velika Gorica, Croatia
Posts: 124
Rep Power: 16
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 and CF-MESH+
www.cfmesh.com
Social media: LinkedIn, Twitter, YouTube, Facebook, Pinterest, Instagram
franjo_j is offline   Reply With Quote

Old   August 28, 2015, 07:38
Default
  #5
New Member
 
romainRH
Join Date: Jul 2012
Posts: 24
Rep Power: 13
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 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
[Other] engineFoam new mesh problem ayhan515 OpenFOAM Meshing & Mesh Conversion 5 August 10, 2015 09:45
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 05:43
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 06:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 07:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 20:13


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