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

TOPIC: Increase maximum number of sources

Increase maximum number of sources 8 years 2 weeks ago #24186

  • SiWaWiHIWI
  • SiWaWiHIWI's Avatar
Hello,
I am totally new in Telemac-2d and want to increase the maximum number of sources.
For this problem I found the keyword MAXIMUM NUMBER OF SOURCES.
So i wrote this keyword in my cas file.
For a test run I defined 9 sources.

Telemac2d show me the following problem report:
9 ABSCISSAE OF SOURCES expected
8 FOUND

Can anybody help me?
Where is the keyword located in the *.cas - File?
Is there anything else to change?

Best regards,

Michael
The administrator has disabled public write access.

Increase maximum number of sources 8 years 2 weeks ago #24188

  • riadh
  • riadh's Avatar
Hello

The problem could be that you have given only 8 values for the flowrates at the sources.
for example if you set:
ABSCISSAE OF SOURCES =0.5;55;100;150
ORDINATES OF SOURCES =8.5;5.5;10;750
and
WATER DISCHARGE OF SOURCES: 10.;25;12.5
this will generate an error since Telemec is expecting 4 values of discharges

I hope that this helps

with my best regards
Riadh
The administrator has disabled public write access.

Increase maximum number of sources 8 years 2 weeks ago #24189

  • jmhervouet
  • jmhervouet's Avatar
Hello,

Yes, Riadh is right and another possibility is that you write your data after the 72th column in your parameter file. You can do it on the next line.

With best regards,

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

Increase maximum number of sources 8 years 2 weeks ago #24191

  • SiWaWiHIWI
  • SiWaWiHIWI's Avatar
Thanks for the answers.

It was little bit from both.

I wrote after the 72th column and one value of discharge more then sources.
The administrator has disabled public write access.

Increase maximum number of sources 8 years 2 weeks ago #24193

  • SiWaWiHIWI
  • SiWaWiHIWI's Avatar
Is there actually a maximum value for the key word MAXIMUM NUMBER OF SOURCES?
I have the following problem.
I want to link telemac-2d with a sewer simulation with SWMM. The idea is to define the flooding of the manholes as discharges of sources in telemac-2d. So i have to define a large number of sources (maybe 5000). Is this possible? At the moment the maximum number of sources I can use is 75.
The administrator has disabled public write access.

Increase maximum number of sources 8 years 2 weeks ago #24270

  • jmhervouet
  • jmhervouet's Avatar
Hello,

There is no such limit as 75, but if you have thousands of sources, it would be better to give their data in a file or with a Fortran subroutine. Parameters on sources are read in subroutine lecdon_telemac2d. Here you can probably overwrite what is in the parameter file by calling a subroutine at the end, that would return all the data on sources : their number NSCE, their coordinates XSCE and YSCE, their discharge QSCE, etc. If some values are varying in time this would be to repeat in a subroutine that is called at every time step, like utimp_telemac2d. Another possibility would be to treat your sources as rain. Then in subroutine prosou you would change the value of array PLUIE%R, setting it to 0.D0 everywhere except for your sources. If a point I has a discharge of Q(I), the value of PLUIE%R(I) would be Q(I)/VOLU2D%R(I). VOLU2D would be to add in the USE DECLARATIONS_TELEMAC2D, ONLY : ... list. VOLU2D is the area associated to the point.

With best regards,

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

Increase maximum number of sources 7 years 11 months ago #24519

  • mourad
  • mourad's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 155
  • Thank you received: 6
JMH said that to handle thousands of sources, users may give their data (Xsce, Ysce and Qsce) in a txt file or through a Fortran subroutine. However even I use a txt file for the discharges (see file format bellow) TELEMAC2D stop running due to the big number of sources. I think the coordinates I introduced in the steering file which are too long (in terms of number of characters) cause this problem.

Source discharges file :
1st row : T Q(1) ...... Q(1000)
2nd row : s m3/s ...... m3/s
3rd row : t0 Q1(t0)...... Q1000(t0)
. . . ...... .
. . . ...... .
. . . ...... .
last row : tn Q1(tn).....Q1000(tn)

I would prefer the use of txt file rather to change parameters in the fortran subroutines because I care about compilation and its associated errors.

Is there an alternative solution to give sources coordinates in a txt file as I did for discharges?
Dear users and moderators, any help is welcome
Thanks in advance.
The administrator has disabled public write access.

Increase maximum number of sources 7 years 11 months ago #24526

  • riadh
  • riadh's Avatar
Hello

What is the error message when Telemac stops?
If you want to introduce coordinates of sources with a txt file you need to edit several subroutines in the code.
In my opinion,this is not necessary, you have to introduce these coodinates in the steering file.
Last point, if you use v7p1, there is a new keyword that fixes the number of sources (default is 20) MAXIMUM NUMBER OF SOURCES, that you can change if you have more than 20 sources.

I hopte that this helps
with my best regards

Riadh
The administrator has disabled public write access.

Increase maximum number of sources 7 years 11 months ago #24536

  • mourad
  • mourad's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 155
  • Thank you received: 6
Hi Riadh, thank you for your interest on the issue I posted
This is the error message :
ADRESSE SUPERIEURE A NMAX = 400
TROP DE VALEURS DE TYPE : 2 DECLAREES.
ARRET DE DAMOCLES AU MOT-CLE D'INDEX : 38

I have the V7P0 version that made me struggling away before to succesfully install and configurate it. In this version of TELEMAC no keyword as 'MAXIMUM NUMBER OF SOURCES".
In fact I already posted my problem in another way. As I did a txt file for source discharges, is it possible to do it for source coordinates rather to introduce them in the steering file (in steering file number of characters for the sources coordinate must be bellow 400). Mr Coulet suggests me to modify some subroutines in order to give the coordinates of sources in txt file (below the post of Mr Coulet) but still I do no which subroutines I will modify and wether RECOMPILING TELEMAC is necessary once change is done.

[Mr Coulet said : You could do it in the way you want by modifying manually some subroutines in order to give the right size for all array dealing with sources and also replace the read in the steering file by a read in an external file.
The administrator has disabled public write access.

Increase maximum number of sources 7 years 11 months ago #24547

  • mourad
  • mourad's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 155
  • Thank you received: 6
I upgraded my telemac to V7P1 and set up MAXIMUM NUMBER OF SOURCES to 646 : this is the total sources number I have. But the same error message appers again :
ADRESS GREATER THAN NMAX = 400
TOO MANY VALUES OF TYPE : 2 DECLARED.
STOP OF DAMOCLES AT KEY-WORD NUMBER
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: pham

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