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

TOPIC: RAIN OR EVAPORATION: test with values variable in time

RAIN OR EVAPORATION: test with values variable in time 8 years 2 months ago #23833

  • pilou1253
  • pilou1253's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 584
  • Thank you received: 106
Hi,

I don't know the test case you mention which has the meteo file you joined. It seems to be for a more global meteo and water quality oriented modelling. Anyway, I think that you don't need to follow this method for simply modelling a hyetograph.

As I wrote in the thread I joined the link to, the next version (7.2, to be released in october according to developpers) will include a rainfall-runoff model which includes the possibility to define rainfall as a hyetograph read from a text file. You can already check this new function on the trunk.

Otherwise I would suggest you to start looking at the prosou subroutine I attached to my previous post and try to adapt it to define your own hyetograph.

Best regards
PL
The administrator has disabled public write access.

RAIN OR EVAPORATION: test with values variable in time 8 years 2 months ago #23835

  • chelobarros
  • chelobarros's Avatar
thank you i will give it a try.

greetings,
chelo.
The administrator has disabled public write access.

RAIN OR EVAPORATION: test with values variable in time 8 years 2 months ago #23839

  • chelobarros
  • chelobarros's Avatar
hi pilou.

im really sorry to ask, but im not really sure. if i download the new run off subroutine do i need to compile telemac again? o just by placing it inside the subroutine folder and calling the code name in the cas file it will work?

i already download the file and example, im not sure if i should re download telemac and compile again.

im wondering about the procedure because im not really sure.
sorry if the question is not the brightest. but as i said my programming knowledge is not the best.



greetings,
Chelo.
The administrator has disabled public write access.

RAIN OR EVAPORATION: test with values variable in time 8 years 2 months ago #23840

  • pilou1253
  • pilou1253's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 584
  • Thank you received: 106
Hi,

For having the new subroutine working you need to compile the trunk version in a similar way as you compiled the version you are using now. Please note that the structure of the configuration file has slightly changed compared to version 7.1.

Good luck!
PL
The administrator has disabled public write access.

RAIN OR EVAPORATION: test with values variable in time 8 years 1 month ago #23849

  • chelobarros
  • chelobarros's Avatar
hi pilou.
sorry to ask again but if i change the prosou.f subroutine, is it necessary to compile telemac again? o just saving the file is enough to modify the soubrutine.? i replace the RAIN_MMPD/86400000.D0 for a time dependent function.

i ask because i need to do a montecarlo simulation , so this would be one hietogram, next iteration i would have to modify my hietogram this would mean change the prosou.f again . it would be pointless to change the prosou.f soubrutine if i have to compile telemac all over again every iteration.

thank you for your time,
chelo.
The administrator has disabled public write access.

RAIN OR EVAPORATION: test with values variable in time 8 years 1 month ago #23850

  • pilou1253
  • pilou1253's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 584
  • Thank you received: 106
Hi!

No, you don't need to recompile. If you read the user manual carefully you will see that you can provide a so called FORTRAN FILE as input. The aim of this FORTRAN FILE is that all the subroutines contained in this file (you can add as many modified subroutines as you want in it, one after the other) will be compiled automatically at the beginning of the computation so that your changes are taken into account WITHOUT modifiying the source code itself and recompiling it. So if you did modify the original prosou.f file, you should not do that.

All you need to do, in your case, is to take your modified prosou.f in a file that you can rename "my_fortran_file.f" if you want, and add the keyword FORTRAN FILE = 'my_fortran_file.f' in your steering file. my_fortran_file.f can be located in the same folder than all the other model files.

Good luck!
PL
The administrator has disabled public write access.
The following user(s) said Thank You: chelobarros

RAIN OR EVAPORATION: test with values variable in time 8 years 1 month ago #23851

  • chelobarros
  • chelobarros's Avatar
that was really helpful. thank you!
and sorry if my question were a bit out of place.

Greetings,
Chelo.,
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.