Welcome, Guest
Username: Password: Remember me

TOPIC: Modify drogue Z-position with time

Modify drogue Z-position with time 3 years 10 months ago #37471

  • TomS
  • TomS's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 71
  • Thank you received: 8
Hi,

I have (hopefully) a simple question related to Fortran and Telemac3D.

I am trying to set the value of the drogue Z-position (sigma) as a function of time. The paramater to be modified is ZP = ZPLOT(IPLOT) + DZ(IPLOT) in the subroutine SCHAR41_SIGMA of streamline.f

The time parameter that I wish is the current time "AT" but this is not passed to the SCHAR41_SIGMA subroutine. Only the time-step "DT" is available.

I have tried a few things without success, probably due to my limited Fortran, and wonder if anyone could advise how to make the current time "AT" available in the SCHAR41_SIGMA subroutine?

Thanks in advance,

Tom
The administrator has disabled public write access.

Modify drogue Z-position with time 3 years 10 months ago #37474

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

You can use:
USE DECLARATIONS_TELEMAC3D, ONLY: AT

before the declarations of other local variables in the SCHAR41_SIGMA subroutine.

Hope this helps,

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

Modify drogue Z-position with time 3 years 10 months ago #37477

  • TomS
  • TomS's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 71
  • Thank you received: 8
Fantastic, Chi-Tuan.

That works perfectly.

Thanks and best wishes,

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

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