Welcome, Guest
Username: Password: Remember me

TOPIC: Reading wind data from BINARY WINDS FILE

Reading wind data from BINARY WINDS FILE 9 years 8 months ago #16067

  • jandroqv
  • jandroqv's Avatar
Hello,

we are make a wave model and in the model we want to use non-stationary wind and read the wind velocities from BINARY WINDS FILE. But we had problems when we were trying to do this.

The problem is that the subroutine CONDIW doesn´t read the wind velocities because in the code the mode is 2 instead of 1
            CALL LECDOI(SUV%R,NAMEWX,
     &                        'WIND ALONG X    M/S             ',2, 
     &                  SVV%R,NAMEWY,
     &                        'WIND ALONG Y    M/S             ',2, 
     &                  SVV%R,'????????????????????????????????',
     &                        '????????????????????????????????',0, 
     &                  MESH%X%R,MESH%Y%R,
     &                  NPOIN2,UL,BINVEN,NBOR,NPTFR,
     &                  AT,DDC,TV1,TV2,SUV1%R,SUV2%R,SVV1%R,SVV2%R,
     &                  SVV1%R,SVV2%R,INDIV,'VENT   ',NVWIN,TEXVEB,
     &                  TROUVE,UNITVEB,PHASVEB)

we changed the mode from 2 to 1 and the error was gone. We did the same in the subroutine SEMIMP to update the wind field. The model can run but the results are not correct. The wind velocities in the result file are infinite and doesn't make sense. So there is still problem for reading wind file.

What is the right way to impose wind filed in the wave model? The steering file is attached.

File Attachment:

File Name: Tomawac_Internal_Coupled_2D_ClosedUpstream.txt
File Size: 3 KB



File Attachment:

File Name: Tomawac_Internal_Coupled_2D_ClosedUpstream.txt
File Size: 3 KB
The administrator has disabled public write access.

Reading wind data from BINARY WINDS FILE 9 years 8 months ago #16070

  • jmhervouet
  • jmhervouet's Avatar
Hello,

In fact :

0 means : do not read
1 means : read if present
2 means : read and stop if not present

So it does not seem to be your error. You should perhaps check the WIND FILE that should be in selafin format.

With best regards,

Thierry Fouquet and JMH
The administrator has disabled public write access.

Reading wind data from BINARY WINDS FILE 9 years 8 months ago #16072

  • qilong
  • qilong's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 340
  • Thank you received: 33
Hello,

We did use the original code without modification of mode 2 and the WIND FILE is in selafin format with "BIG_ENDIAN" option and it can be viewed in BlueKenue. But when we ran the simulation, it said "THE WIND VELOCITY ALONG X NOT FOUND". Is it possible that in Tomawac the selafin format of the WIND FILE should not be with "BIG_ENDIAN" option?

With best regards,
Qilong
The administrator has disabled public write access.

Reading wind data from BINARY WINDS FILE 9 years 8 months ago #16074

  • qilong
  • qilong's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 340
  • Thank you received: 33
Hello,

I think I found the reason why it gave errors while reading the wind file.

In the subroutine CONDIW and SEMIMP, it requires the name of wind velocities to be

WIND ALONG X M/S
WIND ALONG Y M/S

But the names of variables in the wind file were different. Then I changed those names in the wind file and it works now.

With best regards,
Qilong
The administrator has disabled public write access.

Reading wind data from BINARY WINDS FILE 9 years 8 months ago #16077

  • jmhervouet
  • jmhervouet's Avatar
Hello Qilong,

Thank you for pointing out this. We'll change messages and possibly documentation into WIND ALONG X and WIND ALONG Y because it must not be larger than 16 characters.

With best regards,

Jean-Michel Hervouet
The administrator has disabled public write access.
Moderators: tfouquet

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