Welcome, Guest
Username: Password: Remember me

TOPIC: New keyword to use new user variables from geometry file

New keyword to use new user variables from geometry file 10 years 7 months ago #12584

  • pilou1253
  • pilou1253's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 584
  • Thank you received: 106
Hi!

I have a suggestion for a possible new feature for a forthcoming release.

I have been wondering if it would be possible to introduce a new keyword to identify one/several user variables that are stored in the geometry file and to create new subroutines that would automatically prepare for their use during the computation (allocating memory, reading data using find_in_sel.f, …).
For example, we could have: NEW KEYWORD = ”VAR1 ”;”VAR2 ”;... with VARi the name of the newly added variables in the geometry file.
VARi etc. could then be stored in arrays of BIEF type that could maybe have names like USERV1 etc. and that could be obtained through USERV1%R, etc…

This operation (reading a variable in the geometry file) can of course already be manually implemented through some programming. This can also be done by using the two BINARY DATA FILE available and then manage the reading of the data. But such a new feature would have the advantage of making access to new (and more) user variables very easy and to allow having all the data stored in one file.

On the other hand I presume that the main disadvantages are useless memory allocation for these new variables unless if memory can be allocated only if the keyword is activated.

Anyway, that is just a suggestion :)

Regards
PL
The administrator has disabled public write access.

New keyword to use new user variables from geometry file 10 years 5 months ago #13325

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
Hello,

Thank you for the suggestion.

I have added this on our TELEMAC Consortium Project Management system as a possible new feature development. I cannot guarantee it will be implemented but we will seriously consider the feature nonetheless.

Cheers,
Sébastien.
The administrator has disabled public write access.
The following user(s) said Thank You: pilou1253

New keyword to use new user variables from geometry file 10 years 5 months ago #13340

  • jmhervouet
  • jmhervouet's Avatar
Hello,

Yes, this could be coupled with PRIVATE ARRAYS :

PRIVATE ARRAYS : 4

which allocates 4 BIEF_OBJ variables stored in :

PRIVE%ADR(1 to 4)%P

We could have a keyword for private arrays names and read them if they are in the geometry file (so far they are given a name in NOMVAR_TELEMAC2D or 3D, along with a MNEMO which is generally one letter, the code for the string VARIABLES FOR GRAPHIC PRINTOUTS (so far it is N, O, R and Z).

With best regards,

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

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