Welcome, Guest
Username: Password: Remember me

TOPIC: oil spill - animate both tracers and drogues

oil spill - animate both tracers and drogues 6 years 7 months ago #29844

  • ekechijioke
  • ekechijioke's Avatar
Hello Serrer,

I have working with your animation dataset very helpful and I've been able to create my own parcel simulation.

However, regarding the hydrodynamics setup, it seems BlueKenue only supports 1 Frame with bathy, current and depth (ASCII or Binary single Frame). That means the inputs are constant. I would like to verify if there is a way to employ varying constant (multiframe).

Thank you.

Regards,
Chijioke.
The administrator has disabled public write access.

oil spill - animate both tracers and drogues 6 years 7 months ago #29845

  • shenh
  • shenh's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 148
  • Thank you received: 37
Yes Chijioke, you should be able to write multiple frames into a pcl file. But the times should align with your tel result file. For example if you have 10 time steps in your result file and your oil spill starts at step 3 and ends at step 5. You will need to create dummy particles for steps 1 and 2. If some of your particles disappear (either you removed it at the FLOT3D subroutine or it is completely dissolved to tracer) at step eg 8, you need to manually create dummy particles for steps 9 and 10. I am going to release my reworked script in the next couple weeks when I get some free time.

Hailiang
The administrator has disabled public write access.
The following user(s) said Thank You: ekechijioke

oil spill - animate both tracers and drogues 6 years 7 months ago #29853

  • ekechijioke
  • ekechijioke's Avatar
Thank You Hailiang, I will explore this alternative.
The administrator has disabled public write access.

oil spill - animate both tracers and drogues 6 years 7 months ago #29855

  • ekechijioke
  • ekechijioke's Avatar
I will also keep my eyes out for your script. Seeing as I am new to programming/fortran.
The administrator has disabled public write access.

oil spill - animate both tracers and drogues 6 years 7 months ago #29857

  • shenh
  • shenh's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 148
  • Thank you received: 37
The original code was in C#, I will convert it to python.

Hailiang
The administrator has disabled public write access.

oil spill - animate both tracers and drogues 6 years 7 months ago #29849

  • Serrer
  • Serrer's Avatar
  • OFFLINE
  • Moderator
  • Posts: 720
  • Thank you received: 304
Hi Chijioke,

I presume you are talking about the output of POSM.
Yes, this model (as currently distributed) only supports
constant hydrodynamics as driving force.
Yes, I know that the documentation references an oil spill
in tidal HD. That was unfortunately an oversight on our part
while packaging the SW.
The non-steady state version was not qualified for distribution.

Apologies... Martin
The administrator has disabled public write access.
The following user(s) said Thank You: ekechijioke

oil spill - animate both tracers and drogues 6 years 6 months ago #29879

  • ekechijioke
  • ekechijioke's Avatar
Hello Martin,

I am trying to use the "initial slick" feature but it seems POSM is not reading the previous pcl file. The manual says the simulation ought to specify the initial state of each parcel however, the result doesn't contain any slick. Please do you have a solution.

Thank you.

Regards,
Chijioke.
The administrator has disabled public write access.

oil spill - animate both tracers and drogues 6 years 6 months ago #29885

  • ekechijioke
  • ekechijioke's Avatar
and please can you shed more light on the "continous spill in a tidal estuary". I am not sure how to employ the time varying hydrodynamics.
The administrator has disabled public write access.

oil spill - animate both tracers and drogues 6 years 6 months ago #29943

  • shenh
  • shenh's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 148
  • Thank you received: 37
I have finally ported my code to python, see attached. Hope they can help someone who are also trying to animate both hydrodynamic variables and drogues simultaneously in BlueKenue.

Hailiang

File Attachment:

File Name: OilDrogue.py
File Size: 1 KB


File Attachment:

File Name: OilParticle2Pcl.py
File Size: 7 KB
The administrator has disabled public write access.
The following user(s) said Thank You: ekechijioke

oil spill - animate both tracers and drogues 6 years 6 months ago #29949

  • ekechijioke
  • ekechijioke's Avatar
Hello Hailiang,

In the script "OilParticle2Pcl.py", you initialised current_time; 37800.0000. I am trying to figure out how you came to that value.

Regards,
Chijioke.
The administrator has disabled public write access.
Moderators: pham

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