Welcome, Guest
Username: Password: Remember me

TOPIC: Initial Conditions , Constant Flow

Initial Conditions , Constant Flow 13 years 1 month ago #2797

  • m.mahgoob
  • m.mahgoob's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 106
Can someone tell me how can I specify the initial conditions in TELEMAC-2D to be constant flow or constant velocity. I know that this has to be added by setting the initial condition in the steering file to be PARTICULAR and modify the CONDIN subroutine, however, I don't know how to modify the CONDIN subroutine

thanks a lot
The topic has been locked.

Re: Initial Conditions , Constant Flow 13 years 1 month ago #2804

  • jmhervouet
  • jmhervouet's Avatar
Hello,

When you have INITIAL CONDITIONS = PARTICULAR and want to have a constant velocity, you can add in the section dedicated to particular conditions the lines :

CALL OS('X=C ',X=U,C=1.2D0)
CALL OS('X=C ',X=V,C=0.5D0)

This is an example, you can find explanations on subroutine OS in the guide for programming in the Telemac system which can be downloaded on this site.

With best regards,

Jean-Michel Hervouet
The topic has been locked.

Re: Initial Conditions , Constant Flow 13 years 1 month ago #2807

  • m.mahgoob
  • m.mahgoob's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 106
first of all thank you very much. secondly, how I can recall the CONDIN subroutine is it simply by adding a Fortran file in the Steering file (FORTRAN FILE : condin.f).
The topic has been locked.

Re: Initial Conditions , Constant Flow 13 years 1 month ago #2809

  • jmhervouet
  • jmhervouet's Avatar
Hello,

Yes, you just take condin.f in your FORTRAN FILE.
and add the keyword FORTRAN FILE = name_of-the-file

in your steering file

JMH
The topic has been locked.

Re: Initial Conditions , Constant Flow 13 years 1 month ago #2810

  • m.mahgoob
  • m.mahgoob's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 106
I have made the changes you told me in the CONDIN subroutine, however when running telemac it gives me a message that the CONDIN subroutine has to be changed although I have already changed it.

Attached here is the CONDIN subroutine after I made the changes, probably I made something wrong
Attachments:
The topic has been locked.

Re: Initial Conditions , Constant Flow 13 years 1 month ago #2814

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

You've made some changes but you keep in this file the warning message and also the stop instruction so the treatment is similar.
Try co comment the lines with the message and moreover the line with the stop instruction

Hope this helps
Christophe
The topic has been locked.

Re: Initial Conditions , Constant Flow 13 years 1 month ago #2816

  • jmhervouet
  • jmhervouet's Avatar
Attached the corrected file.

JMH
Attachments:
The topic has been locked.

Re: Initial Conditions , Constant Flow 13 years 1 month ago #2832

  • m.mahgoob
  • m.mahgoob's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 106
thank you very much, now it is working
The topic has been locked.
Moderators: pham

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