Welcome, Guest
Username: Password: Remember me

TOPIC: Modify tracking particle in Telemac 2D

Modify tracking particle in Telemac 2D 9 years 2 weeks ago #18872

  • Giang
  • Giang's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
Dear all,
I would like to modify tracking particle model in Telemac 2D by adding trapping particle. That means modify conditions for a stop particle moving.
But I don't know what file to add function.
Could someone talk to me all functions and file sources to modify them ?
Please help me!
Thank you so much!
The administrator has disabled public write access.

Modify tracking particle in Telemac 2D 9 years 2 weeks ago #18879

  • jmhervouet
  • jmhervouet's Avatar
Hello,

You can start by looking at subroutine flot.f, where particles are added and deleted. For stopping a particle, a possibility would be to store its position and set it again at every time step in flot.f. The particle position consists of 3 values in array SHPFLO and the element number ELTFLO where the particle is.

With best regards,

Jean-Michel Hervouet
The administrator has disabled public write access.

Modify tracking particle in Telemac 2D 9 years 1 week ago #18899

  • Giang
  • Giang's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
Dear Jean,
Thank you for your reply!
I will try it!
Thank you so much!
The administrator has disabled public write access.

Modify tracking particle in Telemac 2D 8 years 11 months ago #19058

  • Giang
  • Giang's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
Dear Jean,
I try to modify flot but I have some problems here.
My stopping conditions relate to friction data and water level at position of particles.
Is it possible to add them in flot.f ? :unsure:
I try to find variable that stored friction data but it is quite difficult to me! :(
Please give me comments and advises!
Thank you so much!
The administrator has disabled public write access.

Modify tracking particle in Telemac 2D 8 years 11 months ago #19059

  • jmhervouet
  • jmhervouet's Avatar
Hello,

You can add as many variables in flot as soon as they are in declarations_telemac2d.f, for example the friction coefficient is stored into chestr (with double precision values in chestr%R). You can access to new variables by adding at the beginning of flot:

USE DECLARATIONS_TELEMAC2D, ONLY : CHESTR,...

... being possible other variables, e.g. KFROT, the friction law chosen, CF, the non-dimensional friction coefficient (friction force = 0.5 CF U**2).

With best regards,

Jean-Michel Hervouet
The administrator has disabled public write access.

Modify tracking particle in Telemac 2D 8 years 11 months ago #19081

  • Giang
  • Giang's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
I have another problem!
If I change input variables of subroutine flot.f, do I have to change input variables in telemac2d.f ?
How I can re-compile the telemac2d.f ?

Others, in telemac, I read that user only change and re-compile 1 file fortran.
Is it possible change 2 files fortrans ?
For example, I want to change flot.f and derive.f but I must choice one of them to compile ? ( in this case, derive.f is also not in the list fortran user file)
How I can compile both of them ?
Thank you so much for your help!
The administrator has disabled public write access.

Modify tracking particle in Telemac 2D 8 years 11 months ago #19083

  • jmhervouet
  • jmhervouet's Avatar
Hello,

What I suggested to do does not change the arguments (input variables) in flot.f. The new variables are not added in the list of arguments, they are seen with the USE DECLARATIONS_TELEMAC2D. There is no need to recompile telemac2d.f, you just need to put the modified flot.f in the FORTRAN FILE specific to the case.

With best regards,

Jean-Michel Hervouet
The administrator has disabled public write access.

Modify tracking particle in Telemac 2D 4 years 4 months ago #36383

Dear all,

I would like to modify tracking particle model in Telemac 2D by specifying an object as a floating particle and adding mass and drag forces to it.
But I'm not sure what file to add function.
Could someone assist me with the functions and file sources to modify them ?
I have tried the test case for algae and oil spill as well.

Please help me!
Thank you so much!
The administrator has disabled public write access.

Modify tracking particle in Telemac 2D 4 years 4 months ago #36420

  • goeury
  • goeury's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 6
Hi,

Normally, if you refer to the following documentation you must have all ingredients to answer to your question.

www.opentelemac.org/index.php/manuals/su...looms-and-oil-spills

Best regards,

Cedric
The administrator has disabled public write access.

Modify tracking particle in Telemac 2D 3 years 11 months ago #37222

Hi, I would like to ask if anyone could help me?

I read the manual on algae and oil spill, and I am trying to add a new body type to the algae bloom transport model by adding ALGTYP = 5 in the subroutine Disp_Algae. I just did some very simple adjustments to try if it works. However, after i compile and try to run the code, it gives an error. I have run the steering file using ALGTYP 1 and it works, but it does not work with ALGTYP =5 (the adjusted one that I did). Can anyone please help?

I have attach my files and also the area which I have done the adjustments in algae_transp.f.

Really appreciate any help and suggestions.
The administrator has disabled public write access.
Moderators: pham

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