Hi
,
I have been recently attempting to utilize the Drogues in an already validated Telemac 3D model for tracking water particles. I have studied the relevant instructions for the Drogues feature in the Telemac 3D user manual and made some modifications to the Fortran files based on the particles case in Telemac 3D.
During this process, I initially encountered a problem when my .cas file had the keywords GEOGRAPHIC SYSTEM = 1,
SPHERICAL COORDINATES = YES,
and SPATIAL PROJECTION TYPE = 3.
It was evident that the coordinate system of my Geometry file was in latitude and longitude. Therefore, instinctively, I initially wrote the X, Y, and Z coordinates in latitude and longitude format, corresponding to the ADD_PARTICLE function in the user_flot3d.f file. However, this behavior resulted in errors similar to "PARTICLE OUT OF THE DOMAIN" in the model's log.
Later, I found a related post on Telemac forum, which suggested that even if the Geometry file is read in latitude and longitude coordinates, they would be converted to Mercator projection during the Telemac equation solving process. Thus, when I wrote the X, Y, and Z coordinates in the user_flot3d.f file in the form of Mercator projection, the model ran smoothly.
However, a second issue arose as a result. Since the X, Y, and Z coordinates in the user_flot3d.f file were in Mercator projection form, the X coordinate was 13510346.D0, and the Y coordinate was 3907241.D0. When outputting the Drogues ASCII file, the X coordinate appeared as an asterisk (*). It is evident that the character length of the X coordinate exceeds 15. Therefore, I would like to ask if there is a solution or idea to this problem?
TITLE = "DROGUES FILE"
VARIABLES = "LABELS","X ","Y ","ELEVATION Z M ","COLOUR"
ZONE DATAPACKING=POINT, T="G_ 90.0000 SECONDS", I= 1, SOLUTIONTIME= 90.0000
1,****************,3907233.50000000, -10.87856960, 1
ZONE DATAPACKING=POINT, T="G_ 180.0000 SECONDS", I= 1, SOLUTIONTIME= 180.0000
1,****************,3907227.00000000, -10.75167179, 1
ZONE DATAPACKING=POINT, T="G_ 270.0000 SECONDS", I= 1, SOLUTIONTIME= 270.0000
1,****************,3907221.25000000, -10.63509560, 1
ZONE DATAPACKING=POINT, T="G_ 360.0000 SECONDS", I= 2, SOLUTIONTIME= 360.0000
1,****************,3907215.75000000, -10.52756119, 1
10,****************,3907234.75000000, -10.88938141, 1
The attachments are the .cas file of the model, the user_flot3d.f file, and the Drogues output ASCII file.
Best regards, Oliver.