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

TOPIC: t3s ascii mesh file decimal places in BK 3.12.16-alpha

BK 3.12.16 - alpha 5 months 3 weeks ago #44824

  • konsonaut
  • konsonaut's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 413
  • Thank you received: 144
Hi Alan,

Really great work!

Recently I run into the following issue:
in the t3s ascii mesh file the first two node columns (x and y) have always 6 decimal places. It seems that the third column allows for max. 7 digits only.
This means when we create a mesh for a domain which e.g. is situated above 1000 masl, there are only 2 decimal places left in the representation of the bottom. Hence, the user has to shift the domain to a lower altitude in order to model the bottom accurately.

Please, may I request to allow for 8 digits in the third column in order to have a millimeter accuracy in such cases? In my view this seems enough unless a user has a domain which is located higher than the Mt Everest.

Best regards,
Clemens
The administrator has disabled public write access.

BK 3.12.16 - alpha 5 months 3 weeks ago #44832

  • a.barton
  • a.barton's Avatar
  • OFFLINE
  • Moderator
  • Posts: 683
  • Thank you received: 178
Moving off of BK 3.12.16 - alpha post

Thank you B)

Could you let me know the steps to reproduce? I just saved a binary t3s as a single frame ASCII t3s using BK 3.12.16-alpha and there are 15 places after the decimal... maybe you are doing something different than what I just tried...

Kindly... Alan
The administrator has disabled public write access.

BK 3.12.16 - alpha 5 months 3 weeks ago #44834

  • konsonaut
  • konsonaut's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 413
  • Thank you received: 144
Hi Alan,

I'm using BlueKenue version 3.3.4.

Enclosed an outline with 4 points: two points with z=1500.005, two points with z=1500.000
1) Create Triangulation with the outline
2) Save the triangulation as ASCII t3s file
3) Re-open the t3s file in BlueKenue or with a Text Editor
-> z=1500.005 is rounded to 1500.01

Best regards,
Clemens
The administrator has disabled public write access.

BK 3.12.16 - alpha 5 months 3 weeks ago #44835

  • konsonaut
  • konsonaut's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 413
  • Thank you received: 144
Enclosed the file.
Please, rename the extension to i3s
Attachments:
The administrator has disabled public write access.

BK 3.12.16 - alpha 5 months 3 weeks ago #44837

  • a.barton
  • a.barton's Avatar
  • OFFLINE
  • Moderator
  • Posts: 683
  • Thank you received: 178
I'll start at the beginning and improve *.i2s, *.i3s and *.pcl ASCII file outputs so that they are all the same...

thanks for letting me know about this

Kindly... Alan
The administrator has disabled public write access.

BK 3.12.16 - alpha 5 months 3 weeks ago #44838

  • a.barton
  • a.barton's Avatar
  • OFFLINE
  • Moderator
  • Posts: 683
  • Thank you received: 178
Actually, out of curiosity, I tried creating a triangulation and writing it to a file using BK 3.12.16-alpha. I get the following which seems ok:
############################################################################
:FileType t3s  ASCII  EnSim 1.0
# File structure National Research Council Canada © 1998-2024
############################################################################
# DataType    2D T3 Scalar Mesh
#
:Application  BlueKenue
:Version      3.12.16
:WrittenBy    Bartona  # potential owner of the data
:CreationTime 2024/05/28 13:33:41.000
#---------------------------------------------------------------------------
#
:NoDataValue -999
:AttributeCount 1
:AttributeName 1 Value
:AttributeType 1 double 
:AttributeCapacityHint 1 5
#
:CurrentAttribute 1 # AJB: experimental
#
#
:SourceFile   
:NodeCount 5
:ElementCount 3
:ElementType  T3
#
:EndHeader
19.053000000000633 34.104999999999997 1500.005000000000100
28.842000000000322 52.526000000000003 1500.005000000000100
28.842000000000414 52.526000000000003 1500.005000000000100
38.316000000000479 27.789000000000001 1500.000000000000000
47.368000000000904 48.631999999999998 1500.000000000000000
1 4 3
1 3 2
3 4 5
The administrator has disabled public write access.

BK 3.12.16 - alpha 5 months 3 weeks ago #44852

  • a.barton
  • a.barton's Avatar
  • OFFLINE
  • Moderator
  • Posts: 683
  • Thank you received: 178
I take back my comment: "I get the following which seems ok" and replace it with:

There is an extra point! I will get rid of it... stay tuned... Alan
The administrator has disabled public write access.

BK 3.12.16 - alpha 5 months 3 weeks ago #44853

  • a.barton
  • a.barton's Avatar
  • OFFLINE
  • Moderator
  • Posts: 683
  • Thank you received: 178
Yes... definitely a bug. Now fixed.

Here's what the triangulation looks like now:
############################################################################
:FileType t3s  ASCII  EnSim 1.0
# File structure National Research Council Canada © 1998-2024
############################################################################
# DataType    2D T3 Scalar Mesh
#
:Application  BlueKenue
:Version      3.12.17
:WrittenBy    Bartona  # potential owner of the data
:CreationTime 2024/05/30 09:49:49.000
#---------------------------------------------------------------------------
#
:NoDataValue -999
:AttributeCount 1
:AttributeName 1 Value
:AttributeType 1 double 
:AttributeCapacityHint 1 4
#
:CurrentAttribute 1 # AJB: experimental
#
#
:NodeCount 4
:ElementCount 2
:ElementType  T3
#
:EndHeader
19.053000000000718 34.104999999999997 1500.005000000000100
28.842000000000237 52.526000000000003 1500.005000000000100
38.316000000000166 27.789000000000001 1500.000000000000000
47.368000000000542 48.631999999999998 1500.000000000000000
1 3 2
2 3 4

I'll try to build and share a new alpha today; with this and a couple of few other fixes too...

Kindly... Alan
The administrator has disabled public write access.

BK 3.12.16 - alpha 5 months 3 weeks ago #44855

  • a.barton
  • a.barton's Avatar
  • OFFLINE
  • Moderator
  • Posts: 683
  • Thank you received: 178
BK 3.12.17 - alpha is now available with this fix
The administrator has disabled public write access.

BK 3.12.16 - alpha 5 months 3 weeks ago #44840

  • a.barton
  • a.barton's Avatar
  • OFFLINE
  • Moderator
  • Posts: 683
  • Thank you received: 178
And, as per Mesh Resolution Post, the precision will be within 9.99e-13 of the original input point used for the triangulation.

Kindly... Alan
The administrator has disabled public write access.
The following user(s) said Thank You: konsonaut
  • Page:
  • 1
  • 2
Moderators: Serrer, a.barton

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