Compare commits

...
561 Commits
Author SHA1 Message Date
Pierre-Antoine Rouby 815716da07 Manifest: Minor change. 2024-07-01 09:54:22 +02:00
Pierre-Antoine Rouby c288a390b5 packages: Fix setup.sh. 2024-05-29 11:39:18 +02:00
Pierre-Antoine Rouby f1377f6336 ci: Minor fixe. 2024-05-29 11:15:10 +02:00
Pierre-Antoine Rouby 6ac808d842 ci: Try archive origin branch name. 2024-05-29 11:12:02 +02:00
Pierre-Antoine Rouby b6aa0afdc7 ci: Fix path (again again and again). 2024-05-29 11:09:07 +02:00
Pierre-Antoine Rouby 03da38eeb0 ci: Update python version. 2024-05-29 11:04:49 +02:00
Pierre-Antoine Rouby e970b2c07a ci: Fix python dl path (again). 2024-05-29 11:02:50 +02:00
Pierre-Antoine Rouby 8d336b888a ci: Minor fixes in dl path. 2024-05-29 10:38:39 +02:00
Pierre-Antoine Rouby f4b7131b98 ci: Minor fixes. 2024-05-29 10:37:26 +02:00
Pierre-Antoine Rouby 07cdf72528 gitlab-ci: Add dl custom python and source with python packages. 2024-05-29 10:35:23 +02:00
Pierre-Antoine Rouby 7d235fdcc2 guix: Minor change. 2024-05-22 16:32:06 +02:00
Pierre-Antoine Rouby 45d6f228cf tools: Add try to pwd user name get. 2024-05-22 16:16:40 +02:00
Pierre-Antoine Rouby 31974bc7b6 pamhyr: Add script to run pamhyr under guix shell env. 2024-05-22 16:02:33 +02:00
Pierre-Antoine Rouby e87db62dce pamhyr: Add setup.sh install script (not functionnal). 2024-05-22 16:00:06 +02:00
Pierre-Antoine Rouby 1eec6ffc85 pamhyr: Add guix manifest. 2024-05-22 15:59:22 +02:00
Pierre-Antoine Rouby 35dd851e08 pamhyr: Add setup.py file (not functionnal). 2024-05-22 15:58:43 +02:00
Pierre-Antoine Rouby 50686e1b65 Pamhyr: Disable native file dialog. 2024-05-22 15:56:45 +02:00
Pierre-Antoine Rouby e45eb3fd69 ci: build-linux: Fix 'pamhyr-x11' path. 2024-05-21 17:27:27 +02:00
Pierre-Antoine Rouby dd86b8b461 Package: Linux: Add script to force pamhyr running with x11. 2024-05-21 17:19:00 +02:00
Theophile Terraz 57d43cd5d3 Merge branch 'master' of gitlab-ssh.irstea.fr:theophile.terraz/pamhyr 2024-05-21 17:02:08 +02:00
Theophile Terraz 14b5b5e3df add purge dialog 2024-05-21 17:01:54 +02:00
Pierre-Antoine Rouby a7e43ca6a7 MainWindow: Info: Sync update with all modelling modules. 2024-05-21 11:08:59 +02:00
Pierre-Antoine Rouby 8ca21c413f IC: Fix display update and optimized discharge plot update. 2024-05-21 10:53:20 +02:00
Pierre-Antoine Rouby 61fd54c496 Geometry, Results: Fix HS display whene not associated. 2024-05-17 16:41:05 +02:00
Pierre-Antoine Rouby b017127b3a Windows: Add nsis icon. 2024-05-17 15:44:48 +02:00
Pierre-Antoine Rouby 52f2d15280 Package: Add icon for windows executable file. 2024-05-17 15:20:17 +02:00
Pierre-Antoine Rouby 5c86e46c72 Checker: Bypass study copy to improve performance. 2024-05-17 14:51:30 +02:00
Pierre-Antoine Rouby a5648851f2 Friction: Add strickler unit. 2024-05-17 14:31:34 +02:00
Pierre-Antoine Rouby cb41520a20 pamhyr: Fix Pep8. 2024-05-17 12:29:20 +02:00
Pierre-Antoine Rouby 537612e5e3 Geometry: Minor change. 2024-05-17 12:22:47 +02:00
Pierre-Antoine Rouby 4e0c671f68 Merge remote-tracking branch 'origin/v0.0.8' 2024-05-17 12:01:17 +02:00
Pierre-Antoine Rouby 507cfb9d53 Friction: Fix reach plot. 2024-05-17 11:55:29 +02:00
Pierre-Antoine Rouby 2013009e8a Mage: Update version. 2024-05-17 11:52:07 +02:00
Pierre-Antoine Rouby f1a1d08458 Pamhyr: Minor change. 2024-05-17 11:51:23 +02:00
Pierre-Antoine Rouby 7de6cc4468 Solver: RubarBE: Disable. 2024-05-17 11:50:07 +02:00
Pierre-Antoine Rouby 783d83e4cc Trad: Update french translate. 2024-05-17 11:48:37 +02:00
Theophile Terraz c366a1a4e7 increase precision of input sediment diameter 2024-05-16 18:06:53 +02:00
Theophile Terraz b784cab94b Merge branch 'v0.0.8' of gitlab-ssh.irstea.fr:theophile.terraz/pamhyr into v0.0.8 2024-05-16 13:01:14 +02:00
Theophile Terraz 78e361d486 debug issue #57 2024-05-16 13:01:03 +02:00
Pierre-Antoine Rouby 3b1f135fdb Geometry: Profile: Change print to logger. 2024-05-15 16:00:58 +02:00
Pierre-Antoine Rouby 2f93d1a83f LC: Use KP delegation. 2024-05-15 15:18:33 +02:00
Pierre-Antoine Rouby 653a26fee1 Geometry: Add hydro. struct. at KPZ plot. 2024-05-15 14:44:42 +02:00
Pierre-Antoine Rouby e33c9cb2f0 Results: Add hydro. struct. on kpc plot. 2024-05-15 14:37:31 +02:00
Pierre-Antoine Rouby 4be43528e3 Pamhyr: Fix Pep8. 2024-05-15 11:29:39 +02:00
Pierre-Antoine Rouby 9d343a42ce IC: Add import action (for BIN file). 2024-05-15 11:09:39 +02:00
Pierre-Antoine Rouby 459722610a IC: Implement copy/paste command. 2024-05-15 09:49:43 +02:00
Theophile Terraz f745dce04e debug 2024-05-14 15:14:29 +02:00
Pierre-Antoine Rouby c1f4aaf957 Merge branch 'arts' into v0.0.8 2024-05-14 14:41:14 +02:00
Pierre-Antoine Rouby f4bf8d3766 Results: Simplify and fix river bottom display. 2024-05-14 14:40:00 +02:00
Pierre-Antoine Rouby 6e94d7a707 Results: PlotH: Add current ts line. 2024-05-14 14:21:33 +02:00
Theophile Terraz 87e8e17e91 forgotten files 2024-05-14 14:13:46 +02:00
Theophile Terraz 9e79178d0f restructure meshing 2024-05-14 11:55:38 +02:00
Theophile Terraz 9d0168a9ee merge 2024-05-13 16:02:36 +02:00
Pierre-Antoine Rouby 9760d41561 Results: Add speed value into row data table. 2024-05-13 15:26:58 +02:00
Pierre-Antoine Rouby 0c039793df IC: Add speed column in table. 2024-05-13 15:24:25 +02:00
Pierre-Antoine Rouby 4cec45131e River: Add a default sediment layers. 2024-05-13 15:00:56 +02:00
Pierre-Antoine Rouby e6c08cb4e4 Geometry: Fix pep8. 2024-05-13 14:45:59 +02:00
Pierre-Antoine Rouby 2d17d8cfe4 Geometry: Add import exception handler. 2024-05-13 14:44:15 +02:00
Pierre-Antoine Rouby ef583fc9bb Geometry: Meshing: Prepare code for next 'mailleurTT' version. 2024-05-13 14:27:24 +02:00
Pierre-Antoine Rouby db87b1e214 Geometry: Add left and right line into XY plot. 2024-05-13 09:56:09 +02:00
Theophile Terraz 5790bdfe82 add purge in profile and geometry 2024-05-07 17:42:43 +02:00
Pierre-Antoine Rouby 731567369e Geometry: Remove old OnPickEvent file. 2024-05-07 17:02:42 +02:00
Pierre-Antoine Rouby 317cbf904d Geometry: Add water level at shift click, end of onpickevent refactoring. 2024-05-07 16:58:29 +02:00
Pierre-Antoine Rouby f4561494f6 Merge branch 'RubarBE' into v0.0.8. 2024-05-07 14:43:58 +02:00
Theophile Terraz 5164891928 add purge 2024-05-07 14:41:09 +02:00
Pierre-Antoine Rouby 5e79e29823 Geometry: Start OnPickEvent refactoring. 2024-05-07 14:12:53 +02:00
Pierre-Antoine Rouby cc3649fcb8 MeshingTools: Fix sync call. 2024-05-03 15:57:38 +02:00
Pierre-Antoine Rouby ab11d15729 Results: Plot: Fix display whene more than 10 sl. 2024-05-03 15:03:43 +02:00
Pierre-Antoine Rouby 0e75d67671 Geometry: Fix display with more than 10 guidelines. 2024-05-03 14:56:11 +02:00
Pierre-Antoine Rouby ba81f923d9 Results: CustomPlot: Use automatic x and y lim. 2024-05-03 14:40:53 +02:00
Theophile Terraz a0cdb182fd debug 2024-05-02 15:05:55 +02:00
Theophile Terraz ca7296ca8c translation 2024-04-30 16:31:53 +02:00
Theophile Terraz fb2d0d3e71 Merge branch 'master' of gitlab-ssh.irstea.fr:theophile.terraz/pamhyr 2024-04-30 14:24:15 +02:00
Theophile Terraz 2afd641f0f debug param init_internal 2024-04-30 14:22:42 +02:00
Theophile Terraz d871bbfc3b debug enable hydraulic structures 2024-04-30 14:18:12 +02:00
Pierre-Antoine Rouby 5e9ab81363 tools: Add relase mail generator. 2024-04-26 12:10:32 +02:00
Pierre-Antoine Rouby d0acface41 Geometry, doc: Fix pointXYZ foreign key. 2024-04-26 10:04:43 +02:00
Pierre-Antoine Rouby aea7cdb823 doc: dev: Add database scheme images. 2024-04-26 09:40:14 +02:00
Pierre-Antoine Rouby e066c6ab94 Pamhyr2: Fix pep8. 2024-04-24 16:38:25 +02:00
Pierre-Antoine Rouby 8e82772cfc Checker: Add modules impact and add IC and BC study checker. 2024-04-24 16:32:52 +02:00
Pierre-Antoine Rouby 441a064d84 Solver: CommandLine: Try fix Windows encoding crash. 2024-04-24 09:51:58 +02:00
Pierre-Antoine Rouby ee6b2a94eb Results: Add plot toolsbar iso view and back/forward option. 2024-04-24 09:51:28 +02:00
Pierre-Antoine Rouby 07761716e4 Solver: Mage: Check is node is enable before BC export. 2024-04-24 09:33:33 +02:00
Pierre-Antoine Rouby 6dc96b86b4 Merge branch 'shape' into v0.0.8 2024-04-23 14:35:01 +02:00
Pierre-Antoine Rouby 8c2874e04d Geometry: Compute KP at shape file import. 2024-04-23 14:32:21 +02:00
Pierre-Antoine Rouby c7001bf0fa Network: Fix pep8. 2024-04-23 14:10:55 +02:00
Pierre-Antoine Rouby f62b209ffb Merge branch 'multiple-edge-between-nodes' into v0.0.8 2024-04-23 14:07:54 +02:00
Pierre-Antoine Rouby 0fe71b2b92 Pamhyr2: Fix full requirements list. 2024-04-23 14:03:01 +02:00
Pierre-Antoine Rouby e528ba5278 Geometry: Add shapefile import file format. 2024-04-23 11:50:35 +02:00
Pierre-Antoine Rouby fd1b2b1041 doc: dev: Minor change. 2024-04-23 09:09:54 +02:00
Pierre-Antoine Rouby e5422c71f5 View: Network: Minor change. 2024-04-22 16:48:17 +02:00
Pierre-Antoine Rouby efd8960e1e Pamhyr2: Fix pep8. 2024-04-22 16:46:50 +02:00
Pierre-Antoine Rouby 8dcb0a298e Pamhyr2: View: Tools: Add comment. 2024-04-22 16:40:58 +02:00
Pierre-Antoine Rouby acbd3537c0 Pamhyr2: Minor change and method documentation. 2024-04-22 16:29:23 +02:00
Pierre-Antoine Rouby 145c301eed doc: dev: Update documentation. 2024-04-22 16:28:41 +02:00
Pierre-Antoine Rouby ec91a8b63f Solver: Fix SIN export and error handler at export. 2024-04-22 11:33:07 +02:00
Pierre-Antoine Rouby ffdeb28bfd Network: Fix potential crash with maptoscene. 2024-04-22 11:07:42 +02:00
Pierre-Antoine Rouby df1ac5586e IC: Fix incline computation in case of zero marging. 2024-04-19 16:31:12 +02:00
Pierre-Antoine Rouby ab1b7a2605 Save/Backup: Add mutual exclusion on save methode and block backup signal. 2024-04-19 10:39:25 +02:00
Pierre-Antoine Rouby 53456cf7fa IC: Fix generator spinbox max size. 2024-04-17 14:47:49 +02:00
Pierre-Antoine Rouby 1cbdda1ec5 Solver: Log: Fix new line spliting (depend of OS). 2024-04-17 14:46:17 +02:00
Pierre-Antoine Rouby ba2fa25636 Pamhyr2: Fix some fonts size and family. 2024-04-17 14:45:32 +02:00
Pierre-Antoine Rouby 5189cbaa6f Windows: Fix logging file encoding. 2024-04-17 14:27:01 +02:00
Pierre-Antoine Rouby f1ce2e4b10 Windows: Enable console but hide it. 2024-04-17 12:18:28 +02:00
Pierre-Antoine Rouby 50ae49c0ec Windows: Fix UTF-8 en/decode. 2024-04-17 12:17:25 +02:00
Pierre-Antoine Rouby 502c2240f7 Solver: Parameters: Fix Y/N french translate. 2024-04-17 09:42:17 +02:00
Pierre-Antoine Rouby b784f00b92 Solver: Mage: Fix pep8. 2024-04-16 15:39:51 +02:00
Pierre-Antoine Rouby 0c0d7f3481 Network: Fix edge delete whene there are multiple edge between two node. 2024-04-16 15:15:30 +02:00
Pierre-Antoine Rouby 457dac477a Solver: Mage: Minor change. 2024-04-16 14:01:59 +02:00
Pierre-Antoine Rouby dc114f759d Solver: Mage: Enable LC export. 2024-04-16 12:04:19 +02:00
Pierre-Antoine Rouby 672f81f216 MeshingTools: Fix mailleurTT path. 2024-04-16 10:47:07 +02:00
Pierre-Antoine Rouby 3516986ff2 Geometry: Meshing: Fix space step maximum value to 9999.99 (m). 2024-04-16 10:12:15 +02:00
Pierre-Antoine Rouby 7ecd98a5fb Solver: Mage: Add error file by default. 2024-04-16 08:32:19 +02:00
Pierre-Antoine Rouby 1fdeab9685 Geometry: Meshing: Minor change. 2024-04-15 15:42:37 +02:00
Pierre-Antoine Rouby ebd4e64cc3 Pamhyr2: Update Mage version to v8.3.5 2024-04-15 11:39:06 +02:00
Pierre-Antoine Rouby 1452f4129f Config: Fix configuration save whene click cancel. 2024-04-15 11:16:41 +02:00
Pierre-Antoine Rouby 04d43f3f28 Backup: Fix backup. 2024-04-15 11:16:20 +02:00
Pierre-Antoine Rouby b7ebf961ac Geometry: Fix geometry loading. 2024-04-15 10:29:56 +02:00
Pierre-Antoine Rouby 28c7a0177a HS: Basic: Fix plot AC init. 2024-04-15 09:35:10 +02:00
Pierre-Antoine Rouby 9c5ea0bdd9 Network: Reverse order for edges adding in scene to fix mouse selection. 2024-04-10 16:36:14 +02:00
Pierre-Antoine Rouby cd540b0146 Network: Display edge as an arc. 2024-04-10 16:24:12 +02:00
Pierre-Antoine Rouby 62860750f2 Config: Fix useless print. 2024-04-09 09:37:29 +02:00
Pierre-Antoine Rouby 4d8277c5c2 Pamhyr2: Fix pep8. 2024-04-08 16:25:25 +02:00
Pierre-Antoine Rouby b9fddcf78c LC: Add DMY datetime support. 2024-04-08 16:13:23 +02:00
Pierre-Antoine Rouby a834e1905d BC: Add DMY datetime support. 2024-04-08 16:10:39 +02:00
Pierre-Antoine Rouby de1f5c1944 RunSolver: Fix copy methode. 2024-04-08 15:37:00 +02:00
Pierre-Antoine Rouby 6d9b193d25 Solver: RubarBE: Add RubarBE at solvers and fix export. 2024-04-08 15:11:04 +02:00
Pierre-Antoine Rouby 982d346264 Solver: RubarBE: Add tps export. 2024-04-08 13:45:52 +02:00
Pierre-Antoine Rouby 4c927eb7c7 Model: Profile: Add speed computation methode. 2024-04-08 11:40:12 +02:00
Pierre-Antoine Rouby fead93f0b9 Solver: RubarBE: Add ts export. 2024-04-08 11:39:53 +02:00
Pierre-Antoine Rouby ca3ba3adb6 Solver: RubarBE: Add frictions export. 2024-04-05 16:45:13 +02:00
Pierre-Antoine Rouby 9f87a38107 Solver: RubarBE: Add MAIL file. 2024-04-05 16:03:55 +02:00
Pierre-Antoine Rouby 329572d191 Solver: RubarBE: Add rubarbe solver (WIP). 2024-04-05 15:28:05 +02:00
Pierre-Antoine Rouby ae21315593 Network: Fix crash when edge addition click on the void. 2024-04-05 11:15:09 +02:00
Pierre-Antoine Rouby b209547a5b Solver: Disable mage fake 7. 2024-04-03 17:48:09 +02:00
Pierre-Antoine Rouby 8a0f214144 Arts: Fix missing icon. 2024-04-03 16:12:29 +02:00
Pierre-Antoine Rouby 5ff3b9457a HydraulicStructures: Basic: Fix table setup. 2024-04-03 16:01:24 +02:00
Pierre-Antoine Rouby 8ec25cac46 Arts: Delete old and useless icons. 2024-04-03 15:59:58 +02:00
Pierre-Antoine Rouby 39180f8ea3 Arts: Add reload icon. 2024-04-03 15:53:42 +02:00
Pierre-Antoine Rouby 2203b2ca8b Arts: Add zoom icons. 2024-04-03 15:13:39 +02:00
Pierre-Antoine Rouby faab0d78cf tests_cases: Fix and update Saar study. 2024-04-03 14:49:19 +02:00
Pierre-Antoine Rouby c3a5ea1b91 Arts: Add meshing icon. 2024-04-03 11:56:47 +02:00
Pierre-Antoine Rouby 6349c4f752 Arts: Renew up/down/left/right and import/export. 2024-04-03 11:36:36 +02:00
Pierre-Antoine Rouby 8c5fa68f11 Arts: Add open, renew logo and minor change. 2024-04-03 10:42:51 +02:00
Pierre-Antoine Rouby a487cd8e64 AddFile, REPLine: Fix modified status. 2024-04-02 17:07:04 +02:00
Pierre-Antoine Rouby 92eac86c68 AddFiles, REPLine: Add undo commands. 2024-04-02 16:18:21 +02:00
Pierre-Antoine Rouby cd2e29a77d MainWindow: Set menu bar to not bold. 2024-04-02 09:28:11 +02:00
Pierre-Antoine Rouby ce090c6437 Plot: ToolBar: Minor change. 2024-04-02 09:26:11 +02:00
Pierre-Antoine Rouby f80be0f3da Arts: Update SolverLog window. 2024-03-29 17:41:11 +01:00
Pierre-Antoine Rouby fd9a338365 Arts: Minor change. 2024-03-29 17:37:54 +01:00
Pierre-Antoine Rouby 776164310b Arts: Add edit icon and some minor change. 2024-03-29 17:10:33 +01:00
Pierre-Antoine Rouby 52ab9f4ade Arts: MainWindow: Add menu icons. 2024-03-29 16:02:59 +01:00
Pierre-Antoine Rouby 88c75c0d35 Arts: Add save icon and some change. 2024-03-29 16:00:05 +01:00
Pierre-Antoine Rouby cd571b6ec4 Arts: Update geometry and minor change. 2024-03-29 15:05:18 +01:00
Pierre-Antoine Rouby 701f9ab69b arts: Renew friction, add run, sort, up and down icons. 2024-03-29 15:00:59 +01:00
Pierre-Antoine Rouby 6d47664767 arts: Add network, geometry, friction, etc. icons and add toolbar on mainwindow. 2024-03-29 12:02:12 +01:00
Pierre-Antoine Rouby 8cb8c50998 arts: Add new logo as ascii art. 2024-03-27 18:20:24 +01:00
Pierre-Antoine Rouby f14a149748 arts: Update Pamhyr2 logo. 2024-03-27 17:57:08 +01:00
Pierre-Antoine Rouby beb2c2fec0 arts: Renew add and del icons and add import and export logo. 2024-03-27 17:50:45 +01:00
Pierre-Antoine Rouby 48e010f195 Pamhyr2: Add new logo. 2024-03-27 16:14:52 +01:00
Pierre-Antoine Rouby e350b7d8f5 Solver: Mage8: Do not add additional files into REP file. 2024-03-27 10:50:23 +01:00
Pierre-Antoine Rouby e7e1582836 MainWindow: Checker: Minor change and fixes. 2024-03-27 09:57:53 +01:00
Pierre-Antoine Rouby 9d9a8a7ced MainWindow: Info: Simplify study section. 2024-03-27 09:40:14 +01:00
Pierre-Antoine Rouby aef81d088c Meshing: Add trivial MashingWithMAgeMailleurTT unit tests. 2024-03-27 09:36:34 +01:00
Pierre-Antoine Rouby 35b421b4df Pamhyr2: Fix Pep8. 2024-03-27 09:33:43 +01:00
Pierre-Antoine Rouby dbbae7a53f Translate: Rebuild Pamhyr2 french translate. 2024-03-27 09:27:37 +01:00
Pierre-Antoine Rouby b9ace9f58f MainWindow: Remove obsolete actions. 2024-03-26 17:54:32 +01:00
Pierre-Antoine Rouby 48aa5cb1aa Config: Update config with new mage_fake7 solver and new mage path. 2024-03-26 15:29:45 +01:00
Pierre-Antoine Rouby b517c38cb9 Solver: Mage: Add mage fake 7. 2024-03-26 15:18:05 +01:00
Pierre-Antoine Rouby d158c8ad7a Windows: Fix 'pwd' import. 2024-03-26 13:49:56 +01:00
Pierre-Antoine Rouby 8c9eeb6160 Windows: Fix NSI file. 2024-03-26 11:02:02 +01:00
Pierre-Antoine Rouby aedb8c46fc REPLines: Add REP lines into model, view and minor change. 2024-03-26 10:40:57 +01:00
Pierre-Antoine Rouby 1ff895368e pamhyr: Fix save after backup and minor change. 2024-03-26 08:36:45 +01:00
Pierre-Antoine Rouby 48e30125bb AdditionalFiles: Add model, view and solver export. 2024-03-25 17:21:31 +01:00
Pierre-Antoine Rouby db416d25de pamhyr: Fix Pep8. 2024-03-25 14:04:55 +01:00
Pierre-Antoine Rouby da18a8b712 Study: Add default description example. 2024-03-25 13:57:27 +01:00
Pierre-Antoine Rouby 48c98cddba Study: Switch rich text to markdown. 2024-03-22 17:07:13 +01:00
Pierre-Antoine Rouby 16a0e03d1d Study: Add riche text option for study description editing. 2024-03-22 16:12:57 +01:00
Pierre-Antoine Rouby e0f580daf6 windows: Fix widgets path. 2024-03-22 15:13:35 +01:00
Pierre-Antoine Rouby c1c16964eb windows: Disable console. 2024-03-22 15:03:47 +01:00
Pierre-Antoine Rouby d0134d6415 ci: Fix hash path. 2024-03-22 14:54:15 +01:00
Pierre-Antoine Rouby 9f4c759ea3 package: Fix exe and _internal position. 2024-03-22 14:51:10 +01:00
Pierre-Antoine Rouby 661e2071d1 Package: Rename mage to mage8 and reorganise package installation dir. 2024-03-22 14:43:51 +01:00
Pierre-Antoine Rouby 0f25334032 pamhyr: Close study DB if already init. 2024-03-22 14:03:46 +01:00
Pierre-Antoine Rouby 334ada3dcc pamhyr: Add missing dependencies. 2024-03-22 11:32:49 +01:00
Pierre-Antoine Rouby df0b5bb014 MainWindow: Minor change. 2024-03-22 11:24:58 +01:00
Pierre-Antoine Rouby 20686086d8 pamhyr: Add CONFIG modules. 2024-03-22 11:23:25 +01:00
Pierre-Antoine Rouby 1be8f6c434 MainWindow: Add status at save/backup. 2024-03-22 11:17:18 +01:00
Pierre-Antoine Rouby f8c16d8c7c pamhyr: Reopen backup if newer than last save in case of crash. 2024-03-22 10:55:48 +01:00
Pierre-Antoine Rouby 7f3cf46ee1 pamhyr: Add periodic backup. 2024-03-22 09:51:53 +01:00
Pierre-Antoine Rouby 632cd2cd4c Checker: Fix checker table update at study close. 2024-03-22 08:45:37 +01:00
Pierre-Antoine Rouby 0f5243f36a Geometry, checker: Minor change. 2024-03-22 08:29:04 +01:00
Pierre-Antoine Rouby 137368cc27 pamhyr: Fix pep8. 2024-03-20 17:08:11 +01:00
Pierre-Antoine Rouby e343d284d9 MainWindow: Checker: Add lists. 2024-03-20 17:03:37 +01:00
Pierre-Antoine Rouby a23692a29c MainWindow: Checker: Add worker. 2024-03-20 16:08:53 +01:00
Pierre-Antoine Rouby 30170df1b1 Mainwindow: Checker: Add table. 2024-03-20 12:24:13 +01:00
Pierre-Antoine Rouby 3be4e6c112 MainWindow: Fix missing file. 2024-03-20 09:25:59 +01:00
Pierre-Antoine Rouby e5650b5378 MainWindow: Checkers: Add checker tab template. 2024-03-19 17:21:27 +01:00
Pierre-Antoine Rouby 67f534a6f6 Checker: Add related module(s). 2024-03-19 12:00:44 +01:00
Pierre-Antoine Rouby 51031e7359 Pamhyr: Add pamhyr modules flags enum and checker status OR operator. 2024-03-19 09:18:28 +01:00
Pierre-Antoine Rouby e215e0f14a MainWindow: Info: Minor change. 2024-02-28 16:49:10 +01:00
Pierre-Antoine Rouby 1099d5f282 Pamhyr2: Fix Pep8. 2024-02-28 16:28:54 +01:00
Pierre-Antoine Rouby 330761a372 MainWindow: Info: Add some informations. 2024-02-28 16:27:09 +01:00
Pierre-Antoine Rouby 81f38b942c Reservoir: Edit: Fix undo/redo update. 2024-02-28 15:44:58 +01:00
Pierre-Antoine Rouby 07cefceed8 Network: Add reservoir shortcut at network edit. 2024-02-28 15:40:57 +01:00
Pierre-Antoine Rouby ed5e520b35 Network: Refacto graph context menu. 2024-02-28 10:49:38 +01:00
Pierre-Antoine Rouby 36b62260b1 Results: Fix results export. 2024-02-27 15:40:21 +01:00
Pierre-Antoine Rouby 3e085dd7c6 MainWindow: Add minimal info tab. 2024-02-27 15:40:08 +01:00
Pierre-Antoine Rouby a18fd29795 pamhyr: Fix Pep8. 2024-02-26 16:37:09 +01:00
Pierre-Antoine Rouby 76e4f4b80e Results: Add waiting window at results reading. 2024-02-26 16:33:45 +01:00
Pierre-Antoine Rouby 8466531916 MainWindow: Add BC short cut for sediment. 2024-02-26 14:21:49 +01:00
Pierre-Antoine Rouby a4c5d34720 Pamhyr: Centralize ND and NA translate. 2024-02-21 17:19:50 +01:00
Pierre-Antoine Rouby 2e158f4c1b Pamhyr: Factorize some translate. 2024-02-21 15:52:16 +01:00
Pierre-Antoine Rouby b3a7e7f465 HS: Remove useless print. 2024-02-21 10:53:46 +01:00
Pierre-Antoine Rouby 1a66188411 HS: Minor fixes. 2024-02-21 10:49:47 +01:00
Pierre-Antoine Rouby 485b2cad1e ci: Update mage version. 2024-02-20 17:07:12 +01:00
Pierre-Antoine Rouby 3bcd90f7ae Pamhyr: Update translate. 2024-02-20 16:58:54 +01:00
Pierre-Antoine Rouby 586f17dc2a Results, tools: Fix negative timestamp on Windows and some others fixes. 2024-02-20 15:12:51 +01:00
Pierre-Antoine Rouby 9863b05c30 tools: Fix timestamp to pamhyr notation function for Windows. 2024-02-20 14:25:23 +01:00
Pierre-Antoine Rouby a9f92637ca Solver: Mage: Fix ST file name. 2024-02-20 12:07:30 +01:00
Pierre-Antoine Rouby 6b8b1b8e1e Geometry: Fix update. 2024-02-20 11:29:51 +01:00
Pierre-Antoine Rouby c3c5802be2 Solver: Mage: Fix ST file name export. 2024-02-20 11:14:39 +01:00
Pierre-Antoine Rouby ab776f15f4 Friction: Connect to geometry update. 2024-02-20 10:53:22 +01:00
Pierre-Antoine Rouby ebc3e938bf Results: Fix KPC update where no sediment. 2024-02-20 10:36:18 +01:00
Pierre-Antoine Rouby 9cc3bb23c0 IC: Propagate update, update at gemometry change and minor change. 2024-02-20 10:25:04 +01:00
Pierre-Antoine Rouby d2f275c49f Results: Add export function. 2024-02-19 16:44:37 +01:00
Pierre-Antoine Rouby aec31df520 Results: Change default tab. 2024-02-19 15:47:59 +01:00
Pierre-Antoine Rouby 76745dc9d0 Pamhyr: Fix Pep8 and minor change. 2024-02-19 15:44:04 +01:00
Pierre-Antoine Rouby 25dce4d386 Results: Add bedload sediment results to KPC plot. 2024-02-19 15:38:06 +01:00
Pierre-Antoine Rouby 1c736df647 Results: Add overflow to KPC plot. 2024-02-19 14:41:12 +01:00
Pierre-Antoine Rouby aeae8fb710 Results: Update plot XY and add overflow on this plot. 2024-02-19 14:32:10 +01:00
Pierre-Antoine Rouby 6055065e27 Results: Update plot KPC. 2024-02-19 10:57:58 +01:00
Pierre-Antoine Rouby a08b2c77d6 Results: Update AC plot with max water level. 2024-02-19 10:19:46 +01:00
Pierre-Antoine Rouby f9a099a284 Results: Hydrograph: Add legend. 2024-02-19 09:46:43 +01:00
Pierre-Antoine Rouby 62fcafa982 Results: Renew hydrograph. 2024-02-16 16:56:46 +01:00
Pierre-Antoine Rouby 065d94eb4a Results: Add 'raw_data' tab and delete sediment tab. 2024-02-16 15:44:50 +01:00
Pierre-Antoine Rouby 7760181baa Friction: Apply new PamhyrPlot features. 2024-02-16 14:35:37 +01:00
Pierre-Antoine Rouby 9302d1fabc SL: Apply new PamhyrPlot features. 2024-02-16 14:16:58 +01:00
Pierre-Antoine Rouby d1d63c8c29 Reservoir: Apply new PamhyrPlot features. 2024-02-16 11:22:29 +01:00
Pierre-Antoine Rouby bfd166b717 IC: Apply new PamhyrPlot features. 2024-02-16 11:16:18 +01:00
Pierre-Antoine Rouby 4f747f8fa7 HS: Apply new PamhyrPlot features. 2024-02-16 10:58:10 +01:00
Pierre-Antoine Rouby 2111307965 LC: Update plot with PmahyrPlot new features. 2024-02-16 10:18:29 +01:00
Pierre-Antoine Rouby 065e1f063f Pamhyr: Change time edition and plot display (exp BC). 2024-02-16 10:04:22 +01:00
Pierre-Antoine Rouby 5226836211 Pamhyr: Fix Pep8. 2024-02-14 17:03:05 +01:00
Pierre-Antoine Rouby c58dc5785a Plot: Add a default colors set and delete geo:plot_xy dependence on geo:plot_ac. 2024-02-14 16:44:41 +01:00
Pierre-Antoine Rouby 30d76da32f Geometry: Renew Plot AC. 2024-02-14 16:23:48 +01:00
Pierre-Antoine Rouby 876521fdea Geometry: Renew PlotKPC. 2024-02-14 15:49:20 +01:00
Pierre-Antoine Rouby e1e5279366 Plot: Start refactoring with Geometry.PlotXY at exemple. 2024-02-14 15:15:08 +01:00
Pierre-Antoine Rouby 32886c5034 Configure: Remove unused configuration. 2024-02-14 09:37:35 +01:00
Pierre-Antoine Rouby 41e14208e4 SQL: Move SQL class to separate file. 2024-02-14 09:29:34 +01:00
Pierre-Antoine Rouby b79fc28a5f ListedSubWindow: Logging minor change. 2024-02-13 13:33:31 +01:00
Pierre-Antoine Rouby ef72ff6903 doc: Fix Pep8. 2024-02-13 11:51:45 +01:00
Pierre-Antoine Rouby 82e8b510ca Pamhyr: Close sub windows at model close. 2024-02-13 11:46:06 +01:00
Pierre-Antoine Rouby 8109ddf78f Pamhyr: Chose to close all subwindow at window close. 2024-02-13 11:43:24 +01:00
Pierre-Antoine Rouby f0f6ad17e2 Pamhyr: Add recursive window activation. 2024-02-13 11:32:16 +01:00
Pierre-Antoine Rouby 83d53a46fb Pamhyr: Add windows list recursively. 2024-02-13 11:25:53 +01:00
Pierre-Antoine Rouby a8c8e14d6a MainWindow: Add windows menu with list of windows (depth 1). 2024-02-13 11:12:25 +01:00
Pierre-Antoine Rouby e96e291ec4 Pamhyr: Add update propagation mechanism. 2024-02-13 09:23:36 +01:00
Pierre-Antoine Rouby e03ebedfdf tools: licence.el: Minor change. 2024-02-12 17:08:09 +01:00
Pierre-Antoine Rouby deaf114fa3 Pamhyr: Update licence. 2024-02-12 17:06:13 +01:00
Pierre-Antoine Rouby 0071ef22d7 Study: Add window title translate. 2024-02-12 15:43:34 +01:00
Pierre-Antoine Rouby 58924aaf3a Stricklers: Add window title translate. 2024-02-12 15:41:34 +01:00
Pierre-Antoine Rouby d6af6ce486 SP: Add window title translate. 2024-02-12 15:36:30 +01:00
Pierre-Antoine Rouby b1d0e6dc55 SL: Add windows title translate. 2024-02-12 15:34:30 +01:00
Pierre-Antoine Rouby a200adb51a RunSolver: Add windows title translate. 2024-02-12 15:18:01 +01:00
Pierre-Antoine Rouby 6ea00200b0 Results: Add window title translate. 2024-02-12 15:12:34 +01:00
Pierre-Antoine Rouby 5cf03d7ae0 Results: Minor change. 2024-02-12 15:10:47 +01:00
Pierre-Antoine Rouby 3b5fbdabd4 About: Update copyright date. 2024-02-12 15:09:53 +01:00
Pierre-Antoine Rouby 18c5d9b480 Results: Add window title translate. 2024-02-12 15:08:40 +01:00
Pierre-Antoine Rouby fe5c050c61 Reservoir: Add windows title translate. 2024-02-12 14:58:10 +01:00
Pierre-Antoine Rouby a7c56e3920 Network: Add window title translate. 2024-02-12 14:50:12 +01:00
Pierre-Antoine Rouby a519228856 LC: Add windows title translate. 2024-02-12 14:46:09 +01:00
Pierre-Antoine Rouby e1f5628a4f IC: Add windows title translate and minor change. 2024-02-12 14:41:05 +01:00
Pierre-Antoine Rouby e4eee1c29e (B)HS: Add windows title translate. 2024-02-12 14:34:33 +01:00
Pierre-Antoine Rouby 0fc5bd3c10 Geometry: Add windows title translate. 2024-02-12 14:26:40 +01:00
Pierre-Antoine Rouby 77de17d7e3 Friction: Add window title translate. 2024-02-12 14:19:31 +01:00
Pierre-Antoine Rouby 87fcf1c610 Debug, Doc: Add windows title translate. 2024-02-12 14:16:12 +01:00
Pierre-Antoine Rouby 8895d0d565 Config: Add windows title translate. 2024-02-12 14:11:02 +01:00
Pierre-Antoine Rouby 6340d9ea0b CheckList: Add window title translate. 2024-02-12 14:02:55 +01:00
Pierre-Antoine Rouby 62aaa276a7 BC: Translate window title. 2024-02-12 13:58:39 +01:00
Pierre-Antoine Rouby 0391775fed Geometry: Meshing: Add lm parameter translate. 2024-02-12 10:53:00 +01:00
Pierre-Antoine Rouby 400b743feb Geometry: Meshing: Fix pep8. 2024-02-09 17:28:29 +01:00
Pierre-Antoine Rouby 754910f514 Geometry: Meshing: Add lm options (no traduction). 2024-02-09 17:27:09 +01:00
Pierre-Antoine Rouby 614285804d Geometry: Meshing: Add "directrices". 2024-02-09 17:19:13 +01:00
Pierre-Antoine Rouby 1b22ba436b Geometry: Meshing: Add cross sections limites. 2024-02-09 17:08:29 +01:00
Pierre-Antoine Rouby 387d462c2c Geometry: Meshing: Update windows with radiobutton instead of checkbox. 2024-02-09 16:47:51 +01:00
Pierre-Antoine Rouby e6178525d7 Geometry: Add missing file. 2024-02-07 17:19:22 +01:00
Pierre-Antoine Rouby a663dc482c Meshing: Add lplan and linear to meching options. 2024-02-07 17:09:50 +01:00
Pierre-Antoine Rouby b913d76972 Meshing: Mage: Change API of mailleurTT for the next mage version. 2024-02-07 16:56:18 +01:00
Pierre-Antoine Rouby ab276db78c Meshing: Add minimal meshing option dialog. 2024-02-07 16:04:59 +01:00
Pierre-Antoine Rouby 34038d2844 README: Replace installation instruction to link to wiki documentation. 2024-02-07 14:28:04 +01:00
Pierre-Antoine Rouby c27ea5c447 Doc: wiki: Add defender message screenshot. 2024-02-07 12:00:14 +01:00
Pierre-Antoine Rouby a8c71e475e Pep8: Fix. 2024-02-07 11:26:29 +01:00
Pierre-Antoine Rouby 41673145ee Translate: Minor change. 2024-02-07 11:23:15 +01:00
Pierre-Antoine Rouby 4757c7d051 Translate: Update. 2024-02-07 11:22:22 +01:00
Pierre-Antoine Rouby 5619b98468 Solver: Run: Close checklist at solver run, resize solver window and fix empty message. 2024-02-07 10:23:02 +01:00
Pierre-Antoine Rouby 630eb98343 SL: Fix default name. 2024-02-07 10:09:18 +01:00
Pierre-Antoine Rouby 5412cb4d2d HS: Add default name. 2024-02-07 10:06:18 +01:00
Pierre-Antoine Rouby 8f46f128ff SL: Add default name. 2024-02-07 10:00:30 +01:00
Pierre-Antoine Rouby 8807d4d98b Reservoir: Add default name. 2024-02-07 09:59:22 +01:00
Pierre-Antoine Rouby 7719f5270d BC, LC: Add default name. 2024-02-07 09:57:23 +01:00
Pierre-Antoine Rouby afb4c1b61e Friction: Add id to friction and default name to stricklers. 2024-02-07 09:52:43 +01:00
Pierre-Antoine Rouby 28bea42b15 River: Add default reach at study creation. 2024-02-07 09:43:13 +01:00
Pierre-Antoine Rouby 955af412ea MainWindow: Make toolbar run launch the lasest solver used and add sc on F6. 2024-02-06 15:21:51 +01:00
Pierre-Antoine Rouby 49dd3c65e1 ci: Set tag message to release message and minor change. 2024-02-05 13:38:54 +01:00
Pierre-Antoine Rouby b2f41f88c9 ci: Minor change to fix sha256 path. 2024-02-05 13:25:19 +01:00
Pierre-Antoine Rouby f3500c7f24 ci: Add sha256 to release artefact. 2024-02-05 11:52:56 +01:00
Pierre-Antoine Rouby 1cbdc9deff ci: Disable PDF of user documentations. 2024-02-05 11:42:43 +01:00
Pierre-Antoine Rouby 89652cc080 ci: Add packages checksum. 2024-02-05 11:39:56 +01:00
Pierre-Antoine Rouby fe3f151e0b ci: Minor change. 2024-02-05 11:18:33 +01:00
Pierre-Antoine Rouby 16caae9d40 ci: Add build check. 2024-02-05 11:14:14 +01:00
Pierre-Antoine Rouby d541becb1a ci: Add antivirus check with clamav scan. 2024-02-02 11:23:39 +01:00
Pierre-Antoine Rouby 21e97d4e30 Solvers: Disable generic solver. 2024-02-02 10:25:41 +01:00
Pierre-Antoine Rouby 9fd9bd95f4 SolverParameters: Minor change. 2024-02-02 10:17:54 +01:00
Pierre-Antoine Rouby fe9c348ee0 Friction: SQL: Fix type name. 2024-01-31 09:57:58 +01:00
Pierre-Antoine Rouby 0d36ba188e Geometry: Export/Import file extention add lower case. 2024-01-31 09:37:17 +01:00
Pierre-Antoine Rouby 5a6d55c2ca MainWindow: Minor change. 2024-01-31 09:27:21 +01:00
Pierre-Antoine Rouby 36ad9562eb MainWindow: Fix save as function. 2024-01-31 09:23:50 +01:00
Pierre-Antoine Rouby bf06a9fe43 Network: Set unselected edges to black. 2024-01-31 09:12:23 +01:00
Pierre-Antoine Rouby 34c9fbd77a pamhyr: Some hot fixes... 2024-01-30 16:23:00 +01:00
Pierre-Antoine Rouby f4ca2650e5 Some hot fix. 2024-01-30 13:04:53 +01:00
Pierre-Antoine Rouby 1d0aded01d HS: input_pk hot fix. 2024-01-30 10:32:50 +01:00
Pierre-Antoine Rouby 3322bafdca MainWindow: doc: Mage: Switch odt to pdf. 2024-01-29 17:23:45 +01:00
Pierre-Antoine Rouby 6a0f66c244 Geometry: Revert previous plot display fix. 2024-01-29 16:51:49 +01:00
Pierre-Antoine Rouby 40757b949d Results: Fix axes previous line. 2024-01-29 16:37:42 +01:00
Pierre-Antoine Rouby b6c91f63f7 doc: paper: 2023: Simhydro: Add the PDF version of paper preprint. 2024-01-29 16:14:16 +01:00
Pierre-Antoine Rouby e36206b436 ci: Add mage documentation. 2024-01-29 15:55:15 +01:00
Pierre-Antoine Rouby 797a853b36 Solver: Mage: Fix pep8. 2024-01-29 15:46:08 +01:00
Pierre-Antoine Rouby bdc5e35453 HS: Fix input_kp type for export. 2024-01-29 15:43:28 +01:00
Pierre-Antoine Rouby 1bd05ee1c2 Merge branch 'master' of gitlab-ssh.irstea.fr:theophile.terraz/pamhyr 2024-01-26 17:02:09 +01:00
Pierre-Antoine Rouby dc406147df Doc: Tuto1: Fix HS images without description. 2024-01-26 17:02:00 +01:00
Theophile Terraz 87fa63d8f9 Merge branch 'master' of gitlab-ssh.irstea.fr:theophile.terraz/pamhyr 2024-01-26 16:23:52 +01:00
Theophile Terraz 2355a14a0c debug TD 2024-01-26 16:23:44 +01:00
Pierre-Antoine Rouby 69e94e978c Geometry: Fix plot update at meshing. 2024-01-26 15:40:35 +01:00
Pierre-Antoine Rouby 97fafe9b9b Geometry: Reach: Fix pep8. 2024-01-26 14:35:04 +01:00
Pierre-Antoine Rouby 312abc9501 Merge branch 'master' of gitlab-ssh.irstea.fr:theophile.terraz/pamhyr 2024-01-26 14:27:41 +01:00
Pierre-Antoine Rouby ca8c7a23fd MainWindow: Put results menu in model action list. 2024-01-26 14:27:08 +01:00
Pierre-Antoine Rouby 9d69d60ea8 Results: Catch some possible execption where results is empty. 2024-01-26 14:16:46 +01:00
Theophile Terraz 7ab6db184d update tuto 2024-01-26 12:09:56 +01:00
Pierre-Antoine Rouby e72d06bf6f Geometry: Fix some update error. 2024-01-26 11:53:51 +01:00
Pierre-Antoine Rouby fbf342f1ad MainWindow: Use 'default-mage' (if exists) in case of last solver is not found. 2024-01-26 10:03:04 +01:00
Pierre-Antoine Rouby 699e174b3d Merge branch 'master' with fix #32. 2024-01-26 09:34:59 +01:00
Pierre-Antoine Rouby 48f6c09436 Results: Fix profile list update at reach selection. 2024-01-26 09:32:05 +01:00
Lionel Penard bab2c33e38 Corrections to French translation 2024-01-25 08:51:35 +01:00
Pierre-Antoine Rouby c725e15015 Solver: Mage: Fix pep8. 2024-01-24 17:15:08 +01:00
Pierre-Antoine Rouby 3bad91ec37 doc: users: Tuto: Add context pdf and '.pamhyr' files. 2024-01-24 17:12:55 +01:00
Theophile Terraz ceaab3c2fc Merge branch 'master' of gitlab-ssh.irstea.fr:theophile.terraz/pamhyr 2024-01-24 17:06:11 +01:00
Theophile Terraz e183c5d1de mend
work on tuto1
2024-01-24 17:03:32 +01:00
Theophile Terraz dc73213bee work on tuto1 2024-01-24 16:58:54 +01:00
Theophile Terraz 2ed57fbbe0 work on tuto1 2024-01-24 16:58:30 +01:00
Pierre-Antoine Rouby 4de04d1af8 Solver: Mage: Fix comment for ST file header. 2024-01-24 16:46:03 +01:00
Pierre-Antoine Rouby 7ae64d390f Solver: Mage: Fix read bin. 2024-01-24 16:16:13 +01:00
Pierre-Antoine Rouby f56d87f648 Meshing: Mage: Fix profiles purge. 2024-01-24 15:58:05 +01:00
Pierre-Antoine Rouby 6c65d84d5e Checker: Geometry: Set minimal profiles number to 2. 2024-01-24 15:47:27 +01:00
Pierre-Antoine Rouby 490b5466da Merge branch 'master' of gitlab-ssh.irstea.fr:theophile.terraz/pamhyr 2024-01-24 15:27:02 +01:00
Theophile Terraz 3805cc9932 Merge branch 'master' of gitlab-ssh.irstea.fr:theophile.terraz/pamhyr 2024-01-24 15:26:35 +01:00
Theophile Terraz b56172328e debug 2024-01-24 15:26:33 +01:00
Pierre-Antoine Rouby e4a012b5a3 Meshing: Mage: Fix mailleurTT. 2024-01-24 15:26:18 +01:00
Pierre-Antoine Rouby 3dfdc308e3 HS: Fix HS KP is missing at display update. 2024-01-24 15:12:39 +01:00
Pierre-Antoine Rouby 14a2abaebd Meshing: Mage: Fix pep8. 2024-01-24 15:05:28 +01:00
Pierre-Antoine Rouby d0afd0ed74 Geometry: Fix division by 0 for incline. 2024-01-24 15:00:31 +01:00
Pierre-Antoine Rouby 473aac4500 Meshing: Define meshing with MailleurTT. 2024-01-24 14:51:19 +01:00
Pierre-Antoine Rouby ad59afc4f5 MainWindow: Fix pep8. 2024-01-24 11:46:30 +01:00
Pierre-Antoine Rouby 3be2973032 ci: Update mage version. 2024-01-24 11:45:07 +01:00
Pierre-Antoine Rouby b5a3ee7568 doc: Delete user documentation and use gitlab wiki instead. 2024-01-24 11:41:30 +01:00
Pierre-Antoine Rouby aad7d75fa6 ci: Minor fix. 2024-01-24 11:22:37 +01:00
Pierre-Antoine Rouby 70f1581a3b Packages: Add TP charriage. 2024-01-24 11:12:31 +01:00
Pierre-Antoine Rouby 641003ded4 Doc: Users: TP: Add TP charriage. 2024-01-24 11:08:40 +01:00
Pierre-Antoine Rouby 28526d8f91 Solver: Mage: Fix pep8. 2024-01-24 10:46:07 +01:00
Pierre-Antoine Rouby 416a807e5d Merge branch 'master' of gitlab-ssh.irstea.fr:theophile.terraz/pamhyr 2024-01-24 10:44:58 +01:00
Lionel Penard e723b56e18 Typos tuto1 and French translation 2024-01-24 10:43:04 +01:00
Pierre-Antoine Rouby 67b76a3113 Merge branch 'master' of gitlab-ssh.irstea.fr:theophile.terraz/pamhyr 2024-01-24 10:41:36 +01:00
Pierre-Antoine Rouby 1169f3cc94 Geometry: ui: Minor change. 2024-01-24 10:26:22 +01:00
Pierre-Antoine Rouby 82ab7b5429 HS: Basic: Display set type question only if previous type is not ND. 2024-01-24 10:22:58 +01:00
Lionel Penard 9b3a281e35 Typos tuto1 and French translation 2024-01-24 09:50:58 +01:00
Theophile Terraz 00f0e39eda Merge branch 'master' of gitlab-ssh.irstea.fr:theophile.terraz/pamhyr 2024-01-23 17:39:20 +01:00
Theophile Terraz 1e7e5b0328 debug mesh 2024-01-23 17:39:10 +01:00
Lionel Penard 8afd5023e9 merge french tuto1 2024-01-23 17:07:28 +01:00
Lionel Penard 100003ad90 Update english and create french version of tuto1 2024-01-23 16:57:26 +01:00
Pierre-Antoine Rouby 7fd6e4469b HS: Basic: Add CheckValve hydraulic structure and VAR export. 2024-01-23 16:56:24 +01:00
Pierre-Antoine Rouby 793289dd80 Tuto: Add ci tuto building. 2024-01-23 16:08:35 +01:00
Theophile Terraz ab10970025 add png to tuto1 2024-01-23 15:24:05 +01:00
Pierre-Antoine Rouby 3c9eccdfab Solver: Mage: Fix <list>.node error. 2024-01-23 11:30:34 +01:00
Pierre-Antoine Rouby 6c4636917a README: Update install from source. 2024-01-23 10:31:31 +01:00
Pierre-Antoine Rouby 56b170d767 README: Minor change. 2024-01-23 09:35:03 +01:00
Pierre-Antoine Rouby 318f6e9965 Geometry: Fix pep8. 2024-01-22 16:04:32 +01:00
Pierre-Antoine Rouby 63f7095508 Geometry: Activate export to file. 2024-01-22 15:28:42 +01:00
Pierre-Antoine Rouby 1965782348 Traduction: Update. 2024-01-22 14:44:56 +01:00
Pierre-Antoine Rouby a54bf30c3d Traduction: Update. 2024-01-22 11:58:33 +01:00
Pierre-Antoine Rouby 1e245004c9 Translation: Solver parameters: Add translate for mage solver parameters. 2024-01-22 11:03:49 +01:00
Pierre-Antoine Rouby 03c3c37435 Solver, Meshing: Mage: Add some exit condition. 2024-01-22 10:53:00 +01:00
Pierre-Antoine Rouby 19ad9c4d1a Config: Minor change. 2024-01-19 16:16:26 +01:00
Pierre-Antoine Rouby c183e5016c Pamhyr: Fix tests and pep8. 2024-01-19 15:54:28 +01:00
Pierre-Antoine Rouby 4790b9c071 River: Fix node and edges artefact deletions at data saves. 2024-01-19 15:49:54 +01:00
Pierre-Antoine Rouby 770bb5f96f Config: Fix version updater. 2024-01-19 14:22:38 +01:00
Pierre-Antoine Rouby 6319ac9310 Geometry: Handle exception for meshing tool. 2024-01-19 11:51:48 +01:00
Pierre-Antoine Rouby b6f0c6f49a tests: Add a mage meshingtool test. 2024-01-19 11:20:53 +01:00
Pierre-Antoine Rouby 486ff5c239 Mainwindow: Minor change. 2024-01-19 10:35:36 +01:00
Pierre-Antoine Rouby 73475220e9 Mainwindow: Add action to open results from a file. 2024-01-19 10:08:30 +01:00
Pierre-Antoine Rouby 852a3f58ff Checker: Mage: Add guidelines checker. 2024-01-17 15:26:21 +01:00
Pierre-Antoine Rouby 8b8aff7df1 Frictions: Fix none assiciated stricklers at save/load. 2024-01-17 14:42:20 +01:00
Pierre-Antoine Rouby e86111bd7a Solver: Mage: Fix empty HS error and space in input param. 2024-01-17 11:23:49 +01:00
Pierre-Antoine Rouby 870cba5005 Geometry: Fix width_approximation when rg and rd is missing. 2024-01-17 11:02:44 +01:00
Pierre-Antoine Rouby c5df959210 doc: wiki: Add annotation. 2024-01-16 15:43:15 +01:00
Pierre-Antoine Rouby 631e52b486 doc: wiki: Results add image. 2024-01-16 15:33:52 +01:00
Pierre-Antoine Rouby 5e32082fcf doc: wiki: Running solver images. 2024-01-16 14:57:17 +01:00
Pierre-Antoine Rouby 8834afa4f3 Geometry: Allow to copy point with floating point string format '*,*'. 2024-01-16 14:20:48 +01:00
Pierre-Antoine Rouby 0d88b954d8 pep8: Minor change. 2024-01-16 14:12:30 +01:00
Pierre-Antoine Rouby 46602227af Results: Fix play button image file path. 2024-01-16 14:10:56 +01:00
Pierre-Antoine Rouby 99fe5e8f74 Results: Fix results reading before solver running... (again) 2024-01-16 14:05:29 +01:00
Pierre-Antoine Rouby 9e9f56ee65 HS: Resize window and add screenshot for wiki. 2024-01-16 11:06:57 +01:00
Pierre-Antoine Rouby cf53985fed Geometry: Remove some warning when profile not fully defined. 2024-01-16 09:05:27 +01:00
Pierre-Antoine Rouby 0ace259d2d Meshing: Mage: Fix libbief extention under windows system. 2024-01-15 17:08:46 +01:00
Pierre-Antoine Rouby f73b9b06c0 HS: Basic: Translate minor change. 2024-01-15 16:37:29 +01:00
Pierre-Antoine Rouby 906ed801c7 translate: Update HS and minor change. 2024-01-15 16:35:19 +01:00
Pierre-Antoine Rouby 975f2027ed HS: Basic: Rename all HS to english and add translation. 2024-01-15 15:15:05 +01:00
Pierre-Antoine Rouby 22f3823699 pep8: Minor change. 2024-01-15 14:09:00 +01:00
Pierre-Antoine Rouby c81dfb3ccc windows: Fix posix color on windows terminal. 2024-01-15 14:04:30 +01:00
Pierre-Antoine Rouby 2c8c2699ef Geometry: Fix point paste command. 2024-01-15 13:56:58 +01:00
Pierre-Antoine Rouby 7fd570c5a7 Network: Add tests and minor change. 2024-01-12 15:01:23 +01:00
Pierre-Antoine Rouby 76ab3114f0 doc: wiki: Add numerical params window image. 2024-01-10 15:30:42 +01:00
Pierre-Antoine Rouby 76975a85e0 doc: wiki: Add reservoir images. 2024-01-10 15:09:43 +01:00
Pierre-Antoine Rouby 7b9c725f04 doc: wiki: Add sediment images. 2024-01-10 10:48:33 +01:00
Pierre-Antoine Rouby 6fea7baea2 Geometry: Minor change. 2024-01-10 10:15:30 +01:00
Pierre-Antoine Rouby 9c2b2033ec doc: wiki: Add IC window images. 2024-01-10 09:41:16 +01:00
Pierre-Antoine Rouby f67b7c6f60 doc: wiki: Add BC images. 2024-01-09 16:41:04 +01:00
Pierre-Antoine Rouby fb0f1ad866 doc: wiki: Add frictions windows images. 2024-01-09 16:01:05 +01:00
Pierre-Antoine Rouby 2b1fa93ebe doc: wiki: Add geometry window. 2024-01-09 15:09:15 +01:00
Pierre-Antoine Rouby e3140763ba doc: wiki: Update network image. 2024-01-09 14:50:44 +01:00
Pierre-Antoine Rouby e60b388930 doc: wiki: Add network window image. 2024-01-09 14:20:57 +01:00
Pierre-Antoine Rouby f4914934f2 doc: wiki: Add new study window image. 2024-01-09 14:03:40 +01:00
Pierre-Antoine Rouby 7115632d30 ci: Fix images copy command. 2024-01-09 11:59:14 +01:00
Pierre-Antoine Rouby 52112a5413 doc: wiki: Add images for the wiki documentation. 2024-01-09 11:44:41 +01:00
Pierre-Antoine Rouby 07798bbf46 Config: Disable meshing tools tab and add some self documentation for solver command line. 2024-01-09 10:53:49 +01:00
Pierre-Antoine Rouby 134c66d51c Geometry: Fix pep8. 2024-01-09 10:20:34 +01:00
Pierre-Antoine Rouby 84cf693528 HS: Add HS name on BHS edit window title. 2024-01-09 09:20:08 +01:00
Pierre-Antoine Rouby 7ef2df8535 Geometry: Window update minor change. 2024-01-08 17:27:12 +01:00
Pierre-Antoine Rouby 4d95e42d20 Geometry: Make import button an undo command. 2024-01-08 17:11:10 +01:00
Pierre-Antoine Rouby 30702cb118 Geometry: Fixed #29 with a hacky solution. 2024-01-08 16:30:56 +01:00
Pierre-Antoine Rouby e930bcaa91 Package: Add windows 'libbief.dll'. 2024-01-08 15:46:47 +01:00
Pierre-Antoine Rouby 1e2432e298 Package: Update mage version. 2024-01-08 15:35:58 +01:00
Pierre-Antoine Rouby 1243b2dc88 Meshing: Mage: Fix pep8. 2024-01-08 15:27:23 +01:00
Pierre-Antoine Rouby f2b97b68bd Merge branch 'master' of gitlab-ssh.irstea.fr:theophile.terraz/pamhyr 2024-01-08 15:20:06 +01:00
Pierre-Antoine Rouby 2149fa0dcb IC: Change generate button text. 2024-01-08 15:15:50 +01:00
Pierre-Antoine Rouby 6293c6206c IC: Generator dialog text and size. 2024-01-08 15:13:24 +01:00
Theophile Terraz f451731877 add point number in profiles table for geometry 2023-12-21 15:57:36 +01:00
Theophile Terraz d74c78eff5 get GL order for meshing 2023-12-21 15:56:59 +01:00
Theophile Terraz af347349e1 add purge after interpolation 2023-12-21 14:56:56 +01:00
Theophile Terraz 2f47b190ac improve interpolation 2023-12-20 17:56:43 +01:00
Pierre-Antoine Rouby 655982e908 Geometry: Make meshing method to undo command. 2023-12-20 14:36:41 +01:00
Theophile Terraz 82eba020ac Merge branch 'master' of gitlab-ssh.irstea.fr:theophile.terraz/pamhyr 2023-12-20 14:11:26 +01:00
Pierre-Antoine Rouby eb65ce4c1b Meshing: Mage: Fix so file path for packages. 2023-12-20 12:13:28 +01:00
Pierre-Antoine Rouby 691ec4f3bd pep8: Minor fix. 2023-12-20 12:05:37 +01:00
Pierre-Antoine Rouby c1069adc2f packages: Add libbief. 2023-12-20 11:59:04 +01:00
Pierre-Antoine Rouby 097b5eb7fc Geometry: Add meshing action with mage internal meshing functions. 2023-12-20 11:36:46 +01:00
Pierre-Antoine Rouby e965e2b4c1 Script: Meshing: Minor change. 2023-12-20 10:53:48 +01:00
Theophile Terraz d81f341303 Merge branch 'master' of gitlab-ssh.irstea.fr:theophile.terraz/pamhyr 2023-12-20 10:43:40 +01:00
Pierre-Antoine Rouby 1ea6fd7c54 Script: Fix missing files and minor change. 2023-12-20 09:45:11 +01:00
Theophile Terraz 3025c995b6 bords ponts Tuto1 2023-12-20 09:38:37 +01:00
Theophile Terraz ecc75c45eb Merge branch 'master' of gitlab-ssh.irstea.fr:theophile.terraz/pamhyr 2023-12-20 09:37:34 +01:00
Pierre-Antoine Rouby 09dcf486d8 Script: Add mage meshing tool. 2023-12-19 17:28:34 +01:00
Pierre-Antoine Rouby 592c1e5dbc MainWindow: Minor fix of file name '.pamhyr' detection. 2023-12-19 11:59:21 +01:00
Pierre-Antoine Rouby cd3baf2870 Results, RunSolver: Stop timer at window close. 2023-12-19 09:45:05 +01:00
Pierre-Antoine Rouby 93734ff1b9 SolverRun: Try catch read results. 2023-12-19 09:17:26 +01:00
Pierre-Antoine Rouby dfb7d37cfb Results: Resize window to respect 16:9. 2023-12-19 09:11:28 +01:00
Pierre-Antoine Rouby 83aa6a5791 Results, Plots: Fix icon paths. 2023-12-19 09:11:01 +01:00
Pierre-Antoine Rouby 45f020edaa Solver: Fix install dir path. 2023-12-19 08:52:24 +01:00
Pierre-Antoine Rouby ad1c5c487e mage: Update mage version. 2023-12-18 17:22:55 +01:00
Theophile Terraz 5c323b28e2 Merge branch 'master' of gitlab-ssh.irstea.fr:theophile.terraz/pamhyr 2023-12-18 16:15:22 +01:00
Theophile Terraz da2250df3a work on tuto 2023-12-18 16:15:19 +01:00
Pierre-Antoine Rouby cb1d6b4db7 pep8: Minor fixes. 2023-12-18 15:44:49 +01:00
Pierre-Antoine Rouby f96cee145c HS: Fix Plot relim at update. 2023-12-18 15:37:22 +01:00
Pierre-Antoine Rouby e4670e4a4d Results: Add current timestamps on hydrograph. 2023-12-18 15:28:22 +01:00
Pierre-Antoine Rouby 5c0f90b43e Results: Fix sl results display. 2023-12-18 15:11:56 +01:00
Pierre-Antoine Rouby e6de528b7f Mage: Update mage gra file reader for mage 83. 2023-12-18 14:56:16 +01:00
Pierre-Antoine Rouby dfff8d2fcb Geometry: Copy disable headers. 2023-12-18 11:26:58 +01:00
Pierre-Antoine Rouby 33a1fd2b52 Geometry: Profile copy/paste minor change. 2023-12-18 11:17:16 +01:00
Pierre-Antoine Rouby f083b7f6ef Geometry: Fix copy/paste command. 2023-12-18 10:44:11 +01:00
Pierre-Antoine Rouby 25de73812b Config: Fix reopen latest study. 2023-12-18 10:25:24 +01:00
Pierre-Antoine Rouby 6b232d2971 Merge branch 'hydraulics-structure' of gitlab-ssh.irstea.fr:theophile.terraz/pamhyr into hydraulics-structure 2023-12-18 10:14:24 +01:00
Theophile Terraz 9c0ffa8356 add option to let Mage generate initial condition 2023-12-15 15:36:17 +01:00
Pierre-Antoine Rouby ffbd2e2413 Mage: Minor code style refactoring. 2023-12-13 16:44:44 +01:00
Pierre-Antoine Rouby 58300b8c1a Mage: Minor indent fixes. 2023-12-13 16:31:57 +01:00
Pierre-Antoine Rouby cd2fda8224 HS, Mage: Rewrite some code for coding style. 2023-12-13 16:30:18 +01:00
Pierre-Antoine Rouby 73ae571de1 Merge branch 'hydraulics-structure' of gitlab-ssh.irstea.fr:theophile.terraz/pamhyr into hydraulics-structure 2023-12-13 16:01:23 +01:00
Pierre-Antoine Rouby 7aee4c64a3 Solver: Fix running pipeline. 2023-12-13 15:57:47 +01:00
Pierre-Antoine Rouby c3cae35de4 pep8: Fixes code style. 2023-12-13 14:53:58 +01:00
Pierre-Antoine Rouby 2736d2f399 SolverRun: Keep in configuration the last solver name used. 2023-12-13 14:48:01 +01:00
Pierre-Antoine Rouby 00afc6c06b SolverRun: Fix bin/gra reading before solver running. 2023-12-13 14:30:29 +01:00
Theophile Terraz 4eefa88490 Merge branch 'hydraulics-structure' of gitlab-ssh.irstea.fr:theophile.terraz/pamhyr into hydraulics-structure 2023-12-13 11:45:01 +01:00
Theophile Terraz 92e54bf11e work on Mage export 2023-12-13 11:44:56 +01:00
Pierre-Antoine Rouby c11350d49a HS: Fix basic HS previous data delete at save. 2023-12-13 11:04:51 +01:00
Pierre-Antoine Rouby 8f5fb4cc3b Geometry: Profile: Some fixes. 2023-12-13 10:36:13 +01:00
Pierre-Antoine Rouby fc7a7bb7fd HS: Fix update relim in PlotAC and PlotKPC. 2023-12-13 10:07:46 +01:00
Pierre-Antoine Rouby 5a1c363e8a IC: Fix reach reference at loading in case of multiple reach. 2023-12-13 09:42:47 +01:00
Theophile Terraz 77a6da3024 Merge branch 'hydraulics-structure' of gitlab-ssh.irstea.fr:theophile.terraz/pamhyr into hydraulics-structure 2023-12-12 16:35:24 +01:00
Theophile Terraz c4a66281f6 debug output SIN 2023-12-12 16:35:17 +01:00
Pierre-Antoine Rouby 7ffc2482fc HS: Minor fixes. 2023-12-12 16:21:47 +01:00
Pierre-Antoine Rouby f37da68a67 HS: Basic: Minor fixes. 2023-12-12 16:08:04 +01:00
Theophile Terraz f64ed131f9 work on BHS 2023-12-12 16:00:40 +01:00
Theophile Terraz 79b31e8d08 merge 2023-12-12 15:40:54 +01:00
Theophile Terraz d1c8e3e4f5 debug SIN output 2023-12-12 15:39:43 +01:00
Theophile Terraz c253ad832d ajout ouvrages mage 2023-12-12 14:57:23 +01:00
Pierre-Antoine Rouby 6081b09267 pep8: Fixes. 2023-12-12 14:53:00 +01:00
Pierre-Antoine Rouby 592c2c9a72 HS: Minor fix. 2023-12-12 14:44:58 +01:00
Pierre-Antoine Rouby ce45776a63 HS: Basic: Fix load sql request. 2023-12-12 14:30:04 +01:00
Pierre-Antoine Rouby 02bbdf9fda HS: Basic: Add parameters table and fix save/load sql methods. 2023-12-12 14:23:36 +01:00
Pierre-Antoine Rouby 6c9e90ceaf MainWindow: Add progress dialog for save as method. 2023-12-12 13:39:38 +01:00
Pierre-Antoine Rouby b99be5a280 MainWindow: Remove cancel button. 2023-12-12 13:35:13 +01:00
Pierre-Antoine Rouby 1acd582de9 MainWindow: Add progress dialog for save process. 2023-12-12 11:57:19 +01:00
Pierre-Antoine Rouby 8ce5a4d215 Network: Change selected reach color and minor change. 2023-12-12 10:51:25 +01:00
Pierre-Antoine Rouby ccb55ff4e1 HS: Fix pep8 and minor change. 2023-12-12 10:22:52 +01:00
Pierre-Antoine Rouby 3ef4b40558 HS: Basic: Add question for BHS type change. 2023-12-12 10:13:10 +01:00
Pierre-Antoine Rouby c667d94e84 HS: Basic: Fix delete undo command. 2023-12-12 09:43:54 +01:00
Pierre-Antoine Rouby 1b601460e6 HS: Basic: Make enabled undo command. 2023-12-12 09:32:05 +01:00
Theophile Terraz 7db65f127e work on hydraulic structures 2023-12-11 16:53:53 +01:00
Theophile Terraz f302e18d71 dirty work on BHS 2023-12-11 15:44:31 +01:00
Theophile Terraz 352c0beb27 add short dict and getter in HS 2023-12-11 15:29:02 +01:00
Theophile Terraz d6561ab44d merge 2023-12-11 15:27:53 +01:00
Pierre-Antoine Rouby 5d9b6f99c6 HS: Fix case with no profile kp. 2023-12-11 15:20:46 +01:00
Pierre-Antoine Rouby 163a842384 HS: Refacto update function and fix NA value at table data set. 2023-12-11 15:19:24 +01:00
Pierre-Antoine Rouby eea355a784 pep8: Change to respect pep8 code style. 2023-12-11 14:40:54 +01:00
Pierre-Antoine Rouby 1ab1cb37b0 HS: Create a enabled undo command. 2023-12-11 11:55:27 +01:00
Theophile Terraz be19a11387 Merge branch 'hydraulics-structure' of gitlab-ssh.irstea.fr:theophile.terraz/pamhyr into hydraulics-structure 2023-12-11 11:20:51 +01:00
Theophile Terraz 062743d748 enable edit window 2023-12-11 11:20:47 +01:00
Pierre-Antoine Rouby ac2a2002b7 HS: Fix checkbox state at undo add command. 2023-12-11 11:12:57 +01:00
Pierre-Antoine Rouby 6951b82339 Friction: Delete useless prints. 2023-12-11 11:12:41 +01:00
Pierre-Antoine Rouby e41c23120a HS: Minor fix add method. 2023-12-11 11:00:14 +01:00
Theophile Terraz 4c5281ea30 Merge branch 'hydraulics-structure' of gitlab-ssh.irstea.fr:theophile.terraz/pamhyr into hydraulics-structure 2023-12-06 16:55:34 +01:00
Theophile Terraz 7b7ba2eb37 add hydraulic structures plots 2023-12-06 16:55:27 +01:00
Pierre-Antoine Rouby 4a43653d7f HydraulicStructure: Fix KP db type. 2023-12-06 14:49:50 +01:00
Pierre-Antoine Rouby 0307927fa9 PamhyrTable: Fix editable column. 2023-12-06 14:15:47 +01:00
Pierre-Antoine Rouby db11c9d968 Geometry: Resize window to respect 16:9 ratio. 2023-12-06 11:44:09 +01:00
Pierre-Antoine Rouby d85e5c4666 PamhyrDialog: Fix window list delete whene dialog is done. 2023-12-06 11:30:09 +01:00
Pierre-Antoine Rouby 45ee8a9662 Friction: Fix load method in case of multiple reaches. 2023-12-06 11:05:55 +01:00
Pierre-Antoine Rouby 5ab06dbe51 HydraulicStructure: Fix db export. 2023-12-06 09:20:18 +01:00
Theophile Terraz d73e901a96 work on hydraulic structures window 2023-12-05 16:46:50 +01:00
Theophile Terraz c17e39e3cf Merge branch 'hydraulics-structure' of gitlab-ssh.irstea.fr:theophile.terraz/pamhyr into hydraulics-structure 2023-12-05 15:14:19 +01:00
Pierre-Antoine Rouby af4cce96ef HydraulicStructure: Rename enable to enabled. 2023-12-05 14:02:10 +01:00
Pierre-Antoine Rouby 0a780e5f78 HydraulicStructure: Minor change and fixes. 2023-12-05 11:56:14 +01:00
Pierre-Antoine Rouby fb2b1f680f HydraulicStructures: Add Model files. 2023-12-05 11:13:52 +01:00
Theophile Terraz 6957986632 add hydraulic structures view files 2023-12-05 09:41:15 +01:00
Theophile Terraz 13d23502a9 Merge branch 'master' into hydraulics-structure 2023-12-04 17:41:39 +01:00
Theophile Terraz 5fa888768e add hydraulic structures ui 2023-12-04 17:41:06 +01:00
Theophile Terraz 07451899c4 export mage SIN file 2023-12-04 17:38:25 +01:00
Theophile Terraz 2aa693e4ae modif sections sliders 2023-12-04 09:35:02 +01:00
Theophile Terraz ff480fb593 add first and last button (visu) 2023-12-04 09:14:35 +01:00
Theophile Terraz d6753dc986 upgrade results slider 2023-12-01 18:37:36 +01:00
Theophile Terraz 2d2484d8fa change colors 2023-12-01 15:51:40 +01:00
Theophile Terraz bb97f1977b debug 2023-12-01 15:51:13 +01:00
Theophile Terraz eb26eba131 optim visu 2023-12-01 14:05:00 +01:00
Theophile Terraz 2d3e214514 debug 2023-12-01 14:04:46 +01:00
Theophile Terraz 894a7c8477 speed up View/Results/PlotXY 2023-11-30 15:06:39 +01:00
Theophile Terraz 21197ead23 work on vater limits for top view visualization 2023-11-30 15:06:00 +01:00
Theophile Terraz d79a0cc973 Merge branch 'master' of gitlab-ssh.irstea.fr:theophile.terraz/pamhyr 2023-11-29 17:10:30 +01:00
Theophile Terraz a55669d181 modif INI format 2023-11-29 17:10:27 +01:00
Pierre-Antoine Rouby 2fd44fbfb4 IC: Fix data sorting at the end of generation. 2023-11-29 16:52:01 +01:00
Pierre-Antoine Rouby 962bfa945d Merge branch 'master' of gitlab-ssh.irstea.fr:theophile.terraz/pamhyr 2023-11-29 16:41:53 +01:00
Pierre-Antoine Rouby 65c1163a55 Reservoir: Allow to select only internal node. 2023-11-29 16:41:05 +01:00
Theophile Terraz 8d67442ca3 Merge branch 'master' of gitlab-ssh.irstea.fr:theophile.terraz/pamhyr 2023-11-29 15:26:22 +01:00
Theophile Terraz f7d2ac8b86 traduction 2023-11-29 15:26:11 +01:00
572 changed files with 24965 additions and 6644 deletions

No files matched your search

+2
View File
@@ -19,6 +19,8 @@ tmp
*.pdf *.pdf
*.odt *.odt
!doc/**/*.pdf
doc/dev/images/auto_* doc/dev/images/auto_*
doc/dev/documentation.* doc/dev/documentation.*
!doc/dev/*.org !doc/dev/*.org
+300 -69
View File
@@ -1,5 +1,5 @@
# .gitlab-ci.yml -- Pamhyr gitlab-ci # .gitlab-ci.yml -- Pamhyr gitlab-ci
# Copyright (C) 2023 INRAE # Copyright (C) 2023-2024 INRAE
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
@@ -20,45 +20,84 @@ stages:
- test - test
- build - build
- package - package
- hash
- antivirus
- release - release
############# #############
# DOWNLOADS # # DOWNLOADS #
############# #############
dl-mage-linux: variables:
stage: downloads MAGE_8_VERSION: "v8.3.6"
tags: CUSTOM_PYTHON_VERSION: "3.10.14-build2"
- linux
rules:
- if: $CI_COMMIT_BRANCH == 'ci-test' || $CI_COMMIT_BRANCH == 'master' || $CI_COMMIT_TAG
script:
- curl -L -o mage.tgz https://gitlab.irstea.fr/jean-baptiste.faure/mage/-/releases/Test6/downloads/packages/mage_linux.tgz
- mkdir -p mage-linux
- cd mage-linux
- tar xvf ../mage.tgz
artifacts:
paths:
- mage-linux/mage
- mage-linux/mage_extraire
- mage-linux/mailleurPF
dl-mage-windows: dl-mage8-doc:
stage: downloads stage: downloads
tags: tags:
- linux - linux
rules: rules:
- if: $CI_COMMIT_BRANCH == 'ci-test' || $CI_COMMIT_BRANCH == 'master' || $CI_COMMIT_TAG - if: $CI_COMMIT_BRANCH == 'ci-test' || $CI_COMMIT_BRANCH == 'master' || $CI_COMMIT_TAG
script: script:
- curl -L -o mage.tgz https://gitlab.irstea.fr/jean-baptiste.faure/mage/-/releases/Test6/downloads/packages/mage_windows.tgz - mkdir -p doc
- mkdir -p mage-windows - cd doc
- cd mage-windows - curl -L -o mage8.pdf https://gitlab.irstea.fr/jean-baptiste.faure/mage/-/releases/$MAGE_8_VERSION/downloads/documents/Mage-8_Documentation.pdf
- tar xvf ../mage.tgz
artifacts: artifacts:
paths: paths:
- mage-windows/mage.exe - doc/mage8.pdf
- mage-windows/mage_extraire.exe
- mage-windows/mailleurPF.exe dl-mage8-linux:
stage: downloads
tags:
- linux
rules:
- if: $CI_COMMIT_BRANCH == 'ci-test' || $CI_COMMIT_BRANCH == 'master' || $CI_COMMIT_TAG
script:
- curl -L -o mage8.tgz https://gitlab.irstea.fr/jean-baptiste.faure/mage/-/releases/$MAGE_8_VERSION/downloads/packages/mage_linux.tgz
- mkdir -p mage8-linux
- cd mage8-linux
- tar xvf ../mage8.tgz
artifacts:
paths:
- mage8-linux/mage
- mage8-linux/mage_as7
- mage8-linux/mage_extraire
- mage8-linux/mailleurTT
- mage8-linux/libbief.so
dl-mage8-windows:
stage: downloads
tags:
- linux
rules:
- if: $CI_COMMIT_BRANCH == 'ci-test' || $CI_COMMIT_BRANCH == 'master' || $CI_COMMIT_TAG
script:
- curl -L -o mage8.tgz https://gitlab.irstea.fr/jean-baptiste.faure/mage/-/releases/$MAGE_8_VERSION/downloads/packages/mage_windows.tgz
- mkdir -p mage8-windows
- cd mage8-windows
- tar xvf ../mage8.tgz
artifacts:
paths:
- mage8-windows/mage.exe
- mage8-windows/mage_as7.exe
- mage8-windows/mage_extraire.exe
- mage8-windows/mailleurTT.exe
- mage8-windows/libbief.dll
dl-python-linux:
stage: downloads
tags:
- linux
rules:
- if: $CI_COMMIT_BRANCH == 'setup.py' || $CI_COMMIT_TAG
script:
- curl -L -o python.tar.xz https://gitlab.irstea.fr/parouby/custom-python-build/-/releases/$CUSTOM_PYTHON_VERSION/downloads/python.tar.xz
- mkdir -p linux-python/
- cd linux-python
- tar xvf ../python.tar.xz
artifacts:
paths:
- linux-python
############# #############
# CONFIGURE # # CONFIGURE #
@@ -122,14 +161,31 @@ test-pep8:
- pip3 install -r ./requirements.txt - pip3 install -r ./requirements.txt
- pip3 install -U -r ./requirements.txt - pip3 install -U -r ./requirements.txt
- pip3 install pycodestyle - pip3 install pycodestyle
- pycodestyle ./src - pycodestyle --exclude="*_to_*.py" ./src
allow_failure: true allow_failure: true
######### #########
# BUILD # # BUILD #
######### #########
build-users-doc: # build-users-doc:
# stage: build
# tags:
# - linux
# needs:
# - job: set-version
# artifacts: true
# script:
# - cd ./doc/users/
# - ./build.sh
# artifacts:
# paths:
# - doc/users/documentation.pdf
# - doc/users/documentation.html
# - doc/users/images/
# allow_failure: true
build-td:
stage: build stage: build
tags: tags:
- linux - linux
@@ -137,13 +193,13 @@ build-users-doc:
- job: set-version - job: set-version
artifacts: true artifacts: true
script: script:
- cd ./doc/users/ - cd ./doc/users/Tuto1/
- ./build.sh - ./build.sh
artifacts: artifacts:
paths: paths:
- doc/users/documentation.pdf - doc/users/Tuto1/step-by-step.pdf
- doc/users/documentation.html - doc/users/Tuto1/pas-a-pas.pdf
- doc/users/images/ - doc/users/Tuto1/data/
allow_failure: true allow_failure: true
build-developers-doc: build-developers-doc:
@@ -184,7 +240,9 @@ build-linux:
rules: rules:
- if: $CI_COMMIT_BRANCH == 'ci-test' || $CI_COMMIT_BRANCH == 'master' || $CI_COMMIT_TAG - if: $CI_COMMIT_BRANCH == 'ci-test' || $CI_COMMIT_BRANCH == 'master' || $CI_COMMIT_TAG
needs: needs:
- job: dl-mage-linux - job: dl-mage8-linux
artifacts: true
- job: dl-mage8-doc
artifacts: true artifacts: true
- job: set-version - job: set-version
artifacts: true artifacts: true
@@ -192,7 +250,9 @@ build-linux:
artifacts: true artifacts: true
- job: build-developers-doc - job: build-developers-doc
artifacts: true artifacts: true
- job: build-users-doc # - job: build-users-doc
# artifacts: true
- job: build-td
artifacts: true artifacts: true
script: script:
- mkdir -p linux - mkdir -p linux
@@ -207,28 +267,32 @@ build-linux:
- pyinstaller -y --paths linux-venv/lib/python3.8/site-packages ../src/pamhyr.py - pyinstaller -y --paths linux-venv/lib/python3.8/site-packages ../src/pamhyr.py
# Create directory # Create directory
- mkdir -p pamhyr - mkdir -p pamhyr
- mkdir -p pamhyr/pamhyr - mkdir -p pamhyr/_internal
- mkdir -p pamhyr/pamhyr/_internal
# Copy Pamhyr info # Copy Pamhyr info
- cp -v ../VERSION pamhyr/pamhyr/_internal/ - cp -v ../VERSION pamhyr/_internal/
- cp -v ../AUTHORS pamhyr/pamhyr/_internal/ - cp -v ../AUTHORS pamhyr/_internal/
- cp -v ../LICENSE pamhyr/pamhyr/_internal/ - cp -v ../LICENSE pamhyr/_internal/
- cp -v ../src/motd.txt pamhyr/pamhyr/_internal/ - cp -v ../src/motd.txt pamhyr/_internal/
# Copy mage # Copy mage
- mkdir -p pamhyr/mage - mkdir -p pamhyr/mage8
- cp -v ../mage-linux/* pamhyr/mage/ - cp -v ../mage8-linux/* pamhyr/mage8/
# Copy Pamhyr # Copy Pamhyr
- cp -r dist/pamhyr pamhyr/ - cp -r dist/pamhyr/* pamhyr/
# Pamhyr script to force x11
- echo '#!/usr/bin/env bash' > pamhyr/pamhyr-x11
- echo "" >> pamhyr/pamhyr-x11
- echo "GDK_BACKEND=x11 ./pamhyr $@" >> pamhyr/pamhyr-x11
- chmod +x pamhyr/pamhyr-x11
# Copy Pamhyr resources # Copy Pamhyr resources
- mkdir -p pamhyr/pamhyr/_internal/View - mkdir -p pamhyr/_internal/View
- mkdir -p pamhyr/pamhyr/_internal/View/ui - mkdir -p pamhyr/_internal/View/ui
- mkdir -p pamhyr/pamhyr/_internal/View/ui/Widgets - mkdir -p pamhyr/_internal/View/ui/Widgets
- cp -r ../src/View/ui/*.ui pamhyr/pamhyr/_internal/View/ui/ - cp -r ../src/View/ui/*.ui pamhyr/_internal/View/ui/
- cp -r ../src/View/ui/ressources/ pamhyr/pamhyr/_internal/View/ui - cp -r ../src/View/ui/ressources/ pamhyr/_internal/View/ui
- cp -r ../src/View/ui/Widgets/*.ui pamhyr/pamhyr/_internal/View/ui/Widgets - cp -r ../src/View/ui/Widgets/*.ui pamhyr/_internal/View/ui/Widgets
# Copy lang # Copy lang
- mkdir -p pamhyr/pamhyr/_internal/lang - mkdir -p pamhyr/_internal/lang
- cp -r ../src/lang/*.qm pamhyr/pamhyr/_internal/lang - cp -r ../src/lang/*.qm pamhyr/_internal/lang
# Copy tests cases # Copy tests cases
- mkdir -p pamhyr/tests_cases/ - mkdir -p pamhyr/tests_cases/
- mkdir -p pamhyr/tests_cases/Saar - mkdir -p pamhyr/tests_cases/Saar
@@ -237,17 +301,25 @@ build-linux:
- mkdir -p pamhyr/doc/ - mkdir -p pamhyr/doc/
- mkdir -p pamhyr/doc/images/ - mkdir -p pamhyr/doc/images/
- mkdir -p pamhyr/doc/html/ - mkdir -p pamhyr/doc/html/
- cp ../doc/users/documentation.pdf pamhyr/doc/Pamhyr2-users.pdf # - cp ../doc/users/documentation.pdf pamhyr/doc/Pamhyr2-users.pdf
- cp ../doc/users/documentation.html pamhyr/doc/Pamhyr2-users.html # - cp ../doc/users/documentation.html pamhyr/doc/Pamhyr2-users.html
- cp ../doc/mage8.pdf pamhyr/doc/mage8.pdf
- cp ../doc/dev/documentation.pdf pamhyr/doc/Pamhyr2-dev.pdf - cp ../doc/dev/documentation.pdf pamhyr/doc/Pamhyr2-dev.pdf
- cp ../doc/dev/documentation.html pamhyr/doc/Pamhyr2-dev.html - cp ../doc/dev/documentation.html pamhyr/doc/Pamhyr2-dev.html
#- cp ../doc/users/images/* pamhyr/doc/images #- cp ../doc/users/images/* pamhyr/doc/images
- cp ../doc/dev/images/* pamhyr/doc/images - cp -r ../doc/dev/images/* pamhyr/doc/images
- cp ../doc/images/* pamhyr/doc/images - cp -r ../doc/images/* pamhyr/doc/images
# Create running script # Copy Tuto
- echo "#!/bin/sh" > pamhyr/Pamhyr2 - mkdir -p pamhyr/doc/Tuto1/
- echo "./pamhyr/pamhyr $@" >> pamhyr/Pamhyr2 - mkdir -p pamhyr/doc/Tuto1/data
- chmod u+x pamhyr/Pamhyr2 - cp ../doc/users/Tuto1/Hogneau_Engees2022.pdf pamhyr/doc/Tuto1/Hogneau_Engees2022.pdf
- cp ../doc/users/Tuto1/step-by-step.pdf pamhyr/doc/Tuto1/Tuto1-en.pdf
- cp ../doc/users/Tuto1/pas-a-pas.pdf pamhyr/doc/Tuto1/Tuto1-fr.pdf
- cp ../doc/users/Tuto1/*.pamhyr pamhyr/doc/Tuto1/
- cp ../doc/users/Tuto1/data/* pamhyr/doc/Tuto1/data/
# Copy TP charriage
- mkdir -p pamhyr/doc/TP_charriage/
- cp ../doc/users/TP_charriage/* pamhyr/doc/TP_charriage
artifacts: artifacts:
paths: paths:
- linux/pamhyr - linux/pamhyr
@@ -259,7 +331,9 @@ build-windows:
rules: rules:
- if: $CI_COMMIT_BRANCH == 'ci-test' || $CI_COMMIT_BRANCH == 'master' || $CI_COMMIT_TAG - if: $CI_COMMIT_BRANCH == 'ci-test' || $CI_COMMIT_BRANCH == 'master' || $CI_COMMIT_TAG
needs: needs:
- job: dl-mage-windows - job: dl-mage8-windows
artifacts: true
- job: dl-mage8-doc
artifacts: true artifacts: true
- job: set-version - job: set-version
artifacts: true artifacts: true
@@ -267,16 +341,20 @@ build-windows:
artifacts: true artifacts: true
- job: build-developers-doc - job: build-developers-doc
artifacts: true artifacts: true
- job: build-users-doc # - job: build-users-doc
# artifacts: true
- job: build-td
artifacts: true artifacts: true
script: script:
- mkdir windows - mkdir windows
- cd windows - cd windows
# Setup env # Setup env
- python -m pip install -U pip
- python -m pip install -r ..\requirements.txt - python -m pip install -r ..\requirements.txt
- python -m pip install -U -r ..\requirements.txt - python -m pip install -U -r ..\requirements.txt
# Run Pyinstaller # Run Pyinstaller
- pyinstaller -y ..\src\pamhyr.py # - pyinstaller --noconsole -y ..\src\pamhyr.py
- pyinstaller -i ../src/View/ui/ressources/icon.ico --hide-console hide-early -y ..\src\pamhyr.py
# Create directory # Create directory
- mkdir pamhyr - mkdir pamhyr
- dir - dir
@@ -346,6 +424,146 @@ windows-package-exe:
- copy ..\packages\pamhyr.nsi pamhyr.nsi - copy ..\packages\pamhyr.nsi pamhyr.nsi
- .\make-windows-exe.bat - .\make-windows-exe.bat
linux-python-with-sources:
stage: package
tags:
- release
- linux
needs:
- job: dl-python-linux
artifacts: true
- job: set-version
artifacts: true
- job: build-lang
artifacts: true
rules:
- if: $CI_COMMIT_BRANCH == 'setup.py' || $CI_COMMIT_TAG
artifacts:
paths:
- linux-sources-with-python.tar.xz
script:
- git archive --format=tar.gz --output=src.tar.gz origin/$CI_COMMIT_BRANCH
- cd linux-python
- mkdir -p pamhyr
- cd pamhyr
- tar xvf ../../src.tar.gz
- cp -v ../../VERSION ./
- cp -v ../../src/lang/*.qm ./src/lang/
- cd ..
- cp ../packages/setup.sh ./setup.sh
- sed -i 's|python3|$(dirname $0)/python/python|' setup.sh
- sed -i 's|.pamhyr-env|$(dirname $0)/.pamhyr-env|' setup.sh
- sed -i 's|./pamhyr|$(dirname $0)/pamhyr|' setup.sh
- cd ..
- mv linux-python pamhyr
- tar cf linux-sources-with-python.tar.xz pamhyr
- mv pamhyr linux-python # Keep 'pamhyr' path avalaible
########
# HASH #
########
linux-build-hash:
stage: hash
tags:
- release
- linux
needs:
- job: build-linux
artifacts: true
rules:
- if: $CI_COMMIT_BRANCH == 'ci-test' || $CI_COMMIT_BRANCH == 'master' || $CI_COMMIT_TAG
script:
- cd linux
- sha256sum -b pamhyr/pamhyr > pamhyr/pamhyr.sha256
artifacts:
paths:
- linux/pamhyr/pamhyr.sha256
windows-build-hash:
stage: hash
tags:
- release
- linux
needs:
- job: build-windows
artifacts: true
rules:
- if: $CI_COMMIT_BRANCH == 'ci-test' || $CI_COMMIT_BRANCH == 'master' || $CI_COMMIT_TAG
script:
- cd windows
- sha256sum -b pamhyr/pamhyr.exe > pamhyr/pamhyr.exe.sha256
artifacts:
paths:
- windows/pamhyr/pamhyr.exe.sha256
pkg-hash:
stage: hash
tags:
- release
- linux
needs:
- job: linux-package-tar
artifacts: true
- job: windows-package-zip
artifacts: true
- job: windows-package-exe
artifacts: true
rules:
- if: $CI_COMMIT_BRANCH == 'ci-test' || $CI_COMMIT_TAG
script:
- cd windows
- sha256sum -b pamhyr-windows.exe > pamhyr-windows.exe.sha256
- sha256sum -b pamhyr-windows.zip > pamhyr-windows.zip.sha256
- cd ..
- cd linux
- sha256sum -b pamhyr-gnulinux.tar.xz > pamhyr-gnulinux.tar.xz.sha256
artifacts:
paths:
- windows/pamhyr-windows.exe.sha256
- windows/pamhyr-windows.zip.sha256
- linux/pamhyr-gnulinux.tar.xz.sha256
#############
# ANTIVIRUS #
#############
build-check-clamav:
stage: antivirus
tags:
- release
- linux
needs:
- job: build-linux
artifacts: true
- job: build-windows
artifacts: true
rules:
- if: $CI_COMMIT_BRANCH == 'ci-test' || $CI_COMMIT_BRANCH == 'master' || $CI_COMMIT_TAG
script:
- cd packages
- ./clamav-scan.sh builds
allow_failure: true
pkg-check-clamav:
stage: antivirus
tags:
- release
- linux
needs:
- job: linux-package-tar
artifacts: true
- job: windows-package-zip
artifacts: true
- job: windows-package-exe
artifacts: true
rules:
- if: $CI_COMMIT_BRANCH == 'ci-test' || $CI_COMMIT_TAG
script:
- cd packages
- ./clamav-scan.sh packages
allow_failure: true
########### ###########
# RELEASE # # RELEASE #
########### ###########
@@ -362,10 +580,12 @@ tag-release:
artifacts: true artifacts: true
- job: windows-package-exe - job: windows-package-exe
artifacts: true artifacts: true
- job: build-users-doc # - job: build-users-doc
artifacts: true # artifacts: true
- job: build-developers-doc - job: build-developers-doc
artifacts: true artifacts: true
- job: pkg-hash
artifacts: true
rules: rules:
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
artifacts: artifacts:
@@ -373,33 +593,44 @@ tag-release:
- linux/pamhyr-gnulinux.tar.xz - linux/pamhyr-gnulinux.tar.xz
- windows/pamhyr-windows.zip - windows/pamhyr-windows.zip
- windows/pamhyr-windows.exe - windows/pamhyr-windows.exe
- linux/pamhyr-gnulinux.tar.xz.sha256
- windows/pamhyr-windows.zip.sha256
- windows/pamhyr-windows.exe.sha256
- doc/dev/documentation.pdf - doc/dev/documentation.pdf
- doc/users/documentation.pdf # - doc/users/documentation.pdf
script: script:
- cd packages - cd packages
release: release:
name: '$CI_COMMIT_TAG' name: '$CI_COMMIT_TAG'
description: 'Automatic release from tag $CI_COMMIT_TAG' description: '$CI_COMMIT_TAG_MESSAGE'
tag_name: '$CI_COMMIT_TAG' tag_name: '$CI_COMMIT_TAG'
ref: '$CI_COMMIT_SHA' ref: '$CI_COMMIT_SHA'
assets: assets:
links: links:
- name: 'GNU/Linux CHECKSUM SHA256 (tar.xz)'
url: '${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/linux/pamhyr-gnulinux.tar.xz.sha256'
filepath: '/linux/pamhyr-gnulinux.tar.xz.sha256'
link_type: 'package'
- name: 'GNU/Linux (tar.xz)' - name: 'GNU/Linux (tar.xz)'
url: '${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/linux/pamhyr-gnulinux.tar.xz' url: '${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/linux/pamhyr-gnulinux.tar.xz'
filepath: '/linux/pamhyr-gnulinux.tar.xz' filepath: '/linux/pamhyr-gnulinux.tar.xz'
link_type: 'package' link_type: 'package'
- name: 'Windows CHECKSUM SHA256 (exe)'
url: '${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/windows/pamhyr-windows.exe.sha256'
filepath: '/windows/pamhyr-windows.exe.sha256'
link_type: 'package'
- name: 'Windows (exe)' - name: 'Windows (exe)'
url: '${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/windows/pamhyr-windows.exe' url: '${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/windows/pamhyr-windows.exe'
filepath: '/windows/pamhyr-windows.exe' filepath: '/windows/pamhyr-windows.exe'
link_type: 'package' link_type: 'package'
- name: 'Windows CHECKSUM SHA256 (zip)'
url: '${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/windows/pamhyr-windows.zip.sha256'
filepath: '/windows/pamhyr-windows.zip.sha256'
link_type: 'package'
- name: 'Windows (zip)' - name: 'Windows (zip)'
url: '${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/windows/pamhyr-windows.zip' url: '${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/windows/pamhyr-windows.zip'
filepath: '/windows/pamhyr-windows.zip' filepath: '/windows/pamhyr-windows.zip'
link_type: 'package' link_type: 'package'
- name: 'User documentations (pdf)'
url: '${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/doc/users/documentation.pdf'
filepath: '/doc/users/documentation.pdf'
link_type: 'other'
- name: 'Dev documentations (pdf)' - name: 'Dev documentations (pdf)'
url: '${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/doc/dev/documentation.pdf' url: '${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/doc/dev/documentation.pdf'
filepath: '/doc/dev/documentation.pdf' filepath: '/doc/dev/documentation.pdf'
+2 -2
View File
@@ -1,3 +1,3 @@
Sylvain COULIBALY, INRAE, 2020 - 2022 Sylvain COULIBALY, INRAE, 2020 - 2022
Théophile TERRAZ, INRAE, 2022 - 2023 Théophile TERRAZ, INRAE, 2022 - 2024
Pierre-Antoine ROUBY, INRAE, 2023 Pierre-Antoine ROUBY, INRAE, 2023 - 2024
+18 -13
View File
@@ -10,35 +10,40 @@ modelling of rivers.
+ Define boundary conditions + Define boundary conditions
+ Define lateral contribution + Define lateral contribution
+ Edit river friction + Edit river friction
+ Add reservoirs
+ Add hydraulic structures
+ Generate initial conditions + Generate initial conditions
+ Edit river sedimentary layers + Edit river sedimentary layers
+ Save the study in a unique file + Save the study in a unique file
+ Run Mage 8 on a study and visualize results + Run Mage 8 on a study and visualize results
Let see the
[documentation](https://gitlab.irstea.fr/theophile.terraz/pamhyr/-/wikis/home)
for more details.
## Install ## Install
### GNU/Linux ### GNU/Linux
Downloads [last [See documentation](https://gitlab.irstea.fr/theophile.terraz/pamhyr/-/wikis/home/en/Install%20on%20GNULinux)
realease](https://gitlab.irstea.fr/theophile.terraz/pamhyr/-/releases/permalink/latest)
GNU/Linux binary archive.
```shell
tar xf pamhyr-gnulinux-amd64.tar.xz
cd pamhyr
./pamhyr
```
### Windows ### Windows
Downloads [last [See documentation](https://gitlab.irstea.fr/theophile.terraz/pamhyr/-/wikis/home/en/Install%20on%20Windows)
realease](https://gitlab.irstea.fr/theophile.terraz/pamhyr/-/releases/permalink/latest)
Windows installer.
### From source code ### From source code
```shell ```shell
# Get source code # Get mage
mkdir mage
cd mage
curl -L -o mage.tgz https://gitlab.irstea.fr/jean-baptiste.faure/mage/-/releases/v8.3.2/downloads/packages/mage_linux.tgz
tar xf mage.tgz
cd ..
# Get Pamhyr2 source code
git clone https://gitlab.irstea.fr/theophile.terraz/pamhyr/ git clone https://gitlab.irstea.fr/theophile.terraz/pamhyr/
cd pamhyr cd pamhyr
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+83 -46
View File
@@ -1,5 +1,5 @@
# documentation.org -- Pamhyr developers documentation # documentation.org -- Pamhyr developers documentation
# Copyright (C) 2023 INRAE # Copyright (C) 2023-2024 INRAE
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
@@ -369,6 +369,7 @@ of Bar (Listing [[sql-bar]] and [[sql-foo]]).
CREATE TABLE bar ( CREATE TABLE bar (
id INTEGER NOT NULL PRIMARY KEY, id INTEGER NOT NULL PRIMARY KEY,
x INTEGER NOT NULL, x INTEGER NOT NULL,
y INTEGER NOT NULL,
foo_id INTEGER NOT NULL, foo_id INTEGER NOT NULL,
FOREIGN KEY(foo_id) REFERENCES foo(id), FOREIGN KEY(foo_id) REFERENCES foo(id),
)""") )""")
@@ -455,6 +456,15 @@ of Bar (Listing [[sql-bar]] and [[sql-foo]]).
bar._sql_save(execute, data=data) bar._sql_save(execute, data=data)
#+end_src #+end_src
Let see the results database scheme for Pamhyr2 at version v0.0.7 in
Figure [[sql_schema]].
#+NAME: sql_schema
#+ATTR_LATEX: :width 16cm
#+CAPTION: SQLite database scheme at Pamhyr2 version v0.0.7 (generate with [[https://gitlab.com/Screwtapello/sqlite-schema-diagram]])
[[./images/schema_v0.0.7.png]]
[fn:sqlite] The SQLite web site: https://www.sqlite.org/index.html [fn:sqlite] The SQLite web site: https://www.sqlite.org/index.html
(last access 2023-09-20) (last access 2023-09-20)
@@ -538,44 +548,44 @@ generic value from optional parameters, for examples:
#+NAME: window #+NAME: window
#+CAPTION: Example of Pamhyr2 window #+CAPTION: Example of Pamhyr2 window
#+begin_src python :python python3 :results output :noweb yes #+begin_src python :python python3 :results output :noweb yes
from View.Tools.PamhyrWindow import PamhyrWindow from View.Tools.PamhyrWindow import PamhyrWindow
from View.My.Translate import MyTranslate from View.My.Translate import MyTranslate
from View.My.Table import MyTableModel from View.My.Table import MyTableModel
class MyWindow(PamhyrWindow): class MyWindow(PamhyrWindow):
_pamhyr_ui = "MyUI" _pamhyr_ui = "MyUI"
_pamhyr_name = "My window" _pamhyr_name = "My window"
def __init__(self, my_data=None, def __init__(self, study=None, config=None,
study=None, config=None, my_data=None,
parent=None): parent=None):
self._my_data = my_data self._my_data = my_data
super(MyWindow, self).__init__( super(MyWindow, self).__init__(
# Window title # Window title
title = self._pamhyr_name + " - " + study.name, title = self._pamhyr_name + " - " + study.name,
# Window standard data # Window standard data
study = study, config = config, study = study, config = config,
trad = MyTranslate(), trad = MyTranslate(),
parent = parent, parent = parent,
# Activate undo/redo and copy/paste shortcut # Activate undo/redo and copy/paste shortcut
options = ["undo", "copy"] options = ["undo", "copy"]
) )
# Add custom data to hash window computation # Add custom data to hash window computation
self._hash_data.append(self._my_data) self._hash_data.append(self._my_data)
# Setup custom window components # Setup custom window components
self.setup_table() self.setup_table()
self.setup_connections() self.setup_connections()
def setup_table(self): def setup_table(self):
# Init table(s)... # Init table(s)...
def setup_connections(self): def setup_connections(self):
# Init action connection(s)... # Init action connection(s)...
# ... # ...
#+end_src #+end_src
Typically we called method =setup_*=, the method to initialize some Typically we called method =setup_*=, the method to initialize some
@@ -636,7 +646,7 @@ class AddNodeCommand(QUndoCommand):
self._node = node self._node = node
def undo(self): def undo(self):
self._graph.remove_node(self._node.name) self._graph.remove_node(self._node)
def redo(self): def redo(self):
self._graph.insert_node(self._node) self._graph.insert_node(self._node)
@@ -661,11 +671,13 @@ creation, this stack is accessible at =self._undo_stack=.
*** Plot *** Plot
To define a new plot you can create a class who inherit to APlot. The To define a new plot you can create a class who inherit to
creator need threee argument: PamhyrPlot. The creator need at leaste five argument:
- A =canvas= of type =MplCanvas= - A =canvas= of type =MplCanvas=
- A (optional) =trad= of type =PamhyrTranslate=
- A =data= used in =draw= and =update= to create and update the plot - A =data= used in =draw= and =update= to create and update the plot
- A optional =toolbar= of type =PamhyrToolbar= - A optional =toolbar= of type =PamhyrToolbar=
- A =parent= window
This class must implement two method =draw= and =update=, the first This class must implement two method =draw= and =update=, the first
method to draw the plot from scratch, the second to update the plot if method to draw the plot from scratch, the second to update the plot if
data has changed. data has changed.
@@ -673,19 +685,36 @@ data has changed.
#+begin_src python :python python3 :results output :noweb yes #+begin_src python :python python3 :results output :noweb yes
from View.Tools.PamhyrPlot import PamhyrPlot from View.Tools.PamhyrPlot import PamhyrPlot
class MyPlot(APlot): class MyPlot(PamhyrPlot):
def __init__(self, canvas=None, data=None, toolbar=None): def __init__(self, canvas=None, trad=None, toolbar=None
data=None, parent=None):
super(MyPlot, self).__init__( super(MyPlot, self).__init__(
canvas=canvas, canvas=canvas,
trad=trad,
data=data, data=data,
toolbar=toolbar toolbar=toolbar,
parent=parent
) )
self.label_x = self._trad["x"]
self.label_y = self._trad["y"]
# Optional configuration
self._isometric_axis = False
self._auto_relim_update = True
self._autoscale_update = True
def draw(self): def draw(self):
# Draw function code... # Draw function code...
def update(self, ind = None): def update(self):
# Update function code... # Update function code...
def clear(self):
# Clear plot values...
# ...
#+end_src #+end_src
** Solver ** Solver
@@ -745,7 +774,7 @@ execute a code on distant computer, for example, over ssh.
style=dashed; style=dashed;
subgraph cluster021 { subgraph cluster021 {
label="Solver Classes"; label="Solver Classes";
classSolverM7[label="Mage7", fillcolor=6]; //classSolverM7[label="Mage7", fillcolor=6];
classSolverM8[label="Mage8", fillcolor=6]; classSolverM8[label="Mage8", fillcolor=6];
classSolverR[label="RubarBE", fillcolor=6]; classSolverR[label="RubarBE", fillcolor=6];
} }
@@ -828,7 +857,7 @@ solver and get results:
- (2.1) The solver read the input file(s) - (2.1) The solver read the input file(s)
- (2.2) The solver compute results and write it to solver output - (2.2) The solver compute results and write it to solver output
file(s) file(s)
- (3) Pamhyr2 create a Reuslts - (3) Pamhyr2 create a =Results= object
- (3.1) The Pamhyr2 solver class read solver output file(s) and - (3.1) The Pamhyr2 solver class read solver output file(s) and
complete Results with readed data complete Results with readed data
@@ -958,8 +987,16 @@ different methods:
** Unit tests ** Unit tests
The unit tests is actually not implemented in Pamhyr2, it is a *work A very small part of Pamhyr2 has unit test. This part is limited to the Model.
in progress*.
#+begin_src shell
python3 -m venv test
. test test/bin/activate
pip3 install -U -r ./full-requirements.txt
cd src/
python3 -Walways -m unittest discovert -v -t .
#+end_src
** The debug mode ** The debug mode
@@ -970,14 +1007,14 @@ line:
./Pamhyr2 debug ./Pamhyr2 debug
#+end_src #+end_src
This mode add some log and add two action in main window menu: This mode add some log and add two action in main window menu: "About
"About/Debug" open a window with Python Repl in current Python > Debug" open a window with Python Repl in current Python
environement, and "About/Debug SQLite" who open the application environement, and "About > Debug SQLite" who open the application
SQLiteBrowser (if installed) on current Study to explore the study SQLiteBrowser (if installed) on current Study to explore the study
data base file. data base file.
#+NAME: debug-repl #+NAME: debug-repl
#+ATTR_LATEX: :width 12cm #+ATTR_LATEX: :width 14cm
#+CAPTION: Pamhyr2 debug Python REPL #+CAPTION: Pamhyr2 debug Python REPL
[[./images/python-debug-repl.png]] [[./images/python-debug-repl.png]]
Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

+4
View File
@@ -0,0 +1,4 @@
#! /bin/sh
pdflatex -no-shell-escape step-by-step.tex
pdflatex -no-shell-escape pas-a-pas.tex
+12 -4
View File
@@ -65,7 +65,8 @@
31874.0000 14.5000 22.1900 31874.0000 14.5000 22.1900
31874.0000 17.6000 22.9900 31874.0000 17.6000 22.9900
999.9990 999.9990 999.9990 999.9990 999.9990 999.9990
7 0 0 7 31875.0000 PontRD101m 7 0 0 9 31875.0000 PontRD101m
31875.0000 0.5400 23.0000
31875.0000 0.5400 21.8900 31875.0000 0.5400 21.8900
31875.0000 2.5000 19.6900 rg 31875.0000 2.5000 19.6900 rg
31875.0000 2.5000 18.6900 31875.0000 2.5000 18.6900
@@ -73,8 +74,10 @@
31875.0000 10.7000 18.9900 31875.0000 10.7000 18.9900
31875.0000 10.7000 19.9900 rd 31875.0000 10.7000 19.9900 rd
31875.0000 13.8900 21.8900 31875.0000 13.8900 21.8900
31875.0000 13.8900 23.0000
999.9990 999.9990 999.9990 999.9990 999.9990 999.9990
8 0 0 7 31885.0000 PontRD101v 8 0 0 9 31885.0000 PontRD101v
31885.0000 0.5400 23.0000
31885.0000 0.5400 21.8900 31885.0000 0.5400 21.8900
31885.0000 2.5000 19.6900 rg 31885.0000 2.5000 19.6900 rg
31885.0000 2.5000 18.6900 31885.0000 2.5000 18.6900
@@ -82,6 +85,7 @@
31885.0000 10.7000 18.9900 31885.0000 10.7000 18.9900
31885.0000 10.7000 19.9900 rd 31885.0000 10.7000 19.9900 rd
31885.0000 13.8900 21.8900 31885.0000 13.8900 21.8900
31885.0000 13.8900 23.0000
999.9990 999.9990 999.9990 999.9990 999.9990 999.9990
9 0 0 9 31886.0000 9 0 0 9 31886.0000
31886.0000 0.0000 22.9900 31886.0000 0.0000 22.9900
@@ -303,7 +307,8 @@
34334.0000 14.0000 18.1000 rd 34334.0000 14.0000 18.1000 rd
34334.0000 16.1000 21.1300 34334.0000 16.1000 21.1300
999.9990 999.9990 999.9990 999.9990 999.9990 999.9990
26 0 0 7 34335.0000 PontmThivencelle 26 0 0 9 34335.0000 PontmThivencelle
34335.0000 2.9000 22.0000
34335.0000 2.9000 20.7400 34335.0000 2.9000 20.7400
34335.0000 2.9000 18.2900 rg 34335.0000 2.9000 18.2900 rg
34335.0000 6.4000 17.7900 34335.0000 6.4000 17.7900
@@ -311,8 +316,10 @@
34335.0000 12.8000 17.2600 34335.0000 12.8000 17.2600
34335.0000 12.8000 18.3100 rd 34335.0000 12.8000 18.3100 rd
34335.0000 12.8000 20.7400 34335.0000 12.8000 20.7400
34335.0000 12.8000 22.0000
999.9990 999.9990 999.9990 999.9990 999.9990 999.9990
27 0 0 7 34343.0000 PontvThivencelle 27 0 0 9 34343.0000 PontvThivencelle
34343.0000 2.9000 22.0000
34343.0000 2.9000 20.7400 34343.0000 2.9000 20.7400
34343.0000 2.9000 18.2900 rg 34343.0000 2.9000 18.2900 rg
34343.0000 6.4000 17.7900 34343.0000 6.4000 17.7900
@@ -320,6 +327,7 @@
34343.0000 12.8000 17.2600 34343.0000 12.8000 17.2600
34343.0000 12.8000 18.2900 rd 34343.0000 12.8000 18.2900 rd
34343.0000 12.8000 20.7400 34343.0000 12.8000 20.7400
34343.0000 12.8000 22.0000
999.9990 999.9990 999.9990 999.9990 999.9990 999.9990
28 0 0 10 34345.0000 avalPontThivencell 28 0 0 10 34345.0000 avalPontThivencell
34345.0000 0.0000 21.3600 34345.0000 0.0000 21.3600
Binary file not shown.

Before

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 KiB

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

File renamed without changes.
File renamed without changes.
Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

+299
View File
@@ -0,0 +1,299 @@
%% LyX 2.0.2 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[12pt,french]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{geometry}
\geometry{verbose,tmargin=2cm,bmargin=2cm,lmargin=2cm,rmargin=2cm,headheight=2cm,headsep=2cm,footskip=2cm}
\usepackage{textcomp}
\usepackage{graphicx}
\usepackage{hyperref}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\newcommand{\noun}[1]{\textsc{#1}}
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}
\makeatother
\usepackage{babel}
\addto\extrasfrench{%
\providecommand{\og}{\leavevmode\flqq~}%
\providecommand{\fg}{\ifdim\lastskip>\z@\unskip\fi~\frqq}%
}
\begin{document}
\includegraphics[width=5cm]{img/Logo-INRAE_Transparent.png}
~
~
~
\begin{center}
Tutoriel pour Pamhyr2
Janvier 2024
\par\end{center}
~
~
\begin{center}
\textbf{\LARGE Modélisation 1D de la rivière } \\
\textbf{\LARGE Hogneau (Nord, France) avec Pamhyr2}
\par\end{center}{\LARGE \par}
~
~
\begin{center}
{\large INRAE Lyon-Grenoble Auvergne-Rhône-Alpes}
\par\end{center}{\large \par}
\begin{center}
RiverLy, Hydraulique des rivières
\par\end{center}
~
~
~
~
~
~
\begin{center}
\begin{tabular}{lll}
Autors : & Pierre-Antoine Rouby & pierre-antoine.rouby@inrae.fr\tabularnewline
& Théophile TERRAZ & theophile.terraz@inrae.fr\tabularnewline
& Lionel Pénard & lionel.penard@inrae.fr\tabularnewline
\end{tabular}
\par\end{center}
~
\pagebreak{}
\begin{center}
\tableofcontents{}
\par\end{center}
~
\pagebreak{}
% \section{Introduction}
%
% TODO
%
% \pagebreak{}
\section{Installer Pamhyr2}
Pamhyr2 peut être téléchargé ici : \url{https://gitlab.irstea.fr/theophile.terraz/pamhyr}.
\begin{center}
\includegraphics[width=15cm]{img/dl.png}
\par\end{center}
Utilisez le bouton de téléchargement GNU Linux ou Windows en fonction de votre système. Sous Windows, lancez le programme d'installation. Sous Linux, décompressez l'archive et lancez Pamhyr2.
\section{Créer une première étude}
Dans la fenêtre principale, cliquez sur \texttt{[Fichier] => [Nouvelle étude]} pour créer une nouvelle étude. Choisissez un nom, par exemple Hogneau, et validez
Cliquez sur \texttt{[Réseau] => [Editer le réseau]} pour créer les biefs de votre rivière. Dans cette fenêtre, vous devez définir un graphe orienté qui représente les biefs de votre réseau fluvial : les arêtes sont les biefs et les n½uds sont soit des conditions limites amont, soit des conditions limites aval, soit des jonctions entre biefs.
Appuyez sur le bouton \includegraphics[width=0.5cm]{img/gtk_add.png} pour entrer dans le mode \textit{Ajout}. Créez deux n½uds en cliquant dans la zone grise de la fenêtre, et créez un lien en cliquant à nouveau sur chaque n½ud. Appuyez à nouveau sur \includegraphics[width=0.5cm]{img/gtk_add.png} pour quitter le mode \textit{Ajout}. Vous avez créé votre premier bief, avec un n½ud amont et un n½ud aval. Dans la partie inférieure de la fenêtre \textit{Editer le réseau hydrographique}, vous pouvez renommer les n½uds et les biefs. Comme le bief que vous avez créé est automatiquement sélectionné, toutes les étapes suivantes s'appliqueront à ce bief. La fenêtre doit se présenter comme suit :
\begin{center}
\includegraphics[width=15cm]{img/network.png}
\par\end{center}
Fermer la fenêtre \textit{Editer le réseau}.
\section{Editer la géometrie de la rivière}
Cliquez sur \texttt{[Géometrie] => [Editer la géometrie]} pour définir la géométrie du bief sélectionné. Cliquez sur le bouton \texttt{[Importer]} et sélectionnez le fichier \texttt{Data/Bief\_1.st}. Vous devriez voir :
\begin{center}
\includegraphics[width=15cm]{img/Geo.png}
\par\end{center}
Le panneau de gauche contient une liste de toutes les sections en travers avec leur nom et leur abscisse longitudinale (PK). Dans le graphique en haut à gauche, vous pouvez voir la vue de dessus de la rivière, dans le panneau en haut à droite, la coupe longitudinale de la rivière et dans le graphique en bas, vous pouvez voir la section en travers sélectionnée (bleu) ainsi que la suivante (pointillés violets) et la précédente (pointillés noirs). Vous pouvez vous déplacer dans la liste des sections en cliquant dans le tableau ou à l'aide de l'ascenseur situé entre le tableau et les graphiques.
Vous pouvez éditer la section en travers sélectionnée en cliquant sur l'icône \includegraphics[width=0.5cm]{"img/edit.png"}.
Sélectionnez la section en travers nommée \textit{PontRD101m} et ouvrez la fenêtre d'édition. Vous devriez voir :
\begin{center}
\includegraphics[width=15cm]{img/editsect.png}
\par\end{center}
Sur le panneau de gauche se trouve la liste de tous les points de la section, avec leurs coordonnées, leur nom et leur abscisse transversale. La coordonnée Z du point le plus haut est inscrite en bleu et celle du point le plus bas en rouge. Les points peuvent avoir un nom. Si un point portant le même nom existe dans toutes les sections d'un bief, il forme une ligne longitudinale (ou ligne directrice). Par exemple, nous avons ici \textit{rg} et \textit{rd} qui représentent la rive gauche et la rive droite du lit mineur.
Sur le graphique figure une projection de la section en travers. Vous pouvez utiliser \texttt{[ctrl + clic]} pour sélectionner un point dans le tracé et \texttt{[maj + clic]} pour sélectionner une ligne d'eau et visualiser des données géométriques utiles. Vous pouvez fermer la fenêtre d'édition de la section en travers et la fenêtre d'édition de la géométrie.
\section{Editer les conditions aux limites}
Dans la fenêtre principale, cliquez sur \texttt{[Hydraulique] => [Conditions aux limites et apports ponctuels]} :
\begin{center}
\includegraphics[width=15cm]{img/boundary.png}
\par\end{center}
Utilisez le bouton \textit{ajouter} en haut à gauche de la fenêtre pour ajouter une condition limite pour le liquide.
Sur la nouvelle ligne, on peut cliquer pour sélectionner la ligne entière, et double-cliquer pour sélectionner la cellule.
Sélectionnez la cellule \textit{Type} pour donner un nom à la condition limite. Ici, nous définirons le débit mesuré lors de la crue de février 2002. Vous pouvez nommer cette condition limite "crue2002".
Sélectionner la cellule \textit{Type} et utiliser la combo box pour mettre une loi Q(t).
Sélectionnez la cellule \textit{Noeud} et attribuez cette condition au noeud amont.
Les noms des noeuds sont rappelés dans le réseau du panneau de droite.
Sélectionnez maintenant la ligne entière et cliquez sur le bouton d'édition \includegraphics[width=0.5cm]{"img/edit.png"}. Vous avez ouvert la fenêtre \textit{Éditer les conditions aux limites}.
Dans un éditeur de texte, ouvrez le fichier \texttt{Données/Fevrier\_2002.txt}. Copiez le contenu du fichier (par exemple avec \textit{ctrl+a} puis \textit{ctrl+c}) et collez-le dans le panneau gauche de la fenêtre \textit{Éditer les conditions aux limites} avec \textit{ctrl+v}. Vous pouvez maintenant voir la courbe de débit :
\begin{center}
\includegraphics[width=15cm]{img/fev2002.png}
\par\end{center}
Fermer cette fenêtre. Revenir sur la fenêtre \textit{Conditions aux limites}. Ajouter une nouvelle ligne, lui donner un nom, lui donner le type \textit{Z(T)} et l'associer au noeud aval du réseau. Ouvrez la fenêtre \textit{Éditer les conditions aux limites} (\includegraphics[width=0.5cm]{"img/edit.png"}). Ajoutez deux lignes. Dans la première, entrez le temps : 0.00.00 et Z : 15.000.
Dans la seconde, saisissez le temps : 1.00.00 et Z : 15.000. Cela crée une côte constante de l'eau en aval. Pour le calcul, Mage extrapolera continuellement l'élévation de l'eau.
Vous pouvez fermer les fenêtres \textit{Éditer les conditions aux limites} et \textit{Conditions aux limites}.
\section{Créer les conditions initiales}
Dans la fenêtre principale, cliquez sur \texttt{[Hydraulique] => [Conditions initiales]}.
Si vous ne connaissez pas les conditions initiales de la côte de l'eau et du débit de la rivière, vous pouvez utiliser les boutons \texttt{[Générer une hauteur minimale]} ou \texttt{[Générer un débit constant]} pour laisser Pamhyr2 estimer une condition initiale à l'aide de la formule de Manning-Strickler.
Cliquez sur \texttt{[Générer à partir du débit]} et saisissez un débit de $4 m^3$ dans la fenêtre contextuelle pour générer une condition initiale de hauteur d'eau basée sur la formule de Manning-Strickler et un débit uniforme de $4 m^3$. Vous devriez voir :
\begin{center}
\includegraphics[width=15cm]{img/ic.png}
\par\end{center}
Fermer la fenêtre \textit{Conditions initiales}
\section{Editer les coefficients de frottement}
Dans la fenêtre principale, cliquez sur \texttt{[Hydraulique] => [Editer les frottements]}.
Vous devez d'abord définir des jeux de coefficients de Strickler. Cliquez sur \includegraphics[width=0.5cm]{"img/edit.png"} pour ouvrir la fenêtre \textit{Strickler}. Vous pouvez y créer des couples de coefficients de Strickler, le premier pour le lit mineur, le second pour le lit moyen. Cliquez quatre fois sur \textit{add} pour créer quatre nouveaux couples. Donnez-leur les valeurs suivantes :
\begin{center}
\includegraphics[width=15cm]{img/K.png}
\par\end{center}
Fermez la fenêtre \textit{Strickler}. Dans la fenêtre \textit{Editer les frottements}, ajoutez quatre lignes avec le bouton \includegraphics[width=0.5cm]{img/gtk_add.png} pour créer quatre zones de frottement. Chaque zone est définie par un PK \textit{début} et de \textit{fin} PK et un couple \textit{begin} et \textit{end} couple de Strickler. Les couples de coefficients de Strickler à l'intérieur d'une zone sont interpolés à partir des couples \textit{begin} et \textit{end}. Dans notre cas, nous utiliserons des coefficients constants par zone. Définissez les zones comme suit :
\begin{center}
\includegraphics[width=15cm]{img/frictions.png}
\par\end{center}
La zone sélectionnée est surlignée en bleu. Fermez la fenêtre \textit{Editer les frottements}.
\section{Modélisation des ouvrages hydrauliques}
Parfois, il peut y avoir des sections en travers dans lesquelles les équations de Saint-Venant ne peuvent pas être utilisées pour modéliser l'écoulement de l'eau. Dans ce cas, nous devons définir une autre loi pour relier la côte de l'eau et le débit. C'est le cas, par exemple, au niveau des ponts lorsque la hauteur d'eau est trop élevée, ce qui entraîne un écoulement en charge. Pamhyr2 permet de définir différents ouvrages hydrauliques avec des lois paramétrables. Dans notre cas, on doit représenter un seuil et deux ponts comme ouvrages hydrauliques.
Dans la fenêtre principale, cliquez sur \texttt{[Hydraulique] => [Ouvrages hydrauliques]} pour ouvrir la fenêtre des ouvrages hydrauliques. Cliquez trois fois sur le bouton \includegraphics[width=0.5cm]{img/gtk_add.png} pour créer trois ouvrages hydrauliques. Chaque structure peut avoir un nom et doit avoir une portée et un PK. Définissez-les comme suit :
\begin{center}
\includegraphics[width=15cm]{img/hs.png}
\par\end{center}
Sélectionnez le seuil aval et cliquez sur \includegraphics[width=0.5cm]{"img/edit.png"} pour modifier les lois de cette ouvrage. Les ouvrages hydrauliques sont composés d'ouvrages hydrauliques élémentaires. Vous pouvez combiner les lois de plusieurs ouvrages hydrauliques élémentaires pour créer votre ouvrage. Pour ce seuil, nous n'avons besoin que d'un ouvrage hydraulique élémentaire de type déversoir. Cliquez sur \includegraphics[width=0.5cm]{img/gtk_add.png} pour ajouter un nouvel ouvrage hydraulique élémentaire, donnez-lui le type \textit{seuil} et configurez-le comme suit :
\begin{center}
\includegraphics[width=15cm]{img/seuil.png}
\par\end{center}
Retournez à la fenêtre \textit{Ouvrages hydrauliques}.
Sélectionnez le pont RS101 et cliquez sur \includegraphics[width=0.5cm]{"img/edit.png"} pour éditer les lois de cet ouvrage. Un pont peut être modélisé comme une combinaison d'un orifice pour l'écoulement sous le pont et d'un déversoir pour l'écoulement au-dessus du pont. Créez deux ouvrages hydrauliques élémentaires et définissez-les comme suit :
\begin{center}
\includegraphics[width=15cm]{img/seuilRS101.png}
\includegraphics[width=15cm]{img/orificeRS101.png}
\par\end{center}
Revenez à la fenêtre \textit{Ouvrages hydrauliques} et appliquez la même procédure pour le pont de Thivencelle :
\begin{center}
\includegraphics[width=15cm]{img/orificeThivencelle.png}
\includegraphics[width=15cm]{img/seuilThivencelle.png}
\par\end{center}
Vous pouvez maintenant fermer les fenêtres \textit{Ouvrages hydrauliques}.
\section{Paramètres du solveur}
Dans la fenêtre principale, cliquez sur \texttt{[Exécuter] => [Parameters numériques des solveurs]}.
Dans la fenêtre \textit{Paramètres du solveur}, sélectionnez l'onglet \textit{Mage v8}. Réglez les paramètres du solveur comme suit :
\begin{center}
\includegraphics[width=15cm]{img/param.png}
\par\end{center}
Fermer la fenêtre \textit{Paramètres du solveur}.
\section{Lancer la simulation}
Dans la fenêtre principale, cliquez sur \texttt{[Exécuter] => [Lancer le solveur]}.
Sélectionnez \textit{Defaut-Mage - (Mage8)} et cliquez sur le bouton \textit{Exécuter}.
Deux fenêtres s'ouvrent : la fenêtre \textit{check list} et la fenêtre \textit{Log du solveur}.
La fenêtre \textit{Check list} donne quelques indications sur la validité de votre modèle, et la fenêtre \textit{Log du solveur} affiche les résultats du solveur.
À partir de la fenêtre \textit{Log du solveur}, vous pouvez réexécuter le calcul, et vous pouvez cliquer sur le bouton \textit{Résultats} pour ouvrir la fenêtre \textit{Résultats}.
\section{Visualiser les résultats}
il est aussi possible d'ouvrir la fenêtre \textit{Résultats} si vous avez fermé la fenêtre \textit{Log du solveur}, en cliquant sur \texttt{[Résultats] => [Visualiser les derniers résultats]} à partir de la fenêtre principale. Le panneau supérieur vous permet de sélectionner le bief, le panneau inférieur gauche vous permet de sélectionner une section en travers dans ce bief. Les trois diagrammes sur la droite montrent le bief et la section en travers de la même manière que dans la fenêtre \textit{Géométrie}. Vous pouvez utiliser le curseur du bas pour visualiser la côte de l'eau à différents pas de temps.
Pour visualiser le débit, passez à l'onglet \textit{Hydrogramme}.
Pour créer des tracés 2D personnalisés, cliquez sur le bouton \includegraphics[width=0.5cm]{img/gtk_add.png} en haut à gauche de la fenêtre. Sélectionnez les valeurs que vous voulez sur les axes $X$ et $Y$ et cliquez sur \textit{OK}.
Vous pouvez maintenant voir un nouvel onglet avec le tracé 2D personnalisé dans le panneau droit de la fenêtre \textit{Results}.
\pagebreak{}
\end{document}
+93 -26
View File
@@ -25,7 +25,7 @@
} }
\begin{document} \begin{document}
\includegraphics[width=5cm]{Logo-INRAE_Transparent.png} \includegraphics[width=5cm]{img/Logo-INRAE_Transparent.png}
~ ~
@@ -58,7 +58,7 @@ using Pamhyr2
\par\end{center}{\large \par} \par\end{center}{\large \par}
\begin{center} \begin{center}
Riverly, river hydraulics RiverLy, river hydraulics
\par\end{center} \par\end{center}
~ ~
@@ -75,8 +75,9 @@ Riverly, river hydraulics
\begin{center} \begin{center}
\begin{tabular}{lll} \begin{tabular}{lll}
Autors : & Pierre-Antoine Rouby & pierre-antoine.rouby@inrae.fr\tabularnewline Authors : & Pierre-Antoine Rouby & pierre-antoine.rouby@inrae.fr\tabularnewline
& Théophile TERRAZ & theophile.terraz@inrae.fr\tabularnewline & Théophile Terraz & theophile.terraz@inrae.fr\tabularnewline
& Lionel Pénard & lionel.penard@inrae.fr\tabularnewline
\end{tabular} \end{tabular}
\par\end{center} \par\end{center}
@@ -92,17 +93,17 @@ Autors : & Pierre-Antoine Rouby & pierre-antoine.rouby@inrae.fr\tabularnewline
\pagebreak{} \pagebreak{}
\section{Introduction} % \section{Introduction}
%
TODO % TODO
%
\pagebreak{} % \pagebreak{}
\section{Install Pamhyr2} \section{Install Pamhyr2}
Pamhyr2 can be downloaded from \url{https://gitlab.irstea.fr/theophile.terraz/pamhyr}. Pamhyr2 can be downloaded from \url{https://gitlab.irstea.fr/theophile.terraz/pamhyr}.
\begin{center} \begin{center}
\includegraphics[width=15cm]{dl.png} \includegraphics[width=15cm]{img/dl.png}
\par\end{center} \par\end{center}
Use the GNU Linux or the Windows download button depending on your system. On windows, launch the installer. On Linux, unpack the archive and launch Pamhyr2. Use the GNU Linux or the Windows download button depending on your system. On windows, launch the installer. On Linux, unpack the archive and launch Pamhyr2.
@@ -113,10 +114,10 @@ Use the GNU Linux or the Windows download button depending on your system. On wi
On the main windows, click on \texttt{[Files] => [New Study]} to create a new study. On the main windows, click on \texttt{[Files] => [New Study]} to create a new study.
Click on \texttt{[River Network] => [Edit River Network]} to create the reaches of your river. In this window, you must define an oriented graph that represents the reaches of your river network: the edges are the reaches and the nodes are either upstream boundary conditions, downstream boundary conditions or junctions. Click on \texttt{[River Network] => [Edit River Network]} to create the reaches of your river. In this window, you must define an oriented graph that represents the reaches of your river network: the edges are the reaches and the nodes are either upstream boundary conditions, downstream boundary conditions or junctions.
Press the \includegraphics[width=0.5cm]{gtk_add.png} to enter the \textit{add} mode. Create two nodes by clicking in the grey zone of the window, and create a link by clicking again on each node. press \includegraphics[width=0.5cm]{gtk_add.png} again to exit the \textit{add} mode. You created your first reach, with an upstream node and a downstream node. In the lower part of the \textit{Edit River Network} window you can rename the nodes and the reaches. As the reach you created is automaticaly selected, all the next steps will apply to this reach. The window should look like that: Press the \includegraphics[width=0.5cm]{img/gtk_add.png} to enter the \textit{add} mode. Create two nodes by clicking in the grey zone of the window, and create a link by clicking again on each node. press \includegraphics[width=0.5cm]{img/gtk_add.png} again to exit the \textit{add} mode. You created your first reach, with an upstream node and a downstream node. In the lower part of the \textit{Edit River Network} window you can rename the nodes and the reaches. As the reach you created is automaticaly selected, all the next steps will apply to this reach. The window should look like that:
\begin{center} \begin{center}
\includegraphics[width=15cm]{network.png} \includegraphics[width=15cm]{img/network.png}
\par\end{center} \par\end{center}
Close the \textit{Edit River Network} window. Close the \textit{Edit River Network} window.
@@ -127,29 +128,29 @@ Close the \textit{Edit River Network} window.
Click on \texttt{[Geometry] => [Edit Geometry]} to define the geometry of the selected bief. Click on the \texttt{[Import]} button and select the file \texttt{Data/Bief\_1.st}. You should see: Click on \texttt{[Geometry] => [Edit Geometry]} to define the geometry of the selected bief. Click on the \texttt{[Import]} button and select the file \texttt{Data/Bief\_1.st}. You should see:
\begin{center} \begin{center}
\includegraphics[width=15cm]{Geo.png} \includegraphics[width=15cm]{img/Geo.png}
\par\end{center} \par\end{center}
On the left panel is a list of all the cross sections with their name and longitudinal abscisa. In the top left plot you can see the top view of the river, on the top right panel the longitudinal cross-section of the river and in the bottom plot you can see the selected cross-section (blue) along with the next one (dashed purple) and previous one (dashed black). You can move in the section list using the slider at the very right of the window. On the left panel is a list of all the cross sections with their name and longitudinal abscisa. In the top left plot you can see the top view of the river, on the top right panel the longitudinal cross-section of the river and in the bottom plot you can see the selected cross-section (blue) along with the next one (dashed purple) and previous one (dashed black). You can move in the section list using the slider at the very right of the window.
You can edit the selected cross section by clicking on the \includegraphics[width=0.5cm]{"../../../src/View/ui/ressources/edit.png"} icon. You can edit the selected cross section by clicking on the \includegraphics[width=0.5cm]{"img/edit.png"} icon.
select the cross section named \textit{PontRD101m} and open the edition window. You should see: select the cross section named \textit{PontRD101m} and open the edition window. You should see:
\begin{center} \begin{center}
\includegraphics[width=15cm]{editsect.png} \includegraphics[width=15cm]{img/editsect.png}
\par\end{center} \par\end{center}
On the left panel is the list of all the points of the section, with their coordinates, their name and their transversal absisa. The Z coordinate of the highest point is written in blue and the lowest in red. Points can have a name. If a point with the same name exists in every section in a reach, it forms a longitudinal line. For example, here we have \textit{rg} and \textit{rd} which represent the left bank and the right bank of the main chanel. On the left panel is the list of all the points of the section, with their coordinates, their name and their transversal absisa. The Z coordinate of the highest point is written in blue and the lowest in red. Points can have a name. If a point with the same name exists in every section in a reach, it forms a longitudinal line. For example, here we have \textit{rg} and \textit{rd} which represent the left bank and the right bank of the main chanel.
On the plot is a projection of the cross section. You can use \texttt{[ctrl + click]} to select a point in the plot. For now we don't have to change anything. You can close the cross section edition window and the geometry edition window. On the plot is a projection of the cross section. You can use \texttt{[ctrl + click]} to select a point in the plot and \texttt{[shift + click]} to select a water line and visualize usefull geometric data. You can close the cross section edition window and the geometry edition window.
\section{Edit the boundary conditions} \section{Edit the boundary conditions}
From the main window, click on \texttt{[Hydraulics] => [Boundary conditions and punctual contributions]}.You should see: From the main window, click on \texttt{[Hydraulics] => [Boundary conditions and punctual contributions]}.You should see:
\begin{center} \begin{center}
\includegraphics[width=15cm]{boundary.png} \includegraphics[width=15cm]{img/boundary.png}
\par\end{center} \par\end{center}
Use the \textit{add} button on the top left of the window to add a liquid boundary condition. Use the \textit{add} button on the top left of the window to add a liquid boundary condition.
@@ -158,24 +159,25 @@ From the main window, click on \texttt{[Hydraulics] => [Boundary conditions and
Select the \textit{Type} cell and use the combo box to put a Q(t) law. Select the \textit{Type} cell and use the combo box to put a Q(t) law.
Select the \textit{Node} cell and atribute this condition to the upstream node. Select the \textit{Node} cell and atribute this condition to the upstream node.
Names of the nodes are recalled in network in the right panel. Names of the nodes are recalled in network in the right panel.
Now select the whole line and click on the edit button \includegraphics[width=0.5cm]{"../../../src/View/ui/ressources/edit.png"}. You opened the \textit{Edit Boundary Conditions} window. Now select the whole line and click on the edit button \includegraphics[width=0.5cm]{"img/edit.png"}. You opened the \textit{Edit Boundary Conditions} window.
On a text editor, open the \texttt{Data/Fevrier\_2002.txt} file. Copy the content of the file (for example with \textit{ctrl+a ctrl+c}) and paste it in the left panel of the \textit{Edit Boundary Conditions} window with \textit{ctrl+v}. You can now see the flow discharge curve: On a text editor, open the \texttt{Data/Fevrier\_2002.txt} file. Copy the content of the file (for example with \textit{ctrl+a ctrl+c}) and paste it in the left panel of the \textit{Edit Boundary Conditions} window with \textit{ctrl+v}. You can now see the flow discharge curve:
\begin{center} \begin{center}
\includegraphics[width=15cm]{fev2002.png} \includegraphics[width=15cm]{img/fev2002.png}
\par\end{center} \par\end{center}
Close this window. Go back on the \textit{Boundary Conditions} window. Add a new line, give it a name, give it the textit{Z(T)} type and associate it to the downstream node of the network. Open the \textit{Edit Boundary Conditions} window (\includegraphics[width=0.5cm]{"../../../src/View/ui/ressources/edit.png"}). Add two lines. In the first one, enter time: 0.00.00 and Z: 15.000. Close this window. Go back on the \textit{Boundary Conditions} window. Add a new line, give it a name, give it the textit{Z(T)} type and associate it to the downstream node of the network. Open the \textit{Edit Boundary Conditions} window (\includegraphics[width=0.5cm]{"img/edit.png"}). Add two lines. In the first one, enter time: 0.00.00 and Z: 15.000.
On the second one, time: 1.00.00 and Z: 15.000. It creates a constant downstream water elevation. For the computaion, Mage will extrapolate continuously the water elevation, that's why we only need to define one hour. On the second one, time: 1.00.00 and Z: 15.000. It creates a constant downstream water elevation. For the computaion, Mage will extrapolate continuously the water elevation, that's why we only need to define one hour.
You can close the the \textit{Edit Boundary Conditions} and the \textit{Boundary Conditions} window. You can close the the \textit{Edit Boundary Conditions} and the \textit{Boundary Conditions} window.
\section{Create initial conditions} \section{Create initial conditions}
From the main window, click on \texttt{[Hydraulics] => [Initial conditions]}. From the main window, click on \texttt{[Hydraulics] => [Initial conditions]}.
Click on \texttt{Generate minimal height} and enter a height of 2 meters in the pop-up window to generate an initial water height condition that verify the folowing conditions: a water height of at least 2 meters and a decreasing water surface elevation from upstream to downstream. You should see: If you don't know the initial conditions in water elevation and flow discharge of the river, you can use \texttt{[Generate minimal height]} or \texttt{[Generate from discharge]} buttons to let Pamhyr2 estimate an initial condition using the Manning-Strickler formula.
Click on \texttt{[Generate from discharge]} and enter a discharge of $4 m^3$ in the pop-up window to generate an initial water height condition based on the Manning-Strickler formula and a uniform discharge of $4 m^3$. You should see:
\begin{center} \begin{center}
\includegraphics[width=15cm]{ic.png} \includegraphics[width=15cm]{img/ic.png}
\par\end{center} \par\end{center}
Close the \textit{Initial conditions} window. Close the \textit{Initial conditions} window.
@@ -184,18 +186,83 @@ Close the \textit{Initial conditions} window.
\section{Edit friction coefficients} \section{Edit friction coefficients}
From the main window, click on \texttt{[Hydraulics] => [Edit friction]}. From the main window, click on \texttt{[Hydraulics] => [Edit friction]}.
You fist have to define sets of Strickler coefficients. Click on \includegraphics[width=0.5cm]{"../../../src/View/ui/ressources/edit.png"} to open the \textit{Strickler} window. Here you can create couples of Strickler coefficients, the first one for the minor bed, the second one for the medium bed. Click on \textit{add} four times to create four new couple. Give them the folowing values: You fist have to define sets of Strickler coefficients. Click on \includegraphics[width=0.5cm]{"img/edit.png"} to open the \textit{Strickler} window. Here you can create couples of Strickler coefficients, the first one for the minor bed, the second one for the medium bed. Click on \textit{add} four times to create four new couple. Give them the folowing values:
\begin{center} \begin{center}
\includegraphics[width=15cm]{K.png} \includegraphics[width=15cm]{img/K.png}
\par\end{center} \par\end{center}
Close the \textit{Strickler} window. On the \textit{Edit friction} window, add four lines with the button \includegraphics[width=0.5cm]{gtk_add.png} to create fous friction zones. Each zone is defined by a \textit{begin} and \textit{end} PK and a \textit{begin} and \textit{end} Strickler couple. The strickler coefficient couples inside a zone are interpolated from the \textit{begin} and \textit{end} couples. In our case, we will use constant coefficients per zone. Set the zones as follow: Close the \textit{Strickler} window. On the \textit{Edit friction} window, add four lines with the button \includegraphics[width=0.5cm]{img/gtk_add.png} to create four friction zones. Each zone is defined by a \textit{begin} and \textit{end} KP and a \textit{begin} and \textit{end} Strickler couple. The strickler coefficient couples inside a zone are interpolated from the \textit{begin} and \textit{end} couples. In our case, we will use constant coefficients per zone. Set the zones as follow:
\begin{center} \begin{center}
\includegraphics[width=15cm]{frictions.png} \includegraphics[width=15cm]{img/frictions.png}
\par\end{center} \par\end{center}
The selected zone is highlighted in blue. Close the \textit{Edit friction} window.
\section{Model hydraulic structures}
Sometimes there can be cross-sections in which Shallow water equations can not be used to model the water flow. In that case, we have to define an other law to link the water elevation and the flow discharge. This is the case, for example, under bridges when the water elevation is too high, leading to a flow in charge. Pamhyr2 enables to define various hydraulic structures with laws that can be parametrized. In our case, a weir and two bridges have to be represented as hydraulic structures.
From the main window, click on \texttt{[Hydraulics] => [Hydraulic structures]} to open the hydraulic structures window. Click tree times on the \includegraphics[width=0.5cm]{img/gtk_add.png} button to create three hydraulic structures. Each structure can have a name and must have a reach and a KP. Set them as follow:
\begin{center}
\includegraphics[width=15cm]{img/hs.png}
\par\end{center}
Select the downstream weir and click on \includegraphics[width=0.5cm]{"img/edit.png"} to edit the laws of this structure. Hydraulic structures are composed of basic hydraulic structures. You can combine the laws of several basic hydraulic structures to setup your structure. For this weir, we only need a weir basic hydraulic structure. Click on \includegraphics[width=0.5cm]{img/gtk_add.png} to add a new basic hydraulic structure, give it the \textit{weir} type and set it up as folow:
\begin{center}
\includegraphics[width=15cm]{img/seuil.png}
\par\end{center}
Go back to the \textit{hydraulic structures} window.
Select the RS101 bridge and click on \includegraphics[width=0.5cm]{"img/edit.png"} to edit the laws of this structure. A bridge can be modeled as a combination of an orifice for the flow under the bridge and a weir for the flow over the bridge. Create two basic hydraulic structures and set them as folow:
\begin{center}
\includegraphics[width=15cm]{img/seuilRS101.png}
\includegraphics[width=15cm]{img/orificeRS101.png}
\par\end{center}
Go back to the \textit{hydraulic structures} window and aply the same procedure for the Thivencelle bridge:
\begin{center}
\includegraphics[width=15cm]{img/orificeThivencelle.png}
\includegraphics[width=15cm]{img/seuilThivencelle.png}
\par\end{center}
You can now close the \textit{hydraulic structures} windows.
\section{Solver parameters}
From the main window, click on \texttt{[Execute] => [Numerical parameters for solvers]}.
In the window \textit{solver parameters} select the \textit{Mage v8} tab. Set the solver parameters as follow:
\begin{center}
\includegraphics[width=15cm]{img/param.png}
\par\end{center}
Close the \textit{solver parameters} window.
\section{Run the simulation}
From the main window, click on \texttt{[Execute] => [Run solver]}.
Select \textit{Defaut-Mage - (Mage8)} anc click on the \textit{Run} button.
It will open two windows: the \textit{Check list} window and the \textit{Solver log} window.
The \textit{Check list} window gives som hints about the validity of your model, and the \textit{Solver log} window displays the outputs of the solver.
From the \textit{Solver log} window you can re-run the computation, and from the textit{Solver log} window you can click on the \textit{Results} button to open the \textit{Results} window.
\section{Visualize the results}
If you closed the \textit{Solver log} window, you can click on \texttt{[Results] => [Visualize last results]} from the main window to open the \textit{Results} window. The top lets panel let you select your reach, the bottom left panel lets you select a cross-section in that reach. the three plots on the right show the reach and the cross-section the same way than in the \textit{Geometry} window. You can use the bottom slider to visualize the water elevation at different timesteps.
To visualize the flow discharge, switch to the \textit{Hydrograph} tab.
To create custom 2D plots, click on the \includegraphics[width=0.5cm]{img/gtk_add.png} button on the top left of the window. Select the values you want on the $X$ and $Y$ axis and click on \textit{OK}.
You can now see a new tab with the custom 2D plot in the right panel of the \textit{Results} window.
\pagebreak{} \pagebreak{}
\end{document} \end{document}
Binary file not shown.
Binary file not shown.
Binary file not shown.
+3 -1
View File
@@ -4,9 +4,11 @@ PyQt5-sip==12.12.2
PyQtWebEngine==5.15.6 PyQtWebEngine==5.15.6
QScintilla>=2.14.1 QScintilla>=2.14.1
pyqtgraph>=0.12.1 pyqtgraph>=0.12.1
matplotlib>=3.4.1 matplotlib>=3.7.1
numpy>=1.24.2 numpy>=1.24.2
colorama>=0.4.3 colorama>=0.4.3
pyinstaller>=5.11.0 pyinstaller>=5.11.0
shapely>=2.0.1 shapely>=2.0.1
lxml>=4.9.3 lxml>=4.9.3
platformdirs>=4.2.0
pyshp>=2.3.1
Executable
+3
View File
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
guix shell --manifest=manifest.scm -- python3 ./src/pamhyr.py $@
+22
View File
@@ -0,0 +1,22 @@
;; manifest.scm -- Pamhyr
;; Copyright (C) 2024 INRAE
;;
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;;
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
(specifications->manifest
(list "python" "zlib" "python-platformdirs" "python-lxml"
"python-pyqt@5" "python-pyqt5-sip"
"python-pyqtgraph" "python-qscintilla"
"python-numpy" "python-shapely" "python-pyshp"
"python-matplotlib"))
+21
View File
@@ -0,0 +1,21 @@
#! /bin/bash
set +x
OPTS="-r -a -i"
if [ "$1" == "builds" ]; then
FILES="../windows/ ../linux/"
else
FILES="../windows/pamhyr-windows.exe ../windows/pamhyr-windows.zip ../linux/pamhyr-gnulinux.tar.xz"
fi
clamscan $OPTS $FILES | tee clamav.log
RES=$(cat clamav.log | grep "Infected files: 0")
if [ -z "$RES" ]; then
echo "Infected files"
exit -1
else
echo "OK"
exit 0
fi
+3
View File
@@ -0,0 +1,3 @@
@echo off
start cmd /c pamhyr.exe debug
+3
View File
@@ -0,0 +1,3 @@
#! /bin/sh
./pamhyr debug
+35 -19
View File
@@ -16,33 +16,35 @@ rem along with this program. If not, see <https://www.gnu.org/licenses/>.
@ECHO ON @ECHO ON
mkdir pamhyr\pamhyr\_internal mkdir pamhyr\_internal
xcopy /s /e /y dist\pamhyr pamhyr\pamhyr xcopy /s /e /y dist\pamhyr pamhyr
rem Copy data rem Copy data
mkdir pamhyr\pamhyr\_internal\lang mkdir pamhyr\_internal\lang
mkdir pamhyr\pamhyr\_internal\View\ui\ressources mkdir pamhyr\_internal\View\ui\ressources
mkdir pamhyr\pamhyr\_internal\View\ui\Widgets mkdir pamhyr\_internal\View\ui\Widgets
rem UI rem UI
copy /y ..\src\View\ui\ressources\ pamhyr\pamhyr\_internal\View\ui\ressources copy /y ..\src\View\ui\ressources\ pamhyr\_internal\View\ui\ressources
copy /y ..\src\View\ui\Widgets\*.ui pamhyr\pamhyr\_internal\View\ui\Widgets copy /y ..\src\View\ui\Widgets\*.ui pamhyr\_internal\View\ui\Widgets
copy /y ..\src\View\ui\*.ui pamhyr\pamhyr\_internal\View\ui\ copy /y ..\src\View\ui\*.ui pamhyr\_internal\View\ui\
rem Lang rem Lang
copy /y ..\src\lang\*.qm pamhyr\pamhyr\_internal\lang\ copy /y ..\src\lang\*.qm pamhyr\_internal\lang\
rem Information rem Information
copy /y ..\VERSION pamhyr\pamhyr\_internal copy /y ..\VERSION pamhyr\_internal
copy /y ..\AUTHORS pamhyr\pamhyr\_internal copy /y ..\AUTHORS pamhyr\_internal
copy /y ..\LICENSE pamhyr\pamhyr\_internal copy /y ..\LICENSE pamhyr\_internal
copy /y ..\src\motd.txt pamhyr\pamhyr\_internal copy /y ..\src\motd.txt pamhyr\_internal
rem MAGE rem MAGE
mkdir pamhyr\mage mkdir pamhyr\mage8
copy /y ..\mage-windows\mage.exe pamhyr\mage\ copy /y ..\mage8-windows\mage.exe pamhyr\mage8\
copy /y ..\mage-windows\mage_extraire.exe pamhyr\mage\ copy /y ..\mage8-windows\mage_as7.exe pamhyr\mage8\
copy /y ..\mage-windows\mailleurPF.exe pamhyr\mage\ copy /y ..\mage8-windows\mage_extraire.exe pamhyr\mage8\
copy /y ..\mage8-windows\mailleurTT.exe pamhyr\mage8\
copy /y ..\mage8-windows\libbief.dll pamhyr\mage8\
rem Copy tests_cases rem Copy tests_cases
mkdir pamhyr\tests_cases mkdir pamhyr\tests_cases
@@ -52,10 +54,24 @@ copy /y ..\tests_cases\Saar\Saar.pamhyr pamhyr\tests_cases\Saar\
rem Documentations rem Documentations
mkdir pamhyr\doc mkdir pamhyr\doc
mkdir pamhyr\doc\images mkdir pamhyr\doc\images
copy /y ..\doc\users\documentation.pdf pamhyr\doc\Pamhyr2-users.pdf rem copy /y ..\doc\users\documentation.pdf pamhyr\doc\Pamhyr2-users.pdf
copy /y ..\doc\dev\documentation.pdf pamhyr\doc\Pamhyr2-dev.pdf copy /y ..\doc\dev\documentation.pdf pamhyr\doc\Pamhyr2-dev.pdf
copy /y ..\doc\users\documentation.html pamhyr\doc\Pamhyr2-users.html copy /y ..\doc\mage8.pdf pamhyr\doc\mage8.pdf
rem copy /y ..\doc\users\documentation.html pamhyr\doc\Pamhyr2-users.html
copy /y ..\doc\dev\documentation.html pamhyr\doc\Pamhyr2-dev.html copy /y ..\doc\dev\documentation.html pamhyr\doc\Pamhyr2-dev.html
copy /y ..\doc\users\images\* pamhyr\doc\images copy /y ..\doc\users\images\* pamhyr\doc\images
copy /y ..\doc\dev\images\* pamhyr\doc\images copy /y ..\doc\dev\images\* pamhyr\doc\images
copy /y ..\doc\images\* pamhyr\doc\images copy /y ..\doc\images\* pamhyr\doc\images
rem Tuto
mkdir pamhyr\doc\Tuto1\
mkdir pamhyr\doc\Tuto1\data
copy /y ..\doc\users\Tuto1\Hogneau_Engees2022.pdf pamhyr\doc\Tuto1\Hogneau_Engees2022.pdf
copy /y ..\doc\users\Tuto1\step-by-step.pdf pamhyr\doc\Tuto1\Tuto1-en.pdf
copy /y ..\doc\users\Tuto1\pas-a-pas.pdf pamhyr\doc\Tuto1\Tuto1-fr.pdf
copy /y ..\doc\users\Tuto1\*.pamhyr pamhyr\doc\Tuto1\
copy /y ..\doc\users\Tuto1\data\* pamhyr\doc\Tuto1\data\
rem TP charriage
mkdir pamhyr\doc\TP_charriage
copy /y ..\doc\users\TP_charriage\ pamhyr\doc\TP_charriage
+4 -3
View File
@@ -3,9 +3,10 @@
!define LIC_NAME "LICENSE" !define LIC_NAME "LICENSE"
!define APP_NAME "PAMHYR" !define APP_NAME "PAMHYR"
Icon "pamhyr\_internal\View\ui\ressources\icon.ico"
Name "Pamhyr2" Name "Pamhyr2"
OutFile "pamhyr-windows.exe" OutFile "pamhyr-windows.exe"
LicenseData "pamhyr\pamhyr\_internal\LICENSE" LicenseData "pamhyr\_internal\LICENSE"
LicenseText "I Agree" LicenseText "I Agree"
RequestExecutionLevel admin RequestExecutionLevel admin
@@ -41,12 +42,12 @@ SectionEnd
Section "Start Menu Shortcuts" Section "Start Menu Shortcuts"
CreateDirectory "$SMPROGRAMS\Pamhyr2" CreateDirectory "$SMPROGRAMS\Pamhyr2"
CreateShortcut "$SMPROGRAMS\Pamhyr2\Uninstall.lnk" "$INSTDIR\uninstall.exe" CreateShortcut "$SMPROGRAMS\Pamhyr2\Uninstall.lnk" "$INSTDIR\uninstall.exe"
CreateShortcut "$SMPROGRAMS\Pamhyr2\Pamhyr2.lnk" "$INSTDIR\pamhyr\pamhyr.exe" CreateShortcut "$SMPROGRAMS\Pamhyr2\Pamhyr2.lnk" "$INSTDIR\pamhyr.exe"
SectionEnd SectionEnd
Section "Desktop Shortcuts" Section "Desktop Shortcuts"
SetShellVarContext all SetShellVarContext all
CreateShortcut "$desktop\Pamhyr2.lnk" "$instdir\pamhyr\pamhyr.exe" CreateShortcut "$desktop\Pamhyr2.lnk" "$instdir\pamhyr.exe"
SectionEnd SectionEnd
Section "Uninstall" Section "Uninstall"
Loaded 100 of 572 files, more files were not shown because too many files have changed in this diff. Show more