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/)
-   -   [cfMesh] Problem with edgeMeshRefinement in cfMesh (https://www.cfd-online.com/Forums/openfoam-community-contributions/158080-problem-edgemeshrefinement-cfmesh.html)

rakue August 14, 2015 10:15

Problem with edgeMeshRefinement in cfMesh
 
4 Attachment(s)
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)

franjo_j August 20, 2015 16:11

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

romainRH August 27, 2015 09:32

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

franjo_j August 28, 2015 05:35

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

romainRH August 28, 2015 06:38

Hi Franjo,

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

Regards


All times are GMT -4. The time now is 21:33.