Welcome, Guest
Username: Password: Remember me

TOPIC: Running several 2D models with OpenPALM

Running several 2D models with OpenPALM 8 years 3 months ago #23443

  • special_20
  • special_20's Avatar
Hello all,

I would like to run several telemac 2D models launched with the OpenPALM coupler. The thing is that the data files have the same name in the telemac code, for example T2DGEO for the geometry files. What I would like to do be able to is to handle several geo files (and the other data files) as T2DGEO_01, T2DGEO_02... with a T2DGEO file for each 2D model. I guess you have done something very similar to run the cases in parallel where you have several sub-domains called T2DGEO_P00002-00001, T2DGEO_P00002-00002. I hope I am clear enough !

Regards.
The administrator has disabled public write access.

Running several 2D models with OpenPALM 8 years 3 months ago #23444

  • special_20
  • special_20's Avatar
Maybe one solution would be to run TELEMAC in parallel in OpenPALM and to rename my data files for each 2D sub-model according to the way they are named when running TELEMAC in parallel, for example : T2DGEO-00001-00000. But I need to know if the partel and gretel files are read by telemac2D.

Regards
The administrator has disabled public write access.

Running several 2D models with OpenPALM 8 years 3 months ago #23460

  • special_20
  • special_20's Avatar
Hello,

One solution is to modify the routines bief_open_files.f, read_config.f and lecdon_telemac2d.f so as to give the path to the temporary folder of telemac where the temporary files are gathered. Here is for example what I did in read_config.f :

IF(NCAR.GT.0) THEN
        CONFIG(1:NCAR+6)=CHAINE(1:NCAR) // 'CONFIG'
        NC=NCAR+6
      ELSE
#ifdef PALM_LATERAL
        CALL LEC_PATH_TMP_FOLDER(path_tmp_folder)
        filename=TRIM(ADJUSTL(path_tmp_folder))//'/CONFIG'
        NC=LEN(TRIM(ADJUSTL(filename)))
        CONFIG(1:NC)=TRIM(ADJUSTL(filename))
#else
        CONFIG(1:6)='CONFIG'
        NC=6
#endif

where path_tmp_folder is the path to my temporary folder. I have tested this solution and it works :)

Regards
The administrator has disabled public write access.

Running several 2D models with OpenPALM 8 years 3 months ago #23492

  • riadh
  • riadh's Avatar
Hello

maybe it is a naive suggestion, but why you run all your models in the same folder? you can manage with Palm to run every model in its own folder and this will avoid all ohter intrusive solutions.

with my kind regards

Riadh
The administrator has disabled public write access.

Running several 2D models with OpenPALM 8 years 3 months ago #23499

  • special_20
  • special_20's Avatar
Hello Riadh,

That's what I thought about first. But to run your 2D model in its own temporary folder with PALM you must precise the path to this folder in the corresponding branch of your 2D model. This implies that if you use 3 2D models you must write 3 PALM branches and specify the path to your folder in each branch. And then the day where you want to use 8 2D models you have to write 8 PALM branches and so on. So your PALM file depends on the 2D models you use

The idea here is to run all your 2D models in parallel from the same PALM branch so that your PALM files does not depend on the number of the 2D models you use but in that case you can not precise the temporary folder in the branch for each 2D model. So we must find a way to get in TELEMAC the path to the temporary file for each 2D model.

I hope I am clear enough. We can talk about this if you come to TUC on October.

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

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