Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Element type Error with validation cases

Element type Error with validation cases 11 years 10 months ago #6957

  • Cfd
  • Cfd 's Avatar
I have been using sel2vtk with success on some of my models to convert selafin format to vtk. Unfortunately, this is not working with all the models. For example with the validation cases wessel, i have thé error {only triangle and wedge}. I did look at the fortran code and it seems only the element type 3 and 6 are accepted.

Is there a fix to this issue ? And how do you control which kind of element types you create when meshing ?

Thanks.
The administrator has disabled public write access.

Element type Error with validation cases 11 years 10 months ago #6959

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi

I don't know about the error.
Is the error comes from the conversion step or the loading in paraview?

About the type of elements in telemac, 3 is for triangles (Telemac-2D) and 6 is for prisms (Telemac-3D)

Regards
Christophe
The administrator has disabled public write access.

Element type Error with validation cases 11 years 10 months ago #6960

  • Cfd
  • Cfd 's Avatar
The error comes from the conversion with the sel2vtk.f90 code. It seems that for the wessel case, the elements kind are 1 and so the conversion stops.
The administrator has disabled public write access.

Element type Error with validation cases 11 years 10 months ago #6961

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
OK

Did you tried you convert the geometry file or the reference file?

In my mind, there is no kind of elements equal to 1 in telemac.
But as this test case is also compatible with untrim, maybe there is a link to this error ...
Christophe
The administrator has disabled public write access.

Element type Error with validation cases 11 years 10 months ago #6962

  • Cfd
  • Cfd 's Avatar
I tried to convert the result file. In the sel2vtk.f90 code it is specified that you have to use a selafin file with the velocities in order to work.
The administrator has disabled public write access.

Element type Error with validation cases 11 years 10 months ago #6963

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
So it should also works with the reference file ...
Christophe
The administrator has disabled public write access.

Element type Error with validation cases 11 years 10 months ago #6964

  • Cfd
  • Cfd 's Avatar
It is indeed working with the f2d_wessel.slf file but not with the result file.
The administrator has disabled public write access.

Element type Error with validation cases 11 years 10 months ago #6966

  • Cfd
  • Cfd 's Avatar
I asked the sel2vtk.f90 to print what it is reading in the selafin file
print*nelement 'npoint' elementtype

the result is 1900 1 1.
I now think instead of reading the mesh elements, the program reads a null date 1900/01/01.

I have no idea why.
The administrator has disabled public write access.

Element type Error with validation cases 11 years 10 months ago #6967

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
OK
I suppose this fortran file didn't manage the case when the date exist in the selafin file.
You could correct it.
Search for the read of 10 integer and if the number 10 is equal to 1, add a read for 6 more integer (which represents the date of the start of simulation 3 integer for the date (year, month and day) and 3 integer for the time (hour, minutes and seconds).

Hope this helps
Christophe
The administrator has disabled public write access.

Element type Error with validation cases 11 years 10 months ago #6968

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Just checking in the distribution
there is a source file sel2vtk_new.f90 which manage the date.
I think you could use it instead of sel2vtk.f90

regards
Christophe
The administrator has disabled public write access.
  • Page:
  • 1
  • 2

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.