Welcome, Guest
Username: Password: Remember me

TOPIC: The number of SOURCES:Q printed out does not match the number set

The number of SOURCES:Q printed out does not match the number set 1 year 6 months ago #42549

  • wsy9208
  • wsy9208's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 37
  • Thank you received: 3
Hello everyone!

I am trying to add multiple point sources to TELEMAC-2D (v8p4) and set the flow rate of each point source over time through the SOURCES FILE. I have set a total of 358 point sources (since I exceeded the limit of 99, I modified the debsce.f file in the source code). The window displayed during initialization also shows this. However, after the simulation starts, only the flow rates of 213 point sources are printed. When I removed the conditional statement related to the print statement in the read_fic_sources function, I got the same result. I am not sure why this is happening and would appreciate any guidance.

Thank you!
Attachments:
The administrator has disabled public write access.

The number of SOURCES:Q printed out does not match the number set 1 year 6 months ago #42582

  • wsy9208
  • wsy9208's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 37
  • Thank you received: 3
I would like to add another question to my previous message. In my SOURCES FILE(attached), the flow rate of each source is initially zero for a certain period of time. However, in the results, there is ADDITIONAL VOLUME DUE TO SOURCE TERMS from the beginning. Could you explain why this is the case? The window displays the following information:

BALANCE OF WATER VOLUME
VOLUME IN THE DOMAIN: 35982.38 M3
FLUX BOUNDARY 1: -0.000000 M3/S ( >0 : ENTERING <0 : EXITING )
ADDITIONAL VOLUME DUE TO SOURCE TERMS: 548.3792 M3
RELATIVE ERROR IN VOLUME AT T = 124.1 S : 0.7886146E-14
MAXIMUM COURANT NUMBER: 0.9322457
TIME-STEP : 1.825556
The administrator has disabled public write access.

The number of SOURCES:Q printed out does not match the number set 1 year 6 months ago #42585

  • pham
  • pham's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1559
  • Thank you received: 602
Hello,

Can you try to change the following line:
      INTEGER, PARAMETER :: SIZELIGN = 3000
to
      INTEGER, PARAMETER :: SIZELIGN = 6000
in read_fic_sources.f and see if your issue still occurs.

SIZELIGN is the maximum number of columns read per line in the SOURCES FILE.

I thing after sources #213, the default water discharge given in the steering file with the keyword WATER DISCHARGE OF SOURCES is taken into account.

If it does not solve your issue, please upload the SOURCES FILE with an allowed extension (e.g. .txt), I cannot see it at the moment.

Hope this helps,

Chi-Tuan
The administrator has disabled public write access.
The following user(s) said Thank You: wsy9208

The number of SOURCES:Q printed out does not match the number set 1 year 6 months ago #42591

  • wsy9208
  • wsy9208's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 37
  • Thank you received: 3
Hello pham,

Thank you very much! I changed the SIZELIGN parameter and the result shows the flow of 358 point sources properly!

Regards
The administrator has disabled public write access.
Moderators: pham

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