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

TOPIC: Post-Processing Particles

Post-Processing Particles 10 years 2 months ago #14323

  • schaad
  • schaad's Avatar
Hi All,

I am trying to post process a simulation with drogues (particles). I believe the run was successful, the the drogues output is an empty file. There is, however a binary file in the working directory called 'out_flot'. I tried to open 'out_flot' in Tecplot but this was not successful. Does anyone have any advice on how to post-process drogues?

Your help is much appreciated,
-Simon
The administrator has disabled public write access.

Post-Processing Particles 10 years 2 months ago #14329

  • jmhervouet
  • jmhervouet's Avatar
Hello,

Could you check if the test case "flotteurs" works? It also creates a file that can be read by Tecplot. It would show if it is a general problem or only due to your case.

Regards,

JMH
The administrator has disabled public write access.

Post-Processing Particles 10 years 2 months ago #14340

  • schaad
  • schaad's Avatar
Thanks JMH. I ran flotteurs successfully but I am unable to view the results in tecplot. An ASCII file was created which contains the position of the particles ('flo.dat').

I was able to view the main output file ('res') in Tecplot.

To my understanding I should be able to open the second binary file that was created (t2d_flotteurs_v2p0) in tecplot and it should contain the trajectories. I am correct about this?
The administrator has disabled public write access.

Post-Processing Particles 10 years 1 month ago #14344

  • jmhervouet
  • jmhervouet's Avatar
Hello,

About the flo.dat file:

This is a formatted file created by TELEMAC-2D during the computation. It stores drogue positions in Tecplot format. To visualize the drogue positions with Tecplot software, the user must:
•Use the File>load data file(s) command to load the Telemac result data file
•Use the File>load data file(s) command to load the Tecplot drogue file
WARNING:
In order to add the Tecplot drogue file to Telemac result data you have already loaded, select “Add to current data” set in the Load Data File Warning dialog. The Load Data File Warning dialog will appear after you have selected the file and zones and/or variables to load.
Once you have loaded your Tecplot data, the drogue positions will be considered as “Scatter plots” by Tecplot. Scatter plots are plots of symbols at the data points in a field. To add a scatter layer to your plot, activate the “Scatter” toggle in the Sidebar. To be visible in your plot, the Scatter layer which contains the Tecplot drogue file must be turned on and the Scatter layer containing the Telemac result data must be turned off. This is done by selecting “Yes” or “No” from the [Scat show] button drop-down menu on the Scatter page of the Zone Style dialog.
Then, you can modify your Scatter plot using the Scatter page of the Zone Style dialog and the Scatter submenu of the Plot menu. You can control any of the following attributes for a zone or group of zones from the Scatter page of the Zone Style dialog.

This is adapted from part of the Telemac-3D documentation written by Cedric Goeury, soon to appear, and is perhaps also in the current Telemac-2D user manual (not checked).

With best regards,

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

Post-Processing Particles 10 years 1 month ago #14352

  • schaad
  • schaad's Avatar
Thank you Jean-Michel,

I am using Tecplot 360 2010 and I am unable to append 'flo.dat' to the existing data inside Tecplot. I get the error 'Invalid File Format'. This is very strange because I am able to open to main results file, just not the drogue file.

To be clear, flo.dat is an ASCII file. I've attached it.

Your help is very much appreciated,
Simon
The administrator has disabled public write access.

Post-Processing Particles 10 years 1 month ago #14357

  • schaad
  • schaad's Avatar
So flotteurs runs successfully. However, my case only writes a blank drogue output and I cannot determine why. The output for flotteurs is not blank. Here are the things I have determined:

To my understanding the drogues output are first written to T2DRBI. This file remains empty during the run. (I cancel the run and look at it)

The particles are input in the model and float around. To test this I added 'write(*,*) XFLOT' in the flot.f subroutine. The output is coordinates for each particle. So particles exist!

Below is my case file,
/---------------------------------------------------------------------
/ VERSION:				TELEMAC2D v6p3	
/---------------------------------------------------------------------

/---------------------------------------------------------------------
/ COMPUTER INFORMATION
/---------------------------------------------------------------------

TITLE					= '****: Transient'

GEOMETRY FILE            		= 'Geometry.slf'
BOUNDARY CONDITIONS FILE 		= 'BC.cli'
RESULTS FILE             		= 'Transient_00.results'

PREVIOUS COMPUTATION FILE 		= 'SteadyState_00.results'
COMPUTATION CONTINUED 			= TRUE

LIQUID BOUNDARIES FILE 			= 'Hydrograph_00.liq'

/---------------------------------------------------------------------
/ GENERAL INFORMATION & OUTPUT
/---------------------------------------------------------------------

NUMBER OF TIME STEPS 			= 100
INITIAL TIME SET TO ZERO 		= TRUE
LISTING PRINTOUT PERIOD			= 10
GRAPHIC PRINTOUT PERIOD			= 100

VARIABLES FOR GRAPHIC PRINTOUTS		= U,V,B,H,S,F
/INFORMATION ABOUT SOLVER		= YES

/---------------------------------------------------------------------
/ DROGUES
/---------------------------------------------------------------------

NUMBER OF DROGUES			= 10
BINARY RESULTS FILE			= 'Drogues_01.results'
PRINTOUT PERIOD FOR DROGUES		= 10
FORTRAN FILE				= './flot.f'

/---------------------------------------------------------------------
/ BOUNDARY CONDITIONS
/---------------------------------------------------------------------

OPTION FOR LIQUID BOUNDARIES 		= 2;1;3;4;5;6;7

/---------------------------------------------------------------------
/ EQUATIONS
/---------------------------------------------------------------------

TURBULENCE MODEL 			= 3
VELOCITY DIFFUSIVITY 			= 1E-6
LAW OF BOTTOM FRICTION 			= 4
FRICTION COEFFICIENT 			= 0.06
BOTTOM SMOOTHINGS 			= 1

/---------------------------------------------------------------------
/ NUMERICAL PARAMETERS
/---------------------------------------------------------------------

TIME STEP            			= 1
MAXIMUM NUMBER OF ITERATIONS FOR SOLVER = 1000
SOLVER ACCURACY 			= 1.E-3

And here is my modification to flot.f:
!                    ***************
                     SUBROUTINE FLOT
!                    ***************
!
     &(XFLOT,YFLOT,NFLOT,NFLOT_MAX,X,Y,IKLE,NELEM,NELMAX,NPOIN,
     & TAGFLO,SHPFLO,ELTFLO,MESH,LT,NIT,AT)
!
!***********************************************************************
! TELEMAC2D   V6P3                                   21/08/2010
!***********************************************************************
!
!brief    THE USER MUST GIVE :
!+
!+
!+   1) THE TIMESTEP WHEN THE FLOATING BODY IS RELEASED.
!+
!+
!+   2) THE TIME WHEN THE COMPUTATION IS STOPPED FOR THIS FLOATING BODY.
!+
!+
!+   3) THE INITIAL POSITION OF THE FLOATING BODY AT THE TIME OF RELEASE.
!
!history  J-M JANIN (LNH)
!+        17/08/1994
!+        V5P2
!+
!
!history  N.DURAND (HRW), S.E.BOURBAN (HRW)
!+        13/07/2010
!+        V6P0
!+   Translation of French comments within the FORTRAN sources into
!+   English comments
!
!history  N.DURAND (HRW), S.E.BOURBAN (HRW)
!+        21/08/2010
!+        V6P0
!+   Creation of DOXYGEN tags for automated documentation and
!+   cross-referencing of the FORTRAN sources
!
!history  J-M HERVOUET (EDF R&D, LNHE)
!+        22/02/2013
!+        V6P3
!+   New version called at every time step, compatible with //.
!
!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!| AT             |-->| TIME
!| ELTFLO         |<->| NUMBERS OF ELEMENTS WHERE ARE THE FLOATS
!| LT             |-->| CURRENT TIME STEP
!| MESH           |<->| MESH STRUCTURE
!| NFLOT          |-->| NUMBER OF FLOATS
!| NFLOT_MAX      |-->| MAXIMUM NUMBER OF FLOATS
!| NIT            |-->| NUMBER OF TIME STEPS
!| NPOIN          |-->| NUMBER OF POINTS IN THE MESH
!| SHPFLO         |<->| BARYCENTRIC COORDINATES OF FLOATS IN THEIR 
!|                |   | ELEMENTS.
!| X,Y            |-->| COORDINATES OF POINTS IN THE MESH
!| XFLOT,YFLOT    |<--| POSITIONS OF FLOATING BODIES
!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!
      USE BIEF
      USE STREAMLINE, ONLY : ADD_PARTICLE,DEL_PARTICLE
      USE ALGAE_TRANSP
!
      IMPLICIT NONE
      INTEGER LNG,LU
      COMMON/INFO/LNG,LU
!
!+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
!
      INTEGER, INTENT(IN)             :: NPOIN,NIT,NFLOT_MAX,LT
      INTEGER, INTENT(IN)             :: NELEM,NELMAX
      INTEGER, INTENT(IN)             :: IKLE(NELMAX,3)
      INTEGER, INTENT(INOUT)          :: NFLOT
      INTEGER, INTENT(INOUT)          :: TAGFLO(NFLOT_MAX)
      INTEGER, INTENT(INOUT)          :: ELTFLO(NFLOT_MAX)
      DOUBLE PRECISION, INTENT(IN)    :: X(NPOIN),Y(NPOIN),AT
      DOUBLE PRECISION, INTENT(INOUT) :: XFLOT(NFLOT_MAX)
      DOUBLE PRECISION, INTENT(INOUT) :: YFLOT(NFLOT_MAX)
      DOUBLE PRECISION, INTENT(INOUT) :: SHPFLO(3,NFLOT_MAX)
      TYPE(BIEF_MESH) , INTENT(INOUT) :: MESH
!
!+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
!
      IF(MOD(LT,10).EQ.1) THEN
        CALL ADD_PARTICLE(2.741D3,1.136D4,0.D0,LT,NFLOT,
     &                    NFLOT_MAX,XFLOT,YFLOT,YFLOT,TAGFLO,
     &                    SHPFLO,SHPFLO,ELTFLO,ELTFLO,MESH,1,
     &                    0.D0,0.D0,0.D0,0.D0,0,0)
	   WRITE(*,*) XFLOT
      ENDIF
!
      RETURN
      END

Thanks! This is quite the mystery...
-Simon
The administrator has disabled public write access.

Post-Processing Particles 10 years 1 month ago #14358

  • jmhervouet
  • jmhervouet's Avatar
Hello,

OK, I think I see the problem, the formatted file for the drogues is not named BINARY RESULTS FILE but DROGUES FILE, so nothing is written in your BINARY RESULTS FILE. This is a new feature of version 6.3 which is documented in section "What's new" of the home page, but maybe not in the documentation of version 6.2, hence the misunderstanding.

I hope it helps,

Regards,

JMH
The administrator has disabled public write access.

Post-Processing Particles 10 years 1 month ago #14359

  • schaad
  • schaad's Avatar
That worked! Thank you. The mistake I made was specify the drogues output file with 'BINARY RESULTS FILE' instead of 'DROGUES FILE'. Indeed, this is not in the documentation of version 6.2.

Cheers,
Simon
The administrator has disabled public write access.

Post-Processing Particles 10 years 1 month ago #14361

  • jmhervouet
  • jmhervouet's Avatar
Great! Now you can do nice animations with moving particles...

JMH
The administrator has disabled public write access.

Post-Processing Particles 10 years 1 month ago #14363

  • schaad
  • schaad's Avatar
Actually I have not solved the issue with opening the drogues data in Tecplot. When I try to append the drogues output to the hydraulics data I get an invalid file format error. I am using Tecplot 360 2010. This does not work with the validation case 'flotteurs' nor with my case.

Any advice about this? :)
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.