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

TOPIC: Modifying TELEMAC and SISYPHE source terms

Re:Modifying TELEMAC and SISYPHE source terms 14 years 3 weeks ago #808

  • bzindovic
  • bzindovic's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 68
  • Thank you received: 3
Hello.

If I don't add new keyword(s), I'll have to hand-code decay coefficients for tracers and recompile TELEMAC every time I run simulation. If I define new keyword (eg. DECAY COEFFICIENT), its value can be read from case file (like other parameters). Is this a tough problem to tackle?
The administrator has disabled public write access.

Re:Modifying TELEMAC and SISYPHE source terms 14 years 3 weeks ago #812

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi Budo

You're right with the Keyword! But it's quite more difficult to add anew keyword to Telemac if you don't know the way to do it (and I'm not sure this step is described in the documentation).
In another part, there is many different decay law so it could be difficult to generalise them in order to use 1 or 2 keyword.
But, as a part of this development had already been done, we could think it will be include in the next version.
For your use, you could try to add new keyword also (and we could include your own developments in the next version) or maybe, in an easy way for you to use telemac and avoid systematic compilation, you could use an external file to fix the value of the coefficient.
Regards
Christophe
The administrator has disabled public write access.

Re:Modifying TELEMAC and SISYPHE source terms 14 years 3 weeks ago #815

  • Chris Cawthorn
  • Chris Cawthorn's Avatar
AS I remember the theory, division with H results from depth-averaging.

Correct.
Then the coefficient -0.0001 in the given example is multiplied by Hprop because subroutine CVDFTR divides source term with Hprop.

Correct.
Variable TIMP is not listed in the table of variable names description but is the function argument.

Yes. Unfortunately, the tables of variable names are out of date in many areas of the TELEMAC source code. Without wanting to sound like an advertisement, we're also working on an automated documentation system that ought to avoid this problem in the future.
It is also for the NTRAC that I presume is total number of tracers. Right?
.

Correct.

With regard to the keyword, I agree with Christophe (telemac) that adding a new keyword is a difficult thing to do without a fairly intimate knowledge of the code. To expand on Christophe's point about external files, are you aware of the FORTRAN FILE keyword? Adding something like
FORTRAN FILE : './princi.f'
to your steering file means that TELEMAC looks in princi.f and uses any subroutines contained therein to overwrite the standard TELEMAC subroutines. Many of the validation cases use such a file to modify CONDIN to specify particular initial conditions.

In your case, putting an appropriately modified version of DIFSOU in princi.f (or whatever else you call your Fortran file) would mean that TELEMAC needs only to recompile this subroutine, and repeat the linking procedure, each time you change the decay law. The computational cost of this is quite small, and all of the recompilation steps are hidden from view in the telemac2d command.

I hope that's useful, and that I didn't just tell you things you already knew!
The administrator has disabled public write access.

Re:Modifying TELEMAC and SISYPHE source terms 14 years 1 week ago #868

  • bzindovic
  • bzindovic's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 68
  • Thank you received: 3
Thank you Chris for helping me to sort things out.

I was aware of the inclusion of modified FORTRAN source files but I intended to make something more elegant. If it is a great deal, I'll forget all about it :)

One more thing interests me. The subroutine DIFSOU takes into account all available tracers. Is there anything similar for the sediment transport? How can I load concentration of sediment into any TELEMAC2D subroutine?

Thanks,
Budo
The administrator has disabled public write access.

Re:Modifying TELEMAC and SISYPHE source terms 13 years 8 months ago #1208

  • murphyenda
  • murphyenda's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 26
  • Thank you received: 4
Hi Budo,

Did you ever find out the answer to your question regarding sediment sources? If so, could you share?

Thanks,

Enda
The administrator has disabled public write access.

Re:Modifying TELEMAC and SISYPHE source terms 13 years 8 months ago #1252

  • bzindovic
  • bzindovic's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 68
  • Thank you received: 3
Hello.

I haven't found what I was looking for but as soon as I do, I'll share it.

Best regards.
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.