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

TOPIC: Stochastic diffusion models for drogue

Stochastic diffusion models for drogue 4 years 2 months ago #36695

  • ArthurCardiff
  • ArthurCardiff's Avatar
I saw the keyword STOCHASTIC DIFFUSION MODEL in TELEMAC2D user manual, but I cannot see this keyword in TELEMAC3D. Does it mean that there is a stochastic diffusion model in TELEMAC2D but not TELEMAC3D? Or the TELEMAC3D manual just miss this part?

If TELEMAC3D does not have a stochastic diffusion model, any suggestions as to how can I do particle tracking with stochastic diffusion model?
The administrator has disabled public write access.

Stochastic diffusion models for drogue 4 years 2 months ago #36715

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

Indeed, no such keyword in TELEMAC-3D because this feature has not existed yet. Talking quickly to people who khow this feature in 2D, the issue is how to define it over the vertical in 3D.

I cannot help you more.

Chi-Tuan
The administrator has disabled public write access.

Stochastic diffusion models for drogue 4 years 2 months ago #36778

  • ArthurCardiff
  • ArthurCardiff's Avatar
Thank you. Do you have any experience in using a Opensoure particle tracking software OpenDrift? It seems to be good but I am not sure if it is compatible with the output from TELEMAC3D.

The link of the software is attached below:
opendrift.github.io/index.html
The administrator has disabled public write access.

Stochastic diffusion models for drogue 4 years 2 months ago #36793

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

Sorry, but I did not know this tool.
Using what is written in hermes module and Python scripts may link TELEMAC-3D with OpenDrift, you can try.

Best regards,

Chi-Tuan
The administrator has disabled public write access.

Stochastic diffusion models for drogue 4 years 2 months ago #36794

  • ArthurCardiff
  • ArthurCardiff's Avatar
Could you please explain more about the "hermes module" and "Python script"?
The administrator has disabled public write access.

Stochastic diffusion models for drogue 4 years 2 months ago #36795

  • pham
  • pham's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1559
  • Thank you received: 602
Hermes is a module that gives you generic features to handle different file formats available for the TELEMAC system (e.g.: SERAFIN, MED). You can read the developer_guide (chapter 9). The source codes are located in $HOMETEL/sources/utils/hermes

Python scripts are located in $HOMETEL/scripts/python3
You can read the notebooks to see what is available ($HOMETEL/notebook). E.g.: run jupyter-notebook index.ipynb to read the index.

Hope this helps,

Chi-Tuan
The administrator has disabled public write access.

Stochastic diffusion models for drogue 4 years 3 weeks ago #37027

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

I realise that stochastic diffusion is not implemented in Telemac3D but I still would like to see the influence of this in the horizontal plane in a 3D study.

I have copied streamline.f into my user_fortran directory and modified the SCHAR_41 subroutine by adding:

///////////////////////////////////////////////////////////
DZ(IPLOT) = ((W(I1,IET )*SHP(1,IPLOT)
& + W(I2,IET )*SHP(2,IPLOT)
& + W(I3,IET )*SHP(3,IPLOT))*(1.D0-SHZ(IPLOT))
& +(W(I1,IET+1)*SHP(1,IPLOT)
& + W(I2,IET+1)*SHP(2,IPLOT)
& + W(I3,IET+1)*SHP(3,IPLOT))*SHZ(IPLOT) ) * PAS
ENDIF
!
! STOCHASTIC DIFFUSION
!
! IF(STOCHA.EQ.1) THEN
! COMPUTING LOCAL VISCOSITY
! A=MAX(VISCVI%ADR(1)%P%R(I1)*SHP(1,IPLOT)
! & +VISCVI%ADR(1)%P%R(I2)*SHP(2,IPLOT)
! & +VISCVI%ADR(1)%P%R(I3)*SHP(3,IPLOT),0.D0)
! B=MAX(VISCVI%ADR(2)%P%R(I1)*SHP(1,IPLOT)
! & +VISCVI%ADR(2)%P%R(I2)*SHP(2,IPLOT)
! & +VISCVI%ADR(2)%P%R(I3)*SHP(3,IPLOT),0.D0)
! DISPLACEMENT DUE TO RANDOM DIFFUSION
A=0.6D0
B=0.6D0
DEUXPI=2.D0*ACOS(-1.D0)
CALL RANDOM_NUMBER(RAND1)
CALL RANDOM_NUMBER(RAND2)
C=SQRT(-2.D0*LOG(RAND1))
D=C*COS(DEUXPI*RAND2)
E=C*SIN(DEUXPI*RAND2)
DIFF_X=D*SQRT(1.D0*A/1.D0)
DIFF_Y=E*SQRT(1.D0*B/1.D0)
DX(IPLOT) = DX(IPLOT) + DIFF_X*SQRT(ABS(PAS))
DY(IPLOT) = DY(IPLOT) + DIFF_Y*SQRT(ABS(PAS))
! ENDIF

WRITE (LU,*) 'HERE!:'

XP = XPLOT(IPLOT) + DX(IPLOT)
YP = YPLOT(IPLOT) + DY(IPLOT)
ZP = ZPLOT(IPLOT) + DZ(IPLOT)
//////////////////////////////////////////////////////

Adding the WRITE statement was to check that the code was being accessed but it doesn't appear to be reaching this line or using the SCHAR_41 subroutine when running my case.

Is this the correct way to do this or am I missing something?

Thanks for any help or suggestions,

Tom
The administrator has disabled public write access.

Stochastic diffusion models for drogue 4 years 3 weeks ago #37044

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

Have you run your computation in parallel mode? If yes, have you looked at every PE***.LOG output files in the temporary folder? Your writing may be in subdomains other than the master.

Hope this helps,

Chi-Tuan
The administrator has disabled public write access.

Stochastic diffusion models for drogue 4 years 3 weeks ago #37045

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

Thanks for your reply. I was running in serial mode.

Best,

Tom
The administrator has disabled public write access.

Stochastic diffusion models for drogue 4 years 3 weeks ago #37048

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

Can you send your steering file + modified STREAMLINES subroutine please?
+ give the release you use (v8p1 I hope).

As you talk about SCHAR_41 subroutine, I do not know if you mean SCHAR41 (without _), SCHAR41_STO or another subroutine.
Moreover, depending on which options you have activated, you should modify a specific subroutine not the one you have changed.

Chi-Tuan
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.